C
Chris
Hi,
I've written a message bean that monitors a JMS queue and successfully runs.
I made changes to the onMessage method to include a new piece of code which
due to another error threw an exception. When I wasn't catching this
exception the onMessage method didn't complete and so the message wasn't
removed from the queue. As a result there were endless calls to onMesssage.
Why did this mean the message was left on the queue? Is there any way to
force the message to be removed?
When I swallowed the exception the method completed and the bean was
removed. However I then introduced a new piece of code (call to a stateless
session bean) which threw an exception. However this time while attempting
to swallow that exception in it's originating class (I was catching
Throwable) the bean wasn't removed and again there were endless calls to
onMessage.
Any ideas why this could be. I thought by catching Throwable and not
propagating the exception there would be no reason for the onMessage method
to not complete.
Thanks for any suggestions
Chris
I've written a message bean that monitors a JMS queue and successfully runs.
I made changes to the onMessage method to include a new piece of code which
due to another error threw an exception. When I wasn't catching this
exception the onMessage method didn't complete and so the message wasn't
removed from the queue. As a result there were endless calls to onMesssage.
Why did this mean the message was left on the queue? Is there any way to
force the message to be removed?
When I swallowed the exception the method completed and the bean was
removed. However I then introduced a new piece of code (call to a stateless
session bean) which threw an exception. However this time while attempting
to swallow that exception in it's originating class (I was catching
Throwable) the bean wasn't removed and again there were endless calls to
onMessage.
Any ideas why this could be. I thought by catching Throwable and not
propagating the exception there would be no reason for the onMessage method
to not complete.
Thanks for any suggestions
Chris