JBoss Community

Automatic healing of JMS client

created by Saurav Kumar in JBoss Messaging - View the full discussion

Hello All,

 

I am using jboss messaging for events. I am RMI based rich client application and has implemented

 

MessageListener to listen events. Some times due to network problem or sometimes due to the server reset of system time JMS event subscription is lost. Although RMI connection is still alive.  Unlike http client we are keeping connection forever (24x7). I want to implement a watch dog kind of mechenism by which i will resubscribe to messaging after loosing connection.

 

There 2 problems.

 

1. There is no callback for exceptions if this breaks. although i have implemented ExceptionListener.

2. I am not aware of any configuration which ensure autosubriction if it breaks.

 

 

Reproduction scheme.  Create a simple ear to conteneously publish events on Topic. On RMI client simply implement MessageListener and ExceptionListner. set system time to 1 hr back.

 

Regards,

Saurav

 

 

Reply to this message by going to Community

Start a new discussion in JBoss Messaging at Community