File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes servlet thread safe question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "servlet thread safe question" Watch "servlet thread safe question" New topic

servlet thread safe question

Amy Saari
Ranch Hand

Joined: Sep 13, 2007
Posts: 30

I need some help. I've got a struts app and am not sure the code below is thread safe. It's running in the weblogic 8.1 servlet container. It's the buildInviteMessage path that looks suspicious. It calls new() on ParametersBundle which is static and contains private instance variables. Is it possible for two threads to be inside ParametersBundle setting the instance variables and colliding with each other?

Thanks for looking.

Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
A Saarii

Please check your private messages for a
message regarding an important administrative matter.

Consultant, Sima Solutions
I agree. Here's the link:
subject: servlet thread safe question
It's not a secret anymore!