3 Replies Latest reply on Jul 21, 2004 5:56 AM by Matteo Maria Pileggi

    jndiContext.lookup(

    Lito Bexavanaki Newbie

      I have been using jboss 2.4.4 and I decided to switch to jboss 3.2.3.
      I have a clean Jboss 3.2.3 installation. I have only modified jbossmq-state.xml and jbossmq-destinations-service.xml to add users and topics. I get no errors at JBoss startup.

      Then I try to run the following:

      Hashtable props = new Hashtable();
       props.put(Context.INITIAL_CONTEXT_FACTORY,
       "org.jnp.interfaces.NamingContextFactory");
       props.put(Context.PROVIDER_URL, server);
       props.put("java.naming.rmi.security.manager", "yes");
       props.put(Context.URL_PKG_PREFIXES,
       "org.jboss.naming:org.jnp.interfaces");
       jndiContext = new InitialContext(props);
      
       topicConnectionFactory = (TopicConnectionFactory)
       jndiContext.lookup("UIL2ConnectionFactory");


      The returned topicConnectionFactory is null. I don't get NamingException or JMSException. Using the same context I can lookup topics I have defined in jbossmq-state.xml. I am missing something here?

      Thank you in advance.