cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Herold" <dougcher...@gmail.com>
Subject Re: cocoon actions implements threadsafe
Date Fri, 02 Jun 2006 18:28:20 GMT
If I have an action that is SingleThreaded and I have 2 clients logged in (2
sessions).  Does one client have to wait on the other client's thread to
finish or is the SingleThreaded per session.

On 6/2/06, Ralph Goers <Ralph.Goers@dslextreme.com> wrote:
>
> It is interesting that you say that they are using threadsafe and then
> show an example that says SingleThreaded.  These are not the same thing.
> Look at http://excalibur.apache.org/developing/framework.html.  Actions
> only have a single act method so in most cases they should be able to
> implement ThreadSafe. Marking them as SingleThreaded would almost
> certainly be a bottleneck.
>
> Ralph
>
> Doug Herold wrote:
>
> > Hi,
> >
> > I have noticed that some of our programers are using threadsafe when
> > creating a class for actions.
> >
> > public *class* StudentSearchAction *extends* AbstractAction *
> > implements* SingleThreaded {
> >
> > I read that you should never use SingleThreaded and that it was going
> > to be depreciated.  Our server has a very large load, but we were
> > having problems with one user being able to see another users info.  I
> > think this is why the used this.  We are now having problems with
> > performance.  Could this cause performance issues.
> >
> > Could someone point me to any good articles about the dangers
> > of SingleThread classes and what to do instead of using them.
> >
> > Thanks in advance
> > Doug
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>

Mime
View raw message