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
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
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