You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jacob Kjome <ho...@visi.com> on 2003/02/27 00:46:51 UTC
Re[2]: Shared servlets between webapps
Hello Will,
Hmm... shouldn't static variables be shared in this case? I don't see
why not?
Jake
Wednesday, February 26, 2003, 3:39:20 PM, you wrote:
>> From: "Edson Alves Pereira" <ea...@panamericano.com.br>
>> Sent: Wednesday, February 26, 2003 12:53 PM
>> Subject: Shared servlets between webapps
>> Hello folks, i want to use the same servlet with two webapps, then i
>> put it in shared/classes, everything was fine and the servlet work almost
WH> as
>> i expected, but when this servlet need to get a variable from the
>> environment, it has null value, why it happens and how i can solve it?
WH> More detail is needed, but to begin with just because the servlet class
WH> itself is shared, the actual servlet instances are within different contexts
WH> and would actually share very little. So if you're expecting the shared
WH> servlet to see something set by WebApp A when run in Web App B, then you'll
WH> be disappointed.
WH> Regards,
WH> Will Hartung
WH> (willh@msoft.com)
WH> ---------------------------------------------------------------------
WH> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
WH> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
--
Best regards,
Jacob mailto:hoju@visi.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org