Hi Peter,
I developed the application and used the method that you provided, and it worked perfectly
on my local machine. However when I am trying to run it on server, it is giving me an
exception. I did change the url from local host to server ip in jndi.properties file. I
also matched the jboss-service.xml file to see the contents of <mbean
code="org.jboss.naming.NamingService"
and they are same for my machine and the server.
So can you please think of any other reason why its still unable to connect and throwing
the following exception?
Thanks,
-Danish.
/******* EXCEPTION START *************/
javax.naming.CommunicationException: Receive timed out [Root exception is
java.net.SocketTimeoutException: Receive timed out]
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:11
18)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1197)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:515)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:508)
at javax.naming.InitialContext.lookup(InitialContext.java:363)
at JBossStateReader.isMonitorItemFine(JBossStateReader.java:46)
at JBossStateReader.run(JBossStateReader.java:26)
at java.lang.Thread.run(Thread.java:810)
Caused by: java.net.SocketTimeoutException: Receive timed out
at java.net.PlainDatagramSocketImpl.receive0(Native Method)
at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java
:181)
at java.net.DatagramSocket.receive(DatagramSocket.java:724)
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:10
88)
/******** EXCEPTION END **************/
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168046#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...