[jboss-user] [EJB 3.0] - Database independent persistence

cFly do-not-reply at jboss.com
Thu Jun 11 09:54:24 EDT 2009


Hi,
I have some persistent entities that need to be run on two separate JBoss servers. One of which is connected to an oracle database and the other connected to a mssql database.

This causes problems with the database specific primary key generation and the only way I can find round it is to create separate bean instances for each server. Is there another way? Could I extend the @GeneratedValue class and provide fucntionality to check which database is used and then provide the correct implementation.

Thanks.

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

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237027



More information about the jboss-user mailing list