Cache coordination with tomcat 6 [message #1403418] |
Wed, 23 July 2014 14:39 |
Sascha Smoo Messages: 56 Registered: November 2012 |
Member |
|
|
Hello,
I'm trying to use EclipseLink cache coordination within my tomcat 6 application. I'm using activeMQ which already works find in my environment. In my server.xml I've defined the following Resources:
<Resource
auth="Container"
brokerURL="tcp://jms:61616?daemon=true"
description="JMS Connection Factory"
factory="org.apache.activemq.jndi.JNDIReferenceFactory"
name="jms/connectionFactory"
type="org.apache.activemq.ActiveMQConnectionFactory"
/>
<Resource
description="Change Notification Topic"
factory="org.apache.activemq.jndi.JNDIReferenceFactory"
name="jms/changeNotification"
physicalName="T.SERVICE.INT"
type="org.apache.activemq.command.ActiveMQTopic"
/>
And my persistence.xml looks like this:
<property name="eclipselink.cache.coordination.protocol" value="jms" />
<property name="eclipselink.cache.coordination.jms.topic" value="jms/changeNotification" />
<property name="eclipselink.cache.coordination.jms.factory" value="jms/jmsConnectionFactory" />
If I startup my tomcat I get the following exception:
[EL Warning]: 2014-07-23 16:19:35.146--ServerSession(1669472530)--Exception [EclipseLink-22103] (Eclipse Persistence Services - 2.4.1.v20121003-ad44345): org.eclipse.persistence.exceptions.RemoteCommandManagerException
Exception Description: Could not look up remote connection under name jms/jmsConnectionFactory with URL null
Internal Exception: javax.naming.NameNotFoundException: Name jms is not bound in this Context
Any ideas what's wrong? Is it possible with tomcat anyways? Could not find any information about it in the www.
Greetings,
Sascha
[Updated on: Wed, 23 July 2014 17:36] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03039 seconds