Adding JMS handler on both master and agent side