Hi all,
I am using JBoss 4.2.1 GA with jboss MQ.
I am using mysql as the database provider that stores JMS_MESSAGES and JMS_TRANSACTIONS tables.
For some reason, even after the message is handled successfuly, the JMS_MESSAGES and JMS_TRANSACTIONS records are not deleted.
I checked my mysql-jdbc2-service.xml file and the delete statements specified in the SqlProperties are:
DELETE_ALL_TX = DELETE FROM JMS_TRANSACTIONS DELETE_MARKED_MESSAGES_WITH_TX = DELETE JMS_MESSAGES FROM JMS_MESSAGES, JMS_TRANSACTIONS WHERE JMS_MESSAGES.TXID = JMS_TRANSACTIONS.TXID AND JMS_MESSAGES.TXOP=? DELETE_TX = DELETE FROM JMS_TRANSACTIONS WHERE TXID = ? DELETE_MARKED_MESSAGES = DELETE FROM JMS_MESSAGES WHERE TXID=? AND TXOP=? DELETE_TEMPORARY_MESSAGES = DELETE FROM JMS_MESSAGES WHERE TXOP='T' DELETE_MESSAGE = DELETE FROM JMS_MESSAGES WHERE MESSAGEID=? AND DESTINATION=?
If they are not getting deleted then most likely you are not actually completing
the jms processing.
e.g. the message is delivered but then the transaction is rolled back due to a
later error