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

jaikiran pai do-not-reply at jboss.com
Mon Jan 3 07:12:16 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/578034#578034

--------------------------------------------------------------
WorkerRemote r = // how to obtain reference? Should I use JNDI as ClientPOJO or @EJB annotation?
You can use @EJB injection since you are using it within another server side component (i.e. the @Stateful bean). However, that doesn't mean that you cannot use JNDI lookup. You can use JNDI lookup too, but @EJB injection is a convenient way of getting hold of the bean.
--------------------------------------------------------------

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

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/3cc2b659/attachment.html 


More information about the jboss-user mailing list