File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MDBs for Concurrent Processing

 
Romario Dominic
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Is it possible to use Message Driven Beans for concurrent processing inoredr to reduce processing time?

Thanks
Romario
 
Devender Thareja
Ranch Hand
Posts: 187
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
 
Romario Dominic
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic