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 MDBs for Concurrent Processing 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 "MDBs for Concurrent Processing " Watch "MDBs for Concurrent Processing " New topic

MDBs for Concurrent Processing

Romario Dominic

Joined: Feb 27, 2006
Posts: 26
Is it possible to use Message Driven Beans for concurrent processing inoredr to reduce processing time?

Devender Thareja
Ranch Hand

Joined: Jul 14, 2005
Posts: 187
Yes. But the order of processing among MDB is not guaranteed. It may not really be parallel but the parent process will not have to wait as it will be asynchronous process.

Hope it helps.


Devender Thareja
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

This might help:

[My Blog] [JavaRanch Journal]
Romario Dominic

Joined: Feb 27, 2006
Posts: 26
Thanks for your replies and the link.I have another question.That is will this operation of using an MDB for concurrent processing be asynchronous?I guess it will be because an MDB is like an asynchronous JMS listener.Juts wanted to double check.

Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

If concurency is all you are after, then just use a Session Bean. MDBs most obvious feature is they are asynchronous, so you could use them to improve the response to a client (by queueing more resource-intensive work, so it doesn't have to happen synchronously).

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
subject: MDBs for Concurrent Processing
It's not a secret anymore!