[jboss-user] [Persistence] - Re: how to create PersistenceUnit and map to dataSource prog
getaceres
do-not-reply at jboss.com
Thu Nov 19 10:29:01 EST 2009
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
More information about the jboss-user
mailing list