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/configuration.html

In the section 2.2.2

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266579
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to