环境搭建和例子:
Download mule standaloe from web site:
• /download-mule-esb-community-edition
• Unzip to a path(such as: D:\mulesl312)
Installing Mule IDE in Eclip
• Start Eclip, and t up a workspace for your installation of Mule if you haven't already. (Make sure your workspace does not have a space in the directory path)
• In the workbench view, choo Help > Install New Software.
• Press the Add button next to the Work with text box, enter /mule-ide/updates/3.4/ and press Enter. The Mule IDE now appears in your list of available software.
• Select the Mule IDE check box and click Next, and after Eclip process for a moment, click Next again.
• Review the Mule IDE licen, lect the option to accept the licen, and then click Finish.
• Click Yes to restart Eclip.
• Set Mule Distributions in eclip:
You are now ready to configure the Mule distribution as described in the next ction.
Config MULE_HOME and add bin to path:
• MULE_HOME: D:\mulesl312
• Path:%Path%; %MULE_HOME%\bin
Create a new Mule project:
How to Import a existing project to Mule project and run it:
there is some ecamples in example folder of MULE,wecanimport them
We neeed to add Mule classpath lib to the project
Then we can run the project on Mule runtime like as:
So rver starts:
NFO 2011-06-22 11:38:01,125 [main] dule.management.agent.JmxAgent: Registered Endpoint Service with name: Mule.04cd6ac8-9c81-11e0-95b7-8bd1ea0dc252:type=Endpoint,rvice="Hello World",connector=connector.http.mule.default,name="endpoint.http.localhost.8888"
INFO 2011-06-22 11:38:01,125 [main] dule.management.agent.JmxAgent: Registered Connector Service with name Mule.04cd6ac8-9c81-11e0-95b7-8bd1ea0dc252:type=Connector,name="connector.rvlet.mule.default.1"
INFO 2011-06-22 11:38:01,125 [main] dule.management.agent.JmxAgent: Registered Connector Service with name Mule.04cd6ac8-9c81-11e0-95b7-8bd1ea0dc252:type=Connector,name="connector.stdio.mule.default.1"
INFO 2011-06-22 11:38:01,125 [main] dule.management.agent.JmxAgent: Registered Connector Service with name Mule.04cd6ac8-9c81-11e0-95b7-8bd1ea0dc252:type=Connector,name="connector.VM.mule.default.1"
INFO 2011-06-22 11:38:01,125 [main] dule.management.agent.JmxAgent: Registered Connector Service with name Mule.04cd6ac8-9c81-11e0-95b7-8bd1ea0dc252:type=Connector,name="connector.http.mule.default.1"
INFO 2011-06-22 11:38:01,140 [main] org.mule.DefaultMuleContext:
**********************************************************************
* Mule ESB and Integration Platform *