[jboss-user] [JBoss Seam] - Re: observing database updates

Andy Gibson do-not-reply at jboss.com
Sat Dec 1 21:41:40 EST 2007


You could try creating a new entity manager from the entity manager factory, and try loading objects using that manager to get the database objects.

I think you can do it as : 


  |   @In
  |   private EntityManagerFactory entityManagerFactory;
  | 

I believe the entityManagerFactory is created as an application scoped seam component.

To create a new entityManager you can call createEntityManager() on the factory object.

Cheers,

Andy




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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109595



More information about the jboss-user mailing list