tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Bolding" <...@platon.net>
Subject RE: Servlet inter-communication
Date Wed, 03 May 2006 08:22:57 GMT
Indeed. If it is within the same context this is trivial - look into
singleton design pattern. If the servlets are from different contexts
you will have to enable crosscontext in your server.xml I assume.

In any case be aware of race conditions/dead locks - Java5.0 has new
semaphore types which might help you.

Regards Thomas

-----Original Message-----
From: Samuli Elomaa [mailto:samuli.elomaa@pp.inet.fi] 
Sent: 3. maj 2006 09:57
To: Tomcat Users List
Subject: Servlet inter-communication

Hi,
Is there any otherway for two servlets in same tomcat to communicate
together except by http requests? Eg. could two servlets use somekind of
shared memory? or send signals to each other?

Samuli

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message