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.mil...@jboss.com Message: -------------------------------------------------------------- > jaikiran wrote: > > > mailto:andy.mil...@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
_______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user