I have this configured in my server.xml for tomcat the following JNDI ref's to OpenMQ...
<Resource ackTimeout="-t 30000" auth="Container"
description="OpenMQ Queue Connection Factory"
factory="com.sun.messaging.naming.QCFObjectFactory"
host="-s localhost"
name="jms/FACTORY"
parm="--"
securityPort="7676"
subnet="0"
type="com.sun.messaging.QueueConnectionFactory" version="1.1"/>
<Resource auth="Container"
description="OpenMQ Queue"
destName="ESI_AUDIT"
factory="com.sun.messaging.naming.QObjectFactory"
name="jms/ESI_AUDIT"
type="com.sun.messaging.Queue" version="1.1"/>
I have no idea how to define these in jetty.xml that is used for my concordian tests though.
Can someone please help me out?
Thanks Jeff Porter
<New id="FACTORYjndi" class="org.eclipse.jetty.plus.jndi.Resource">
<Arg></Arg>
<Arg>jms/FACTORY</Arg>
<Arg>
<New class="com.sun.messaging.QueueConnectionFactory"></New>
</Arg>
</New>
<New id="ESI_AUDITjndi" class="org.eclipse.jetty.plus.jndi.Resource">
<Arg></Arg>
<Arg>jms/ESI_AUDIT</Arg>
<Arg>
<New class="com.sun.messaging.Queue"></New>
</Arg>
</New>
I would also suggest you set the "useTestScope" to true as well.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.12.4</version>
<configuration>
<useTestScope>true</useTestScope>
<includes>
<include>**/*Fixture.java</include>
</includes>
<systemProperties>
<property>
<name>concordion.output.dir</name>
<value>target/concordion</value>
</property>
</systemProperties>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>integration-test</goal>
</goals>
</execution>
<execution>
<id>verify</id>
<goals>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>