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?
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.