[jboss-user] [JBoss Seam] - Re: EntityManager not being injected

2006-08-21 Thread c_eric_ray
True, but @PersistenceContext is not a Seam annotation. It's an EJB3 annotation that should be injected by the EJB3 container. Or so I thought. I guess I still have a lot to learn about this stuff. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966549#3966549

[jboss-user] [JBoss Seam] - Re: EntityManager not being injected

2006-08-21 Thread patrick_ibg
The problem is that the Converter object as you have it is instantiated by JSF, not by Seam, and so no bijection takes place. You can try retrieving the EntityManager yourself via the FacesContext. Or, have a look at the following threads that propose complete solutions: http://www.jboss.com/in

[jboss-user] [JBoss Seam] - Re: EntityManager not being injected

2006-08-21 Thread c_eric_ray
Here's the code jsf code... | | | | Converter implementation | @PersistenceContext(unitName="DC") | EntityManager em; | | public Object getAsObject(FacesContext fContext, UIComponent component, String value) | throws ConverterExc

[jboss-user] [JBoss Seam] - Re: EntityManager not being injected

2006-08-21 Thread c_eric_ray
Yes. I'm injecting the EM all over the place. All that works great. It's just that the Converter implementation doesn't get it injected. I suspect it has something to do with being created outside of the CMP context. But I really have no idea. I'm still looking. BTW, I've resovled to create my

[jboss-user] [JBoss Seam] - Re: EntityManager not being injected

2006-08-21 Thread SmokingAPipe
Hmm. Do you have a persistence context defined in your jar file? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966526#3966526 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966526