• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Multithreading using MDB in OC4J

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic