Announcement Announcement Module
Collapse
No announcement yet.
Cant reconnect to JMS-provider Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cant reconnect to JMS-provider

    Hi,
    i have two server-instances... lets say s1 and s2.
    A application running on s1 is using the jmsTemplate102 to send messages to a JMS-Provider provided by s2.
    Everthing works fine, but when the s2 with the JMS-Provider gets restarted, s1 ist losing the connection and i have to restart it manually.

    The log says:
    Code:
    java.net.ConnectException: Connection refused: connect. org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: Failed to create session. Exception: Connection refused to host: 172.25.0.25; nested exception is: 
    	java.net.ConnectException: Connection refused: connect.
    Caused by: 
    javax.jms.JMSException: Failed to create session. Exception: Connection refused to host: 127.0.0.1; nested exception is: 
    	java.net.ConnectException: Connection refused: connect.
    	at jrun.jms.core.client.rmi.RmiJmsConnectionStub.createSession(RmiJmsConnectionStub.java:141)
    	at jrun.jms.core.client.JmsSession.<init>(JmsSession.java:248)
    	at jrun.jms.core.client.JmsTopicSession.<init>(JmsTopicSession.java:47)
    	at jrun.jms.core.client.JmsTopicConnection.createTopicSession(JmsTopicConnection.java:62)
    	at jrun.jms.wrapper.enterprise.JRunXAConnectionWrapper.createTopicSession(JRunXAConnectionWrapper.java:81)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:585)
    	at org.springframework.jms.connection.SingleConnectionFactory$SharedConnectionInvocationHandler.invoke(SingleConnectionFactory.java:417)
    	at $Proxy74.createTopicSession(Unknown Source)
    	at org.springframework.jms.core.JmsTemplate102.createSession(JmsTemplate102.java:180)
    	at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:421)
    	at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:486)
    	at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:567)
    	at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:552)
    	at com.siemens.sbt.emc.services.impl.MessagingService.sendMessage(MessagingService.java:28)
    	at
    Anyone has an idea, how to automatic reconnect to the JMS-prover on s2.

    Thx a lot...
    Ray
Working...
X