Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

One application, many databases

Status
Not open for further replies.

marcinkrk1

Programmer
Nov 18, 2010
1
0
0
PL
Hello Everyone,

I have a question.
Is it possible to make Tomcat recognize a url from Apache request
and then choose correct Resources (database) from context.xml?

Maybe example be more clear.

I have a two VirtualHost in Apache on the server

example1.com.pl
example2.com.pl

there is also a Tomcat with one application on the same server
this application have two different Resources (database):
example1_database
example2_database

Is it a possible to Tomcat recognize the url and use the correct database?

request from example1.com.pl use example1_database
request from example2.com.pl use example2_database

thanks for a help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top