1 Reply Latest reply on Jun 12, 2006 4:53 PM by jksmartt

    InitialContext lookup ConnectionFactory problem

    jksmartt

      I am getting a strange error. I have added JBoss Messenging to my JBoss Server. When I run the examples like the topic example everything works perfectly. However, when I try to replicate one of the examples in a portlet and deploy it to the server and then run it I get the following:

      For executing the following line:

      ConnectionFactory cf = (ConnectionFactory)ic.lookup("/ConnectionFactory");


      I get this error:

      14:30:40,089 INFO [STDOUT] javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
      14:30:40,089 INFO [STDOUT] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1323)
      14:30:40,089 INFO [STDOUT] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1452)
      14:30:40,089 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:595)
      14:30:40,089 INFO [STDOUT] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:588)
      14:30:40,089 INFO [STDOUT] at javax.naming.InitialContext.lookup(InitialContext.java:351)


      Any advise?