-
1. Re: How to check data persistence in JBoss-7.1.1-Final ?
jbertram Sep 27, 2013 4:40 PM (in response to kparasam)1 of 1 people found this helpfulJBoss AS 7 uses HornetQ as the JMS implementation. HornetQ does not persist data to a database. It uses a local journal. There is no option to use a database.
-
2. Re: How to check data persistence in JBoss-7.1.1-Final ?
kparasam Sep 27, 2013 4:46 PM (in response to jbertram)Ok. Thank you for the reply. So, a local journal would be a file system ? I see 'data' folders under servers, would it be saved there ? I'm asking because, if the server goes down and the messages are not yet consumed by receiver (in my case an MDB). Upon restart would the server keep the messages in queue to make it available for the receiver ? Apologies if this sounds very basic, I'm fairly new to JBoss.
-
3. Re: How to check data persistence in JBoss-7.1.1-Final ?
jbertram Sep 27, 2013 5:27 PM (in response to kparasam)1 of 1 people found this helpfulThe journal is a set of files on the file-system. By default they are stored in the server's "data" directory. Any persistent messages will be persisted to disk and therefore will survive a server restart, crash, etc. so they can be consumed when the server comes back online.
-
4. Re: How to check data persistence in JBoss-7.1.1-Final ?
kparasam Sep 27, 2013 5:35 PM (in response to jbertram)Cool. Thanks Justin. Are you aware of any known issues with this implementation ? Any kind of failures that would cause the messages to be lost. Just being cautious. Thank you.
-
5. Re: How to check data persistence in JBoss-7.1.1-Final ?
jbertram Sep 27, 2013 5:43 PM (in response to kparasam)I'm not aware of any problems.
-
6. Re: How to check data persistence in JBoss-7.1.1-Final ?
kparasam Sep 27, 2013 8:53 PM (in response to jbertram)Ok. How long would the data be stored in the file system ? Any way that we can configure ?
-
7. Re: How to check data persistence in JBoss-7.1.1-Final ?
jbertram Sep 28, 2013 11:12 PM (in response to kparasam)I'm not sure I understand your question. The data will be stored on the file-system until you remove it (e.g. consume the message(s) with a client or delete the message(s) administratively). You can leverage the JMS API to set a time-to-live for the messages if necessary. See http://docs.oracle.com/javaee/6/api/javax/jms/MessageProducer.html#setTimeToLive(long) for more information on that.
-
8. Re: How to check data persistence in JBoss-7.1.1-Final ?
kparasam Sep 30, 2013 10:50 AM (in response to jbertram)Ok. Thank you. As long it is stored until the message is consumed by a client, it should be fine. Thanks again.