1 Reply Latest reply on Feb 9, 2004 7:42 AM by ionel

    TopicConnectionFactory lookup failed

    ionel Newbie


      When retrieving a TopicConnectionFactory with this call :

      TopicConnectionFactory topicFactory = (TopicConnectionFactory) context.lookup("OIL2ConnectionFactory");

      I get a javax.naming.CommunicationException.
      Root exception is :
      java.rmi.ConnectException: Connection refused to host:

      I printed my JNDI Environment used for the context I use to do the lookup : the java.naming.provider.url is set to something else than localhost (it is not a problem of a forgotten jndi.properties file or something else)

      Thus I don't know why it tries to connect to localhost whereas another jndi provider is specified.

      It happens in a Swing based application, downloaded by JNLP.

      Any ideas welcome,
      Please help, I'm lost,