[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: A few problems running the examples on different machine

adridi do-not-reply at jboss.com
Fri Jan 9 12:18:11 EST 2009


"ataylor" wrote : ok, so it turns out that even tho the initial connection to jndi was happening the exported stub that was being returned still had an endpoint of localhost. This is because if the property java.rmi.server.hostname is not set it defaults to localhost, when the App Server starts up, setting this property is one of the first things it does. 
  | 
  | Ive changed the jbm-standalone-beans.xml to inject the host property from the configuration object so that we only need to configure it in one place. The configuration property also sets the java.rmi.server.hostname property when the host is set. 

Hi Andy,

I installed JBM2 - beta release from trunk  and was not able to run the examples, the following error was thrown:

javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 192.168.2.115; nested exception is: 
	java.net.ConnectException: Connection refused: connect

It looks like you fixed it in the alpha release by injecting the hostname into the naming service from the configuration object.

By checking "jbm-standalone-beans.xml", I noticed that your fix was rolled back.

Can you please provide some light on this?

Thanks,
Abdel



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

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



More information about the jboss-dev-forums mailing list