Hi Maciej,
I'm connecting from Tomcat to ActiveMQ with this configuration:
META-INF/context.xml:
<Context>
...
<Resource
name="jms/ConnectionFactory"
auth="Container"
type="org.apache.activemq.ActiveMQConnectionFactory"
description="JMS Connection Factory"
factory="org.apache.activemq.jndi.JNDIReferenceFactory"
brokerURL="tcp://ws:61616"
brokerName="localhost"
useEmbeddedBroker="false" />
<Resource
name="jms/Test"
auth="Container"
type="org.apache.activemq.command.ActiveMQQueue"
factory="org.apache.activemq.jndi.JNDIReferenceFactory"
physicalName="TEST" />
...
</Context>
WEB-INF/web.xml:
...
<resource-env-ref>
<resource-env-ref-name>jms/ConnectionFactory</resource-env-ref-name>
<resource-env-ref-type>javax.jms.ConnectionFactory</resource-env-ref-type>
</resource-env-ref>
<resource-env-ref>
<resource-env-ref-name>jms/Test</resource-env-ref-name>
<resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
</resource-env-ref>
...
Hope, it helps...
PETR
On 6/2/06, Maciej Łabędzki <[EMAIL PROTECTED]> wrote:
Hi,
i develope my web application using ActiveMQ and run it under Apache
Tomcat 5. There is a problem - the 'jndi.properties' file seems to be
invisible, although it is placed on class path.
Has anybody met such a problem?
Maciej
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Petr Hadraba
graphic artist and software designer
http://people.hadraba-soft.com/~petr
hadrabap AT bluetone DOT cz