JMS and MDB on 3.0.6
johnurban Sep 26, 2003 6:43 PMI have downloaded and deployed the MDB example:
http://www.jboss.org/servlet/JiveServlet/download/48-34795-3786739-1816/testmdb.zip
on linuxboxA. I also installed the client on my windows desktop, running jboss 3.0.6. I set the jndi.properties to point to linuxboxA. It worked great.
I then installed the example on linuxboxB running jboss 3.0.6. I modified the jndi.properties to point to linuxboxB. I ran my client and I get the following error:
C:\Software\mdb3>ant run
Buildfile: build.xml
run:
[echo] client.classpath : ${client.classpath}
[java] Looking up connection
[java] javax.naming.CommunicationException. Root exception is java.rmi.ConnectException: Connection refused to hos
t: 127.0.0.1; nested exception is:
[java] java.net.ConnectException: Connection refused: connect
[java] at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)
[java] at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
[java] at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
[java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
[java] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:484)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:463)
[java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
[java] at test.client.Client.main(Client.java:21)
[java] Caused by: java.net.ConnectException: Connection refused: connect
[java] at java.net.PlainSocketImpl.socketConnect(Native Method)
[java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
[java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
[java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
[java] at java.net.Socket.connect(Socket.java:426)
[java] at java.net.Socket.connect(Socket.java:376)
[java] at java.net.Socket.(Socket.java:291)
[java] at java.net.Socket.(Socket.java:119)
[java] at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
[java] at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
[java] at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562)
[java] ... 8 more
[java] Exception in thread "main"
[java] Java Result: 1
===================
the /etc/hosts file for linuxboxB is:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 linuxboxB localhost.localdomain localhost
172.18.126.107 linuxboxb linuxboxb.lab.net
I also was able to run the client on linuxboxB and connect to the jboss server successfully on linuxboxA.
I just cant connect to linuxboxB from linuxboxA or from my desktop/windows box.