It is not a easy way to do that. How about starting a stand http servlet transport to do that ?
Willem Benson Margulies wrote:
JNI is a pain in a web container. It occured to me that the most portable way to share JNI between webapps was to put it into a web service in one web app, and consume it in the others.