[ajug-members] Creating Threads in EJB
Joe Sam Shirah
joe_sam at bellsouth.net
Sun Jul 22 14:31:57 EDT 2007
Hi Sony,
The spec prohibits it, but it is clearly up to the implementation to
enforce. Using your own threads in any managed environment is not usually a
good idea, because the managed environment has no knowledge of them. That
usually means it will work great until it doesn't, often involving a large
cost to find and correct. Message-driven beans are almost always the
answer.
Not exactly appropos, but I've just spent two days correcting a problem
caused by previous developers not paying attention to the basics. That was
expensive to the client and annoying to me. Another (ex)client cancelled my
intro to Java course some time back because they wanted to code, not learn
how things work. I've kept in touch with a couple of contacts there, and to
date that decision has cost them between $250K - $500K. I've no idea what
their opportunity loss has been, but I would expect similar. So I
appreciate your questions.
Joe Sam
Joe Sam Shirah - http://www.conceptgo.com
conceptGO - Consulting/Development/Outsourcing
Java Filter Forum: http://www.ibm.com/developerworks/java/
Just the JDBC FAQs: http://www.jguru.com/faq/JDBC
Going International? http://www.jguru.com/faq/I18N
Que Java400? http://www.jguru.com/faq/Java400
----- Original Message -----
From: "Sony Antony" <sony.antony at gmail.com>
To: "General AJUG membership forum (100-200 messages/month)"
<ajug-members at ajug.org>
Sent: Saturday, July 21, 2007 10:51 PM
Subject: [ajug-members] Creating Threads in EJB
>I came across a weblogic application which is creating user level
> threads in teh startup classes.
> I know its not a good idea, but I didnt know it was even allowed by
> teh security manager.
> ( They have been using it for a while. So obviously it is allowed )
>
> 1. Now Im confused whether it creating threads is merely advised
> against or prevented by teh security manager, inside EJBs.
>
> 2. Also are there any J2EE equivalent for the weblogic startup classes
> at the application level ?
>
> --sony
More information about the ajug-members
mailing list