my dog learned polymorphism*
The moose likes Tomcat and the fly likes context files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "context files" Watch "context files" New topic
Author

context files

ajse ruku
Ranch Hand

Joined: May 06, 2005
Posts: 193
Hi,
I have two web application in my webapps(tomcat 5.x).Both appliocation are using same database.Currently i have two context files inside my tomcat/conf/Catalina/localhost corresponding to two web applications ,having the same content although file names are different.So my question is do I need two context files or one file will do?
regards,
ajse
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Each app gets its own context fragment file.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
ajse ruku
Ranch Hand

Joined: May 06, 2005
Posts: 193
Hi,
Thanks for your information.
In my case i have two webapps and two context files inside conf/Catalina/localhost.
But as the content of two context files are same i.e same resource amd resource params,i want to know is it possible to have same jndi name in two web apps?

regards,
Ajse
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: context files
 
Similar Threads
Multilevel context path for ROOT app does not work
tomcat quit expanding war files
deployment problems in tomcat 4.1.27
Accessing a context.xml from a virtualhost
Problem: Beans with JSP in Tomcat