-
1. Re: dont recover the unacknowledged messages
adrian.brock Apr 13, 2004 6:02 AM (in response to stabilo)Use NonPersistence messages
-
2. Re: dont recover the unacknowledged messages
stabilo Apr 14, 2004 4:54 AM (in response to stabilo)I use nonPersistent messages. The Propblem is, when i abort the Server, or the server is shutdown by an error, the messages are not delete in db\jbossmq\file\QUEUE.A. Another problem is, that jboss not delete nonPersistant messages from this directory when the client is abort and not received all messages from the server. Can i prompt jboss to delete the messages in this directory, no matter what happens?
thanks -
3. Re: dont recover the unacknowledged messages
adrian.brock Apr 14, 2004 2:01 PM (in response to stabilo)Don't use file persistence, it is a legacy configuration that won't be supported
for much longer (I don't maintain it even now except when the internal api is changed) -
4. Re: dont recover the unacknowledged messages
stabilo Apr 15, 2004 5:34 AM (in response to stabilo)ok, i used jboss version 3.2.3 and org.jboss.mq.pm.jdbc2.PersistenceManager. The problem is the same. After abort the server, the messages in the jms_messages table marked as rollback persistent 'A'. But i wont, that the messages are not persistent in the db after a server crash! Is there a solution for this problem?
thanks -
5. Re: dont recover the unacknowledged messages
adrian.brock Apr 15, 2004 6:01 AM (in response to stabilo)'A' means you are using persistent messages.
http://jboss.org/wiki/Wiki.jsp?page=DeliveryMode -
6. Re: dont recover the unacknowledged messages
stabilo Apr 15, 2004 6:29 AM (in response to stabilo)this is the message output from the mdb:
Header {
jmsDestination : QUEUE.A
jmsDeliveryMode : 2
jmsExpiration : 0
jmsPriority : 4
jmsMessageID : ID:3-10820278826871
jmsTimeStamp : 1082027882687
jmsCorrelationID: null
jmsReplyTo : QUEUE.B
jmsType : null
jmsRedelivered : false
jmsPropertiesReadWrite:false
msgReadOnly : true
producerClientId: ID:3
}
Body {
text :CMD_LOESCHEN
}
i think the jmsDeliveryMode 2 stands for NON_PERSISTENT. So, i don't now how jboss use the db to store the messages? -
7. Re: dont recover the unacknowledged messages
dannyyates Apr 15, 2004 7:44 AM (in response to stabilo)Why do you "think the jmsDeliveryMode 2 stands for NON_PERSISTENT"? Instead of guessing, I consulted the J2EE API documentation. This clearly states that javax.jms.DeilveryMode.PERSISTENT = 2 (NON_PERSISTENT = 1)