File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Access to a global resource in Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Access to a global resource in Tomcat" Watch "Access to a global resource in Tomcat" New topic
Author

Access to a global resource in Tomcat

Tushar Madhukar
Ranch Hand

Joined: May 03, 2006
Posts: 36
Hi,

I have native library which I want to be available to all my webapps running inside a Tomcat instance. How can I initialize and access such a global resource?

Thanks
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Tomcat provides directories for shared resources.

They are tomcat/shared/lib and tomcat/shared/classes.

The hierarchy was simplified in version 6.
I believe it's now just tomcat/lib

Be sure to read the release notes carefully.
There is a section in there on JNI resources shared by multiple apps with some specific information on initializing them to insure that one app doesn't lock the others out.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Access to a global resource in Tomcat