Hi.
I'm trying to connect to jboss from tomcat.
The jboss is running on a different machine with unix operating system.
I'm using the following properties:
provider.url = jnp://serverName:1099
initial.context.factory = org.jnp.interfaces.NamingContextFactory
url.pkg.prefixes = org.jboss.naming.client
This works well if the jboss is running on the same machine and also if it is running on other windows machines.
when trying to connect I get the following exception :
javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 137.0.0.1;
It seems there is a problem connecting to that port but when I telnet it seems o.k. I get the following :
¼?sr?java.rmi.MarshalledObject|??ù?c?>??I?hashlocBytes[BobjBytesq~?xpɧè?ur?[B
?°T??xp2¼?t!http://suse.il.identify.com:8083/q~q~uq~??¼?sr org.jnp.server.Naming
Server_Stub??xrjava.rmi.server.RemoteStub????ïße?xr?java.rmi.server.RemoteObject
Connection to host lost.
Does anyone have any idea ?
Thanks a lot,
Lital