wood burning stoves
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Where to synchronize struts 1.1" Watch "Where to synchronize struts 1.1" New topic

Where to synchronize struts 1.1

Picus Ameradeus

Joined: Sep 22, 2006
Posts: 11

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?
Consider Paul's rocket mass heater.
subject: Where to synchronize struts 1.1
It's not a secret anymore!