Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

using JNDI to share object reference between two apps

Angel Todorov

2007-02-15

Replies:

Hi all,

I am new to tomcat's JNDI in general, and would like to achieve this
very simple task: I have two webapps webapp1.war and webapp2.war. I
would like to use a global JNDI context and bind an object reference
from some servlet in webapp1 , and then look this up from some servlet
in webapp2.

I have read the tomcat documentation regarding <GlobalNamingResources>
and <ResourceLink> declarations in server.xml, but somehow i cannot
get this simple thing to work.

Do I have to make any explicit configuration in the applications'
web.xml? Or I just do this by looking up a custom context ?

Thanks very much for your feedback.

Best,
Angel

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.