• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mdb and runtime exceptions

 
Cristian Popovici
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I have messages processed by a message driven bean. I want, when an processing occurs due to invalid data in the message (a runtime exception is thrown by the mdb), the sender to get notified about this failed message. Is this possible using the JMS infrastucture?

Thanks,
Cristian
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's asynchronous processing. So the piece of code which sent the message to the queue/topic will not know about this exception. However, the container/server responsible for sending the message from the queue to the MDB will know of this and can redeliver the message to the MDB.
 
James Ward
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about sending a message back to the sending application about a data error.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic