[jboss-user] [JBoss Seam] - Re: SeamTest - It's not @In-jecting bean attributes
bsmithjj
do-not-reply at jboss.com
Wed Aug 16 16:35:29 EDT 2006
Never mind - I have solved this problem
- I needed to add ejb-jar.xml with the Seam interceptor to my persistence unit. BTW - it seems like the xml given in the samples does not conform to the EJB 3 xsd...
http://java.sun.com/xml/ns/j2ee/ejb-jar_3_0.xsd
- Instead of @In-jecting my EntityManager as a 'em' I needed to use the EJB 3 @PersistenceContext(unitName = "sampleDatabase") annotation.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965578#3965578
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965578
More information about the jboss-user
mailing list