[jboss-user] [JBoss Seam] - Multiple datasources?
marcosH
do-not-reply at jboss.com
Wed Apr 4 03:52:20 EDT 2007
Hi all!
How can I use two different datasources in seam?
I've tried to add both datasources in files myproject-ds.xml and persistence.xml and bind my entities using the @PersistenceUnits annotation, but it didn't work.
When i deploy the application it seems that it overlooks the @PersistenceUnits annotation and tries to bind the entities to both datasources and it fails because it only find the corresponding table in one datasource, so, at the end i get the following message:
--- MBeans waiting for other MBeans ---
ObjectName: persistence.units:ear=plantilla.ear,jar=plantilla.jar,unitName=estacions
State: FAILED
Reason: javax.persistence.PersistenceException: org.hibernate.HibernateException: Missing table: Imaxes
I Depend On:
jboss.jca:service=DataSourceBinding,name=estacionsDatasource
Any ideas?
Thanx!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034419#4034419
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034419
More information about the jboss-user
mailing list