[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Client failover redeliveries discussion

timfox do-not-reply at jboss.com
Tue Oct 17 16:56:29 EDT 2006


So to summarise:

1) Detect failover
2) Find the "correct" failover server. (This may take several stops)
3) Let the server "stall" you until server failover has completed
4) Recreate the conections, sessions, consumers, producers and browsers. (Swapping ids here sounds fine)
5) Delete any non persistent messages from the client list of unacked messages in any sessions in the failed connection.
6) Send a list of the ids of the peristent messages for each consumer that failed to the server. For each list recreate the ServerConsumerEndpoint delivery list by removing the refs from the channel and creating deliveries and putting in the list.
7) The connection is now ready to be used

Note: We must also ensure that no new connections are created on the failover node while old connections are being recreated, otherwise we can have a situation where the new connections grab the messages which have already been delivered to consumers in the failed connecton!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978893#3978893

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978893



More information about the jboss-dev-forums mailing list