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

csl do-not-reply at jboss.com
Fri Aug 10 03:33:47 EDT 2007


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



More information about the jboss-user mailing list