• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get connected to 2 databases

 
Swaroop Reddy
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello sir,
we have developed 2 webapplications in servlets.1 application has one database and other application has other.now i want to run 2 applications from one system is there any possibility to configure both DB's in one xml file if so please let me know .I am using tomcat5.0

and also is there possibility to run 2 versions of tomcats on one system?


Thanks in advance
 
Jan Cumps
Bartender
Posts: 2586
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes and Yes
is there any possibility to configure both DB's in one xml file
Yes. You can set up several datasources in Tomcat.



is there possibility to run 2 versions of tomcats on one system
Yes, but the two instances will need to use different ports. You will have to change the configuration of at least one tomcat, so that it does not use the default ports.
 
Swaroop Reddy
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. You can set up several datasources in Tomcat.




Hi can you help me out how to set up several data sources in one tomcat.

But one thing for one application I am using seperate xml file for datasource configurations,In the same tomcat only i need to configure the other datasource.no where I am using server.xml for configuring datasource
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic