wood burning stoves 2.0*
The moose likes Struts and the fly likes Help Using static Delegates within Action classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Help Using static Delegates within Action classes" Watch "Help Using static Delegates within Action classes" New topic
Author

Help Using static Delegates within Action classes

Alex Fishell
Greenhorn

Joined: Oct 15, 2002
Posts: 5
HI,

I have a struts app. I also have several delegate classes that connect to ejbs (session beans) used by my action classes. I was thinking about putting the delegates into a helper class as static properties. That way my action classes can just reference the same delegate. I don't want to have to create a new instance of a delegate with every request an action class handles.

However, I'm wondering if this will cause synchronization issues with multiple requests being handle, as our site handles a heavy load of requests. Any suggestions would be appreciated?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help Using static Delegates within Action classes