I spent a couple of days learning about IBM's MQ, JMS, and Mule last
week and was able to get a few working examples going that read an XML
message off of one MQ Queue, transformed it using XSLT and then put the
result on a second Queue.
This type of example will help us do 90% of the integration work we need at my company.
I stumbled across ServiceMix this past weekend and would like to get
that example working in ServiceMix to compare the 2. I am happy with
Mule and it's simple API, but I am very interested in going with
ServiceMix because it is JBI-compliant from the ground up.
I am hoping someone on this mailing list can help me get my example
converted and working. I am having some trouble out of the gate getting
my JNDI bindings to IBM's MQ working. I have a bindings file in the
directory specified below and I am not sure how to set up my JMS Sender
and Receiver components to use it.
I think once I am able to get an example working that pops off one
queue and puts on another that I will be able to do the transformation
stuff myself.
Thanks for any and all help!
Ian
---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mule-configuration PUBLIC "-//SymphonySoft //DTD mule-configuration XML V1.0//EN"
"http://www.symphonysoft.com/dtds/mule/mule-configuration.dtd">
<mule-configuration id="Catalog_Transform" version="1.0">
<connector name="jmsConnector"
className="org.mule.providers.jms.JmsConnector">
<properties>
<property name="specification" value="1.0.2b"/>
<property name="jndiInitialFactory"
value="com.sun.jndi.fscontext.RefFSContextFactory"/>
<property name="jndiProviderUrl" value="file:///C:/ESB/jndi/"/>
<property name="connectionFactoryJndiName"
value="ConnectionFactory"/>
</properties>
</connector>
<endpoint-identifiers>
<endpoint-identifier name="inbox" value="jms://ORDER_IN" />
<endpoint-identifier name="outbox" value="jms://ORDER_OUT" />
</endpoint-identifiers>
<transformers>
<transformer
name="ByteArrayToString"
className="org.mule.transformers.simple.ByteArrayToString"/>
<transformer name="Xslt" className="org.mule.transformers.xml.XsltTransformer">
<properties>
<property name="xslFile" value="catalog.xsl"/>
</properties>
</transformer>
<transformer
name="ObjectToJMSMessage"
className="org.mule.providers.jms.transformers.ObjectToJMSMessage"/>
</transformers>
<model name="CatalogTransform">
<mule-descriptor name="CatalogScreenDisplay"
inboundEndpoint="inbox"
outboundEndpoint="outbox"
implementation="org.mule.components.simple.EchoComponent"
outboundTransformer="ByteArrayToString Xslt ObjectToJMSMessage" />
</model>
</mule-configuration>
