Set up Mule runtime env with mule-standalone-3.6.0

1. Download mule-standalone

https://repository.mulesoft.org/nexus/content/repositories/releases/org/mule/distributions/mule-standalone/3.6.0/mule-standalone-3.6.0.zip

2. Hello world

in mule-standalone-3.6.0\apps\default\mule-config.xml

        <?xml version="1.0" encoding="UTF-8"?>
        <mule xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:json="http://www.mulesoft.org/schema/mule/json" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
            xmlns:spring="http://www.springframework.org/schema/beans" version="EE-3.6.0"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
        http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
        http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
        http://www.mulesoft.org/schema/mule/json http://www.mulesoft.org/schema/mule/json/current/mule-json.xsd
        http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd">

            <http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/>

           <flow name="my_first_projectFlow">
                <http:listener config-ref="HTTP_Listener_Configuration" path="/" doc:name="HTTP"/>
                <set-payload doc:name="Set Payload" value="Hello World!"/>
            </flow>
        </mule>

3. Start Mule server

run command “mule” in “mule-standalone-3.6.0\bin” fold.

4. Brow hello world:

http://localhost:8081/

Eclipse Plugin:

mule - http://studio.mulesoft.org/r3/plugin

你可能感兴趣的:(mule,starter)