File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Multithreading using MDB in OC4J Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Multithreading using MDB in OC4J" Watch "Multithreading using MDB in OC4J" New topic
Author

Multithreading using MDB in OC4J

Abhishek Upadhyay
Greenhorn

Joined: Dec 06, 2009
Posts: 4
HI
I want to archive simultaneous execution of several tasks, I have a Queue, and my MDB is picking messages from that Queue.
There can be several different type of messages, and each message type got its own handler( a java class ).
Then depending on the message type, MDB invokes, the corresponding handler.
Each Handler contains a run() method, and my MDB invokes this method.

What I initially wanted, MDB should just submit the Handler to Work Manager, and return, and Handler should be executed in a separate thread.
Similarly, each execution of the handler class should be done in a separate thread.

But IN OC4J, We dont have any way to submit a Work to Work Manager, or in other its not exposed.

How, i can have a framework to multi threading.

Thanks
shekup
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multithreading using MDB in OC4J