I am trying to create a reliable JMS environment using ActiveMQ. I am planning to go for a JDBC master slave clustering approach in which I can persist the messages received by master server to database and slave server can pick those messages and run them in case the master server dies. But I don't have a solution to the situation in which both the master and slave go down(due to any reason). If that happens, will the messages sent by producer get lost for ever? I can do something like persisting messages to database and executing them after one of the JMS servers recover, but is there a better/built-in solution to handle such scenarios?
JMS Reliability, handling Server down
1.1k Views Asked by Adithya Puram At
1
There are 1 best solutions below
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in JMS
- This method is not applicable inside the app server when trying to set a listener for a JMS queue
- How do I Serialize a JMS Message?
- How to use JMS to knows when the last message of a list has been processed
- javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory
- Not able to send message to Solace JMS Queue
- JMS Message Selector does not work
- Why is JMS messaging client unable to start, with fedora-commons 3.8.1?
- Grails JMSTemplate how to add MessageConverter to the Message Listener
- Is there a way of accessing maximum redelivery count from a JMS Message?
- Do all ActiveMQ clients need a client certificate?
- Should I consider to use JMS in my case?
- How to Produce from MQTT and consume as MQTT and JMS in ActiveMQ
- Amazon SQS - JMS vs custom implementation
- Valid "protocols" for HornetQ
- Write a Java Program to connect to HornetQ Messaging Service in Jboss EAP 6.3?
Related Questions in ACTIVEMQ-CLASSIC
- ActiveMQ connection Url for Blob Messages
- ActiveMQ offline message transfer on database level
- Extract data from JSON in vanilla Java/Camel/Spring
- ActiveMQ http connection refused
- what is BlobTransfer Policy in ActiveMQ
- JMS Message Selector does not work
- ActiveMQ: Error while loading shared libraries
- ActiveMQ: how to subscribe/unsubscribe from non-durable subscriptions
- How to remove the messages in the queue from the Activemq
- Do all ActiveMQ clients need a client certificate?
- use message driven bean to get message from topic apache apollo
- gatling stress testing on AWS, threads staying in active
- ActiveMQ topic messages missed after listener error
- Persistence of ActiveMQ Blob Messages
- How to Produce from MQTT and consume as MQTT and JMS in ActiveMQ
Related Questions in RELIABILITY
- How to keep meteor reliable in a production environment?
- Reliability in UDP
- JMS Reliability, handling Server down
- How can I deal with the general case of a "silent" database transaction success
- ReliabilityContract and IComparer (or other injected code)
- Guarding against system changes between function calls in Windows
- Android timer that works when device is sleeping
- Reliable multicast communication in LAN
- implementing HTTP reliability
- How to create a reliable mobile service
- What are the required mechanisms for a reliable layer over UDP?
- How can I determine if there was a spike in errors recently?
- Reliable data transfer over an UnReliable Channel
- Bland-altman plots: how to change y axis
- Reliability of corrupted state exception handling
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You've got the right idea. If the producer can't connect, under normal circumstances, it will throw an exception. You want a store-and-forward (SAF) producer; if the client can't reach the destination, messages are stored locally on the client file system, and sent when the client reconnects with the broker.
Based on nos' comments below, it appears ActiveMq supports store-and-forward using local storage for clients I've asked nos to submit his comments as the answer.