[jboss-user] [Beginner's Corner] - Re: Create stateless bean from stateful bean

jaikiran pai do-not-reply at jboss.com
Mon Jan 3 07:06:42 EST 2011


jaikiran pai [http://community.jboss.org/people/jaikiran] created the discussion

"Re: Create stateless bean from stateful bean"

To view the discussion, visit: http://community.jboss.org/message/578041#578041

--------------------------------------------------------------
> piotrekde wrote:
> 
> I didn't know that @EJB gives reference backed by stateless beans pool - I thought that's just single stateless bean injection. 
Yeah, an @EJB internally injects a proxy similar to what you would have got when you do a JNDI lookup. And it's only when you invoke on that SLSB, that the instance association happens. It's the same irrespective of whether you use JNDI lookup or @EJB injection.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/578041#578041]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110103/b1ffdea9/attachment.html 


More information about the jboss-user mailing list