4 Replies Latest reply on Aug 9, 2004 4:33 PM by Chuck Harris

    jndi lookups fail (under load)

    Marek Neumann Novice

      Problem: many clients to try lookup a session bean concurrently. If the client count reaches a certain number, the lookup fails with:

      [java] javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
      [java] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1119)
      [java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1196)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:516)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)
      [java] at javax.naming.InitialContext.lookup(InitialContext.java:347)

      Setting the "backlog" param of the naming service to a higher value does not have any effect.

      Is there any workaround to avoid this? Otherwise it is not possible to access EJBs from many clients.

      Thanks,

      marek