4.8 How to use Amazon Simple Queue Service with Mule and with GigaSpaces
This documentation will explain how to use the mule sqs connector with mule 2.2.
The sqs connector home page is
http://www.mulesoft.org/documentation/display/SQS/Home
Where we can find guides how to use the mule sqs connector with mule 1, but for mule 2.2 the connector is not released.
- Check out the mule trunk from http://svn.muleforge.org/sqs-transport/
- Put the source into an eclipse project and add the necessary jars to the project to be able to compile it.
- Change the mule-sqs.xml as the followings:
Change
xmlns:mule="http://www.mulesource.org/schema/mule/core/2.1"
to
xmlns:mule="http://www.mulesource.org/schema/mule/core/2.2"
and
<xsd:import namespace="http://www.mulesource.org/schema/mule/core/2.1"/>
to
<xsd:import namespace="http://www.mulesource.org/schema/mule/core/2.2"/>
The java source does not have to be changed.
- Repack the project into a jar file.
- Upload the modified mule-sqs.xml to a web server. This step is necessary because under linux (for some reason) local references is not accepted to the modified file(by java internals), but if it loaded from a web server using http protocol just like the other schemas than it is working.
|