[jboss-jira] [JBoss JIRA] Updated: (EJBTHREE-912) ejb-jar.xml injected EntityManger fails in @PostConstruct annotated methods
Andrew Redhead (JIRA)
jira-events at lists.jboss.org
Wed Mar 14 09:06:32 EDT 2007
[ http://jira.jboss.com/jira/browse/EJBTHREE-912?page=all ]
Andrew Redhead updated EJBTHREE-912:
------------------------------------
Attachment: src-xmleminjection.zip
Test case java files, could be dropped into:
ejb3\src\test\org\jboss\ejb3\test
> ejb-jar.xml injected EntityManger fails in @PostConstruct annotated methods
> ---------------------------------------------------------------------------
>
> Key: EJBTHREE-912
> URL: http://jira.jboss.com/jira/browse/EJBTHREE-912
> Project: EJB 3.0
> Issue Type: Bug
> Affects Versions: EJB 3.0 RC9 - Patch 1
> Environment: Identified on jboss-4.0.5.GA from jems installer 1.2.GA, still present in head from svn co http://anonsvn.jboss.org/repos/jbossas/branches/Branch_4_0/ as of 13th March 2007. Tests run agains JDK 1.5 on Win XP (sp2)
> Reporter: Andrew Redhead
> Attachments: resources-xmleminjection.zip, src-xmleminjection.zip
>
>
> Using an ejb-jar.xml file to inject an EntityManger into an EJB3 stateless session bean succeeds for bean interface methods but fails for @PostConstruct methods.
> In both cases the reference to the EntityManager is non-null, however in the @PostConstruct method, accessing the EnityManger underlying delegate fails.
> The test cases provide both an "API" interface case (which passes) and an @PostConstruct case, which currently fails.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list