Message Persistency

Hi,

I am a noob on JMS, I understand that message can be persisted before it is send to the destination.

However, I need to persist the message whenever it reaches my local queue (for recovery purpose, e.g. before the message being processed, the whole server need to restart).

Can the JMS providers cater this kind of situation? or I need to explicitly write my own persistent manager in the onMessage() method just to store the receiving msg into the datasource/files

Thanks.

[509 byte] By [boraboraa] at [2007-11-27 9:23:17]
# 1
JMS provides for persistence of the message once it is in the queue. You can use a transacted session and the message will not be removed from the queue until you explicitly commit (or your CMT MDB onMessage() method completes successfully).
axlerunnera at 2007-7-12 22:18:18 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...