Message-Driven Beans, Message not send / received

Problem:
When sending a message via JMS (transactions enabled) this message is not received by other MessageListener.

Solution:
Add an additional session.commit(); before closing the session.

Continue reading “Message-Driven Beans, Message not send / received”

javax.jms.JMSException: no valid constructor

Problem:
Deserialization causes Exception.

Solution:

  1. Make sure all your classes, that are send trhough the wire, implement java.io.Serializable
  2. If your class extends other class(es), first class in inheritance tree, that does not implement java.io.Serializable, must provide a zero-argument standard-constructor!