JBoss Community

Re: Create stateless bean from stateful bean

created by jaikiran pai in Beginner's Corner - View the full discussion

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

Start a new discussion in Beginner's Corner at Community