[jboss-user] [EJB 3.0] - SfSB singleton per session

beep_beep do-not-reply at jboss.com
Fri Jul 14 02:00:35 EDT 2006

suppose I have several session beans ,
all these beans should call(have access to) one particular SfSB and perform operations on it.
They should call the same instance of the SfSB all time during session.
They can't receive it as parameter.
They should lookup it or get injected.

But lookup always bring proxy to new instance.
How can I get the same instance???
(Like EJB2 find() but without all ejb2 junk).

I thought about static singleton, but this guy will work to entire JVM not only serve for session. I need it per session. Is it possible? 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957971#3957971

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957971

More information about the jboss-user mailing list