<property name="jboss.entity.manager.factory.jndi.name" value="..."/> 
causes jboss to publish an EntityManagerFactory in JNDI for this 
PersistenceContext.  As I mentioned above EntityConverter requires access to 
your EntityManager.  You tell SelectItemsConfig the name under which the 
EntityManagerFactory is published in JNDI, the EntityConverter can then do a 
JNDI lookup for this factory, and thus create an EntityManager. 
SelectItemsConfig is just a simple bean which can be configured by 
components.xml and then read by the various other classes (which aren't Seam 
components so can't be configured by components.xml directly)

If you want to @In your EntityManager you need to configure a Seam Managed 
Persistence Context, this is covered in the reference manual. 
http://docs.jboss.com/seam/1.1CR1/reference/en/html/configuration.html#d0e6249

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988179#3988179

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988179
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to