1 Reply Latest reply on Jan 17, 2005 3:50 PM by adrian.brock

    JMS NameNotFoundException: ConnectionFactory not bound

    gzhuye

      Anyone help me with the following problem?

      After I unzipped jboss4.0 and didn't alter any configuration, ran a sample jms, it couldn't loopup ConnectionFactory:

      javax.naming.NameNotFoundException: ConnectionFactory not bound

      
       Hashtable env = new Hashtable();
       // using JBoss...
       env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
       env.put(Context.PROVIDER_URL, "jnp://127.0.0.1:1099");
      
      
       InitialContext jndi = new InitialContext(env);
      
       // Look up a JMS connection factory
       // I don't know where to config connectionFactory, use the default.
       TopicConnectionFactory conFactory =
       (TopicConnectionFactory)jndi.lookup("ConnectionFactory");//XAConnectionFactory
      


      Thanks in advance