File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Where to synchronize struts 1.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Where to synchronize struts 1.1" Watch "Where to synchronize struts 1.1" New topic
Author

Where to synchronize struts 1.1

Picus Ameradeus
Greenhorn

Joined: Sep 22, 2006
Posts: 11
Hello,

I need to thread safe a very basic struts app. It get user info and inserts it into a db, but there are sessions involved.

The app uses two model classes, users and orders, each with getters and setters that handle instance variables through the action classes..

My question is this,

Do I thread safe the getter and setters on the model classes or do I synchronize the execute methods on the Action classes?

I assume both are fine but are there performance issues?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where to synchronize struts 1.1