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

2007-08-10 Thread [EMAIL PROTECTED]
Hibernate Validators are not Seam components and don't fall within the Seam lifecycle hence you can't do injection in there. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072936#4072936 Reply to the post : http://www.jboss.com/index.html?module=bb&op=postin

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

2007-08-10 Thread csl
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

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

2007-08-09 Thread nickarls
Just guessing here but can you get the EntityManagerFactory from JNDI? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072855#4072855 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072855