File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes EJB and Threads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB and Threads" Watch "EJB and Threads" New topic

EJB and Threads

kundan varma
Ranch Hand

Joined: Mar 08, 2004
Posts: 323
Hi All,
If i need to use thread in my application having EJB layer also. How and where should i put my thread code.

Failures are practice shoots for success.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32815

Do you want to have the thread call the EJB or the EJB call the thread?

If the former, this is fine. If the later, why do you need an explicit thread rather than an MDB or the Timer service?

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
wood burning stoves
subject: EJB and Threads
It's not a secret anymore!