about openjms0.7.7-alpha with tomcat
stone <[email protected]> Mon, 01 Aug 2005 15:08:42 +0800
| Newsgroups | gmane.comp.java.openjms.devel |
|---|---|
| Message-ID | <001201c59667$dc988c70$a9437c0a@ibmvi7ikl6vwsb> |
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)