I am using jboss-3.0.4 (Jetty) but not implementing EJB stuff. In order to run same struts application but connecting to different database, I have setup multiple instances of jboss.
I guess this is not a good solution because to up more than 1 jboss probably will take up a lot of server resources. Anybody has the idea how to setup multiple data sources and running in a single instance of jboss ?
At the moment I configure a few files which are postgres-ds.xml, login-config.xml and hibernate-service.xml but only can connect to 1 postgres database. What should I change to enable multiple connection while jboss is started.
Thank in advance if anybody can help to reply.
just define multiple datasources files with different name(end it with -ds.xml) in deploy directory.
Each DS can be called by his jndi name.