aspose file tools*
The moose likes Struts and the fly likes Common Action Class for many transactions. will it slow down the app performance? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Common Action Class for many transactions. will it slow down the app performance?" Watch "Common Action Class for many transactions. will it slow down the app performance?" New topic
Author

Common Action Class for many transactions. will it slow down the app performance?

krishna kishore
Greenhorn

Joined: Oct 30, 2007
Posts: 19
dear all,
i have a scenario like this... we have lots of transactions, all of which starts with choosing client, edit, modify etc. next from there will start the real transaction. we have kept a single common action class which serves as the client profile. depending upon the request the client page will serve, if next clicked forwards it to that specific transaction page.
now, the question is...
does this scenario of design slow down the performance of the application. because of a single resource providing support to lots of different transactions....

thanks in advance
-krishna
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
Hmmm...I thought I responded to this yesterday...maybe I forgot to submit my post.

I am curious why you think that using a common action class is a source of performance issues. What container are you using? I would think that your container would be able to handle multiple requests on separate threads that all used the same instance of your Action class. Isn't that the reason that action classes must be threadsafe?

- Brent
 
Consider Paul's rocket mass heater.
 
subject: Common Action Class for many transactions. will it slow down the app performance?