1
votes

If anyone could provide the steps to setting up an inbound endpoint for an AMQP connector in a mule flow with step 0 being the the point of downloading the zip file from github, I would be most grateful.

There seems to be this assumed knowledge that most people know how to take a zip file from github and somehow make that file available for use in mule eclipse. Do I need to turn it into a jar file and if so how do i reference that file from the mule project? .. the permutations for a non java programmer seem endless

I have successfully sent events from salesforce to my email via mule eclipse so I get the idea at a very high level .. but adding a connector has me completely foxed

here is the error

ERROR 2012-08-07 00:35:30,833 [main] org.mule.module.launcher.application.DefaultMuleApplication: null org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate NamespaceHandler for namespace [http://www.mulesoft.org/schema/mule/amqp]

here is my config

<amqp:connector name="amqpConnector" host="localhost"></amqp:connector>

<flow name="test2" doc:name="test2">
    <amqp:inbound-endpoint exchangeName="topic"></amqp:inbound-endpoint>
    <smtp:outbound-endpoint host="relay.jangosmtp.net" port="25" user="xxxx" password="xxxx" to="[email protected]" from="[email protected]" subject="test" responseTimeout="10000" doc:name="SMTP"/>
</flow>

1
When you say "in Eclipse" do you mean "Mule Studio"?David Dossot
Correct David - my apologies : "Mule Studio". I have watched the 5 part video tutorial and was most impressed with the platform. Unfortunately my java knowledge is limited as is my experience around eclipse. I have absolutely no idea how to get the AMQP connector into my project. All help is much appreciated.neil reid

1 Answers

1
votes

Here is what I would try:

  • Delete the project from Studio without deleting the files
  • Maven-ify the Studio project: http://www.mulesoft.org/documentation/display/MULE3STUDIO/Importing+Maven+into+Studio
  • Add the following dependency to pom.xml:

    <dependency>
      <groupId>org.mule.transports</groupId>
      <artifactId>mule-transport-amqp</artifactId>
      <version>3.3.0</version>
    </dependency>
    
  • Run mvn studio:studio

  • Import the project back in Eclipse, which should have the AMQP transport dependencies added to it.