Re: To be compliant to J2EE, a webapp should not use any thread

Alberto Ivo <[email protected]> Wed, 26 May 2010 22:48:09 -0300
Newsgroups gmane.comp.programming.refactoring
Message-ID <[email protected]>
Thanks, Mike

I think I let the way they are now. It's simple and works just fine! :-)

Ivo


On Wed, May 26, 2010 at 8:26 PM, Michael New <[email protected]> wrote:

> Hi Ivo,
>
> If you really need or want to be J2EE compliant, you need to use something
> like JMS.  Send a message and it is run asynchronously in a different
> thread.
>
> Or you could ignore it, if you don't mind not being completely compliant
> and
> you think it's all good the way it is.
>
> Unless there's another way to spawn threads that is legal in J2EE, but
> there
> are none I'm aware of.
>
> Mike
>
> On Wed, May 26, 2010 at 10:53 AM, Alberto Ivo <[email protected]>
> wrote:
>
> >
> >
> > Hi,
> >
> > Again, PMD found a violation that I didn't understand.
> >
> > In my webapp, I have some task that should run in parallel with other
> stuff
> > the user wants to do.
> >
> > But PMD says: To be compliant to J2EE, a webapp should not use any
> thread.
> >
> > So, how should I proceed? Forget this PMD Violation? Or is there any good
> > pratice?
> >
> > Ivo
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
>
>
>
> --
> ----------------------_/ /\/\ /\/ -----------------------
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>


[Non-text portions of this message have been removed]



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/refactoring/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/refactoring/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/