[jboss-user] [JNDI and Naming] New message: "Re: Context Lookup vs. Injection"

Andrig Miller do-not-reply at jboss.com
Wed Feb 3 10:31:55 EST 2010


User development,

A new message was posted in the thread "Context Lookup vs. Injection":

http://community.jboss.org/message/523929#523929

Author  : Andrig Miller
Profile : http://community.jboss.org/people/andy.miller@jboss.com

Message:
--------------------------------------------------------------
> jaikiran wrote:
>  
> > mailto:andy.miller at jboss.com wrote:
> >  
> > 
> > Is there a difference in @Resource in a stateless session bean and an entity?
> JPA entities don't support injection.
Well, that explains it.  I will have to do what you did, which is inject the resource into a stateless session bean, and then pass the generated key to the constructor instead.  Thanks.

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/523929#523929




More information about the jboss-user mailing list