Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Access to a global resource in Tomcat

 
Tushar Madhukar
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic