Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [JBoss Seam] - Re: Using EntityManager in Hibernate
 Validator

scott.stark@jboss.org

2007-08-10


Yes, this works.

Context ctx = new InitialContext();
| EntityManagerFactory entityManagerFactory = (EntityManagerFactory) ctxlookup("java:/myprojectEntityManagerFactory");
| entityManager = entityManagerFactory.createEntityManager();

But isn't there a better way to do this? It would be great if I could obtain Seam components (e.g. Log).

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072879
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.