Could not send ESB message to remote host.
gloomy Mar 29, 2007 7:54 AMWe trying to send ESB message to remote host computer. We change all the settings from "localhost" to "remote host" in those files:
1. jboss-properties.xml
2. jndi.properties
3. juddi.properties
4. jbossesb.xml
And we always get such an error message:
144094 [main] ERROR couriers.JmsCourier - JMX lookup error. javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1414) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587) at javax.naming.InitialContext.lookup(Unknown Source) at org.jboss.internal.soa.esb.couriers.JmsCourier.createMessageProducer(JmsCourier.java:255) at org.jboss.internal.soa.esb.couriers.JmsCourier.deliver(JmsCourier.java:155) at org.jboss.internal.soa.esb.couriers.TwoWayCourierImpl.deliver(TwoWayCourierImpl.java:157) at org.jboss.soa.esb.listeners.ListenerUtil.tryToDeliver(ListenerUtil.java:70) at quickstart.helloworld.test.SendEsbMessage.main(SendEsbMessage.java:60) Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269) at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385) ... 8 more
No occurence of our "remote host" in stack trace - only "localhost" here.
While debugging ESB we obtain that findEPR(...) method always set jndi-URL as "localhost" for every EPR it founds.
Can you suggest us any solution or workaround please?
PS: We always set "remote host" by it's IP address, we also check the network connection and found all is OK.