The only solution that I've found is to create the Entity Managers (and factories)
through the Persistence.createEntityManagerFactory method passing it a Map with the JNDI
direction of the new datasource. You can also pass the datasource connection information
by hibernate properties in the same map.
See:
http://docs.jboss.org/hibernate/stable/entitymanager/reference/en/html/co...
In the section 2.2.2
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266579#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...