Yes, the persistence.xml is correct. I use the EM all throughout my code. I
understand the problem is related to the Converter implementation class being
instiated by JSF and not the EJB container or something like that. Therefore,
injection cannot occur.
Are you implying this will be fixed in
The SLSB works and is the logical place to put such code. EM injection will
not work just yet -- requires servlet 2.5 compliant container.
Are you sure your persistence.xml is correct for the "DC" unit and that it
references a valid datasource?
View the original post :
http://www.jboss.com/i
Here's the code
jsf code...
|
|
|
|
Converter implementation
| @PersistenceContext(unitName="DC")
| EntityManager em;
|
| public Object getAsObject(FacesContext fContext, UIComponent component,
String value)
| throws ConverterExc