Two Laptop Bag*
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 Android Security Essentials Live Lessons this week in the Android 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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Help Using static Delegates within Action classes
 
Similar Threads
is it advisable to use super.execute()?
CRUD web app sample without a framework
How to use EJB with Struts????
dynamic proxy of remote and local ejbs
Business delegate and action class