WebSphere Transformation Extender's
interaction with Activemq. Not hard but little tricks are important. As usual,
if you google this solution, you will not find a single site or blog stating
exact steps. So, here it is. Post your comments for questions.
Step 1: Setting jndi.propertise
Place provided “jndi.properties”
file in <WTX_INSTALL>/java/lib directory or defined CLASSPATH. Sample
jndi.properties can be downloaded from here.
Step 2: Include Jars
Include following Jars in local accessible folder.
activemq-all-5.5.1-fuse-07-11.jar
geronimo-jms_1.1_spec-1.1.1.jar
log4j-1.2.16.jar
slf4j-api-1.6.4.jar
slf4j-log4j12-1.6.4.jar
spring-jms-3.0.6.RELEASE.jar
Step 3: Add External Jars in dtx.ini
Include above mentioned jars in External jar section dtx.ini
file. (replace home/aad/tmp with your folder path from root)
jar1=/home/aad/tmp/activemq-all-5.5.1-fuse-07-11.jar
jar2=/ home / aad /tmp/geronimo-jms_1.1_spec-1.1.1.jar
jar3=/ home / aad /tmp/log4j-1.2.16.jar
jar4=/ home / aad /tmp/slf4j-api-1.6.4.jar
jar5=/ home / aad /tmp/slf4j-log4j12-1.6.4.jar
jar6=/ home / aad /tmp/spring-jms-3.0.6.RELEASE.jar
Step 4: Command
-T -HDR -ICTXFURL tcp://<brokerURL>:<port>
-ICTXF org.apache.activemq.jndi.ActiveMQInitialContextFactory
-CFN "connectionFactory"
-QN "
testQueue"
Where
connectionFactory – JNDI Connection Factory Name
testQueue – JNDI Queue Name