Hi, Yes. We use this code from within a controller stored in the user session. Now each user will get the controller from his session and call this code from within the controller but even then this might be a bit tricky. Our controller doesn't solve the problem. Isn't it ?
Thanks, Mohan -----Original Message----- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Friday, November 22, 2002 11:27 AM To: Struts Users Mailing List Subject: RE: Thread-safety It depends... -----Original Message----- From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]] 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: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>