Hi Prasanth,
are you sure all your struts1 code is thread safe ? I had some similiar
problems in a struts1 application. After removing all action class
properties the problem was solved. Struts2 should be thread safe. But
your problems looks to me like a problem with thread safety.
Best
Hello,
we are still using Struts 1.3.8 in a big project. And we are definetely
not considering migrating to struts2. Because struts2 is a totally
different framework - so no advantage to move to struts2 instead of
another framework. So just pick the best solution for the future.
For us a
-
Von: Chris Mawata [mailto:chris_mawata_str...@mathcove.net]
Gesendet: Sonntag, 19. September 2010 01:20
An: Struts Users Mailing List
Betreff: Re: AW: AW: Struts 1 and thread safety
On 9/18/2010 8:36 AM, Norbert Hirneisen wrote:
Just another question regarding this context
();
--
Something wrong with that approach ?
Thanks in advance,
Norbert
-Ursprüngliche Nachricht-
Von: Norbert Hirneisen [mailto:no...@s2you.de]
Gesendet: Sonntag, 19. September 2010 09:42
An: 'Struts Users Mailing List'
Betreff: AW: AW: AW: Struts 1 and thread safety
Thanks
Nobody here who can help ?
-Ursprüngliche Nachricht-
Von: Norbert Hirneisen [mailto:no...@s2you.de]
Gesendet: Freitag, 17. September 2010 11:01
An: user@struts.apache.org
Betreff: Struts 1 and thread safety
Hello,
I have al large Struts 1 application with a modified
and thread safety
No, it's not thread safe. Actions should be treated like servlets in this
regard, and designed better.
Consider either passing the required data around, or using thread locals.
Dave
On Sep 18, 2010 6:42 AM, Norbert Hirneisen no...@s2you.de wrote:
Nobody here who can help
: Struts 1 and thread safety
No, I meant actual ThreadLocals, but what you're saying would work too.
The best way to go about doing it depends on what's being done in the
subclasses.
Dave
On Sat, Sep 18, 2010 at 7:53 AM, Norbert Hirneisen no...@s2you.de wrote:
Thanks, Dave.
Using the data
AM, Norbert Hirneisen no...@s2you.de wrote:
Thanks, Dave.
Using the data local means to call
long projectId = Project.getIdFromRequest(request);
in every subclass because there is no thread-safe way to use a class field in
the super-class ?
Would it be thread-safe to use a local variable
projectId from a derived class is this thread safe or have I to
implement in the doExecute-Method of each derived action class ? This would be
thread safe but comes with a lot of redundant code.
Any help would be helpful.
Best regards,
Norbert
Norbert Hirneisen
science4you Online-Monitoring
http
);
%
In the html-body:
p%=showDate%/p
Regards,
Norbert
Norbert Hirneisen
science4you Online-Monitoring
Please visit us:
http://www.science4you.org
(in German)
Norbert Hirneisen
Science Communications
von-Müllenark-Str. 19
53179 Bonn
phone +49-228-6194930
-Ursprüngliche Nachricht-
Von
and hard- and
software enviroment.
We have a dedicated Oracle server and an dedicated App-Server and are using
mostly query based paging.
Regards,
Norbert
Norbert Hirneisen
science4you Online-Monitoring
Please visit us:
http://www.science4you.org
(in German)
Norbert Hirneisen
Science
11 matches
Mail list logo