RE: about openjms0.7.7-alpha with tomcat

"Tim Anderson" <[email protected]> Mon, 1 Aug 2005 22:31:27 +1000
Newsgroups gmane.comp.java.openjms.devel
Message-ID <[email protected]>
You may be picking up tomcat's JNDI service..
Try setting the JNDI properties explicitly as per
http://openjms.sourceforge.net/usersguide/tcp.html
 
The JARS required are described here:
http://openjms.sourceforge.net/usersguide/jars.html
 
-Tim
 
  _____  

From: openjms-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:openjms-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of stone
Sent: Monday, 1 August 2005 5:09 PM
To: openjms-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [openjms-developer] about openjms0.7.7-alpha with tomcat



follow this article
http://www.onjava.com/pub/a/onjava/2001/12/12/openjms.html
 
that used openjms0.7,i used openjms0.7.7alpha1 with tomcat 4.1.24,but i can
not found openjms client jar.
how can i develop a openjms 0.7.7 with tomcat project ?
how should i config my jndi?
 
my code like this:
 
      String factory_name = "ConnectionFactory";
 
          
      // lookup the connection factory from the context
      Context context = new InitialContext();
      ConnectionFactory factory = (ConnectionFactory)
      context.lookup(factory_name);
jndi.properties under WEB-INF/classes.
 
java.naming.provider.url=tcp://localhost:3035
java.naming.factory.initial=org.exolab.jms.jndi.InitialContextFactory
 
openjms.xml under config directory
    <Connector scheme="tcp">
      <ConnectionFactories>
        <ConnectionFactory name="ConnectionFactory" />
      </ConnectionFactories>
    </Connector>
error lists as follow:
javax.servlet.ServletException: Exception in processign request
javax.naming.NameNotFoundException: Name ConnectionFactory is not bound in
this Context
at SimplePublisher.doGet(SimplePublisher.java:65)