users@glassfish.java.net

Re: how to use sfsb in web tier application

From: <glassfish_at_javadesktop.org>
Date: Wed, 05 May 2010 10:28:42 PDT

It is behaving like singleton if you use it as "@EJB private TestRemote tRemote;" member of class, particulary servlet in my case.

That's what I was asking about, how to use the Stateful beans, I figured out what was my problem. I know how to create a bean, my question was how to USE it, in software, where I call the functions rather than create them.

Looks like that servlet is loaded only once, hence acts like singleton, because it's not session bound, but instance bound.

Thanks guys for pointing the way.
[Message sent by forum member 'snovak7']

http://forums.java.net/jive/thread.jspa?messageID=420715