• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to get connected to 2 databases

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 2661
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
That which doesn't kill us makes us stronger. I think a piece of pie wouldn't kill me. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic