Title: "Receive timed out" exception when looking up Entity bean

Hi
 I am trying to connect to an Entity bean from a java class. I am getting the following exception.
javax.naming.CommunicationException: Receive timed out.  Root exception is java.
net.SocketTimeoutException: Receive timed out
        at java.net.PlainDatagramSocketImpl.receive(Native Method)
        at java.net.DatagramSocket.receive(DatagramSocket.java:670)
        at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:10
93)
        at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1192)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
        at javax.naming.InitialContext.lookup(InitialContext.java:347)
        at day10.Client.main(Client.java:21)

My client code is
-------------------
Properties env = new Properties();
                 env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
                 env.put(Context.PROVIDER_URL, "jnp://localhost:1099");
                 env.put( "java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");

         initialContext = new InitialContext(env);
         Object object = initialContext.lookup("xxxx");

I am using JBoss 3.2.2. Can anyone pls help.

Regards
Rajesh


This electronic mail (including any attachment thereto) may be confidential and privileged and is intended only for the individual or entity named above. Any unauthorized use, printing, copying, disclosure or dissemination of this communication may be subject to legal restriction or sanction. Accordingly, if you are not the intended recipient, please notify the sender by replying to this email immediately and delete this email (and any attachment thereto) from your computer system...Thank You

Reply via email to