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

Michael New <[email protected]> Wed, 26 May 2010 19:26:40 -0400
Newsgroups gmane.comp.programming.refactoring
Message-ID <[email protected]>
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

<*> 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/