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 Help Using static Delegates within Action classes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply 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://zeroturnaround.com/jrebel/download
 
subject: Help Using static Delegates within Action classes
 
Similar Threads
CRUD web app sample without a framework
Business delegate and action class
dynamic proxy of remote and local ejbs
How to use EJB with Struts????
is it advisable to use super.execute()?