[jboss-dev-forums] [JBoss AS7 Development] - Re: Services with missing/unavailable dependencies EntityManager
Evie White
do-not-reply at jboss.com
Thu Aug 4 13:46:01 EDT 2011
Evie White [http://community.jboss.org/people/yvette_white] created the discussion
"Re: Services with missing/unavailable dependencies EntityManager"
To view the discussion, visit: http://community.jboss.org/message/619464#619464
--------------------------------------------------------------
I am experiencing the same problem. I am migrating from Glassfish to JBoss and I want to maintain the dependency injection of the PersistenceContext into the stateless session beans so that they can perform database manipulation via JPA. I am using JBoss AS 7 (Final) with the "standalone" configuration.
I have several stateless session beans and one datasource that are configured in the exact manner outlined by the thread poster Raphael. Upon deployment, all beans receive the "Services with missing/unavailable dependencies" error.
However, if I remove the *@PersistenceContext* annotation from the *EntityManager* class variable in one bean then that one bean does NOT fail. (However, now EntityManager is null and any calls to it, obviously, would fail. I was just experimenting.)
*+Does JBoss AS 7 even support @PersistenceContext?+*
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/619464#619464]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110804/4d1c2740/attachment.html
More information about the jboss-dev-forums
mailing list