Also, I never see the QueueDepth Change from 0 to 1...
For the 256th factorial time!
MDBs do not acknowledge messages
(at least not directly).
It is also an error to leak
Exceptions from onMessage()
onMessage is part of the JMS spec.
If you want to the talk to the MDB use the
You should configure your onMessage to run inside
a transaction then code something like:
public void setMessageDrivenContext(MessageDrivenContext ctx)
this.ctx = ctx;
public void onMessage(Message m)
catch (ExpectedException e)
catch (Throwable e)
log.warn("Error occurred", e);
This is the only time I'm going to post this -
this month :-)
It was helpful, even if it was recycled :)