I am not sure if this is the best way. It would probably be better to use the seam entity
converter, but here goes:
| InitialContext ctx = new InitialContext();
| String jndiEntityManagerFactory = "factoryDefinedInComponentsXml";
| EntityManagerFactory factory = (EntityManagerFactory) ctx
| .lookup(jndiEntityManagerFactory);
| EntityManager entityManager = factory.createEntityManager();
|
Hope, it helps!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058639#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...