sreedhargattu
May 29th, 2007, 04:26 AM
Hi,
I have two applications communicating each other using jmx. For example
application 1 ==> Source application
application 2 ==> deployed under tomcat that communicates to "application 1" using jmx as follows
<bean id="clientConnector" class="org.springframework.jmx.support.MBeanServerConnect ionFactoryBean>
<property name="serviceUrl"
value="service:jmx:rmi://localhost/jndi/rmi://localhost:1099/test"/>
<property name="environment">
<props>
<prop key="jmx.remote.jndi.rebind">true</prop>
</props>
</property>
</bean>
Whenever application 1 is restarted (without being tomcat(application 2) restarted) the connection becomes stale in application 2. Is there any way to get around this. For RmiProxyFactoryBean we have some thing like refreshStubonConnectFailure. Is there any similar thing for jmx..
Thanks for your help!!!
I have two applications communicating each other using jmx. For example
application 1 ==> Source application
application 2 ==> deployed under tomcat that communicates to "application 1" using jmx as follows
<bean id="clientConnector" class="org.springframework.jmx.support.MBeanServerConnect ionFactoryBean>
<property name="serviceUrl"
value="service:jmx:rmi://localhost/jndi/rmi://localhost:1099/test"/>
<property name="environment">
<props>
<prop key="jmx.remote.jndi.rebind">true</prop>
</props>
</property>
</bean>
Whenever application 1 is restarted (without being tomcat(application 2) restarted) the connection becomes stale in application 2. Is there any way to get around this. For RmiProxyFactoryBean we have some thing like refreshStubonConnectFailure. Is there any similar thing for jmx..
Thanks for your help!!!