Please find configuration/code excerpts below
Error channel configurations
<channel id="errorChannel" publish-subscribe="true" capacity="500"/>
<endpoint input-channel="errorChannel"
default-output-channel="outputChannel"
handler-ref="helloService"
handler-method="sayHello1"/>
I have modified the sayHello method of HelloService to throw NPE.
Code:
public String sayHello(String name) {
name= null;
System.out.println("Inside sayHello");
name.length();
return "Hello " + name;
}
Listener configuration
<jms:listener-container connection-factory="connectionFactoryWMQ">
<jms:listener destination="test.client1.REPLY" ref="messageListener" />
</jms:listener-container>
Let me know if you need any other information.
Thanks/Vikas