You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mohan Radhakrishnan <Mo...@hclcomnet.co.in> on 2002/11/22 06:20:26 UTC

Thread-safety

Hi,

   getServlet().getServletContext() );

     I have code like this in my reload action. Now this gets hold of the
application context and refreshes it from the database. Since actions are
reused we think there might be some problem with thread safety. 

Does it make sense to use code like this ?

Thanks,
Mohan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Thread-safety

Posted by Andrew Hill <an...@gridnode.com>.
It depends...

-----Original Message-----
From: Mohan Radhakrishnan [mailto:MohanR@hclcomnet.co.in]
Sent: Friday, November 22, 2002 13:20
To: Struts Users Mailing List
Subject: Thread-safety


Hi,

   getServlet().getServletContext() );

     I have code like this in my reload action. Now this gets hold of the
application context and refreshes it from the database. Since actions are
reused we think there might be some problem with thread safety.

Does it make sense to use code like this ?

Thanks,
Mohan

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>