[jboss-user] Configuration advice - different databases

Chris Idou idou747 at yahoo.com
Thu Mar 5 00:27:49 EST 2009



I wonder if anyone can give me a pointer or advice.

We've got an application and we run 3 instances of it under different server/  directories in our JBoss installation. Each instance's datasource.xml points to a different database. One is a production database, and the others are testing database. Each has its own IP address.

We want to be able to run instances against even more databases without allocating more IP addresses, but I'm not sure how one would go about it. Various files in the application like ejb-jar.xml and so forth point to a jdbc name that identifies the datasource, so I'm not sure how one would have more than one datasource and dynamically choose the database when it is kind of hard-coded in this config file. (without I guess, modifying the app for each instance, which isn't desirable).

Even if we could choose datasources dynamically, I'm not sure how the remote client would say which instance of the corresponding EJBs to talk to. At the moment each app has a config parameter which points to http://x.x.x.x/invoker/JNDIFactory, and depending which x.x.x.x they choose, it selects which database and JBoss instance to talk to.

At the moment its really easy to set up new instances IF one is prepared to allocate a new IP address. Is there any easy way (or any way at all) to do it without new IP addresses?


      Stay connected to the people that matter most with a smarter inbox. Take a look http://au.docs.yahoo.com/mail/smarterinbox
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20090304/9a44ef01/attachment.html 


More information about the jboss-user mailing list