This content has been marked as final.
Show 2 replies
-
1. Re: observing database updates
andygibson Dec 1, 2007 9:41 PM (in response to robshep)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 -
2. Re: observing database updates
pmuir Dec 2, 2007 9:31 AM (in response to robshep)Alternatively define a second SMPC in components.xml from the same jndi lookup for the Persistence Unit factory.