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 MDBs for Concurrent Processing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "MDBs for Concurrent Processing " Watch "MDBs for Concurrent Processing " New topic
Author

MDBs for Concurrent Processing

Romario Dominic
Greenhorn

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

Thanks
Romario
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.

Regards!


Devender Thareja
SCEA, SCBCD, SCJP
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10288
    
168

This might help:

http://www.javaworld.com/javaworld/jw-07-2003/jw-0718-mdb.html


[My Blog] [JavaRanch Journal]
Romario Dominic
Greenhorn

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.

Thanks
Paul Sturrock
Bartender

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: http://aspose.com/file-tools
 
subject: MDBs for Concurrent Processing