<mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:spring="http://www.springframework.org/schema/beans" xmlns:https="http://www.mulesoft.org/schema/mule/https" xmlns:jetty="http://www.mulesoft.org/schema/mule/jetty-ssl" xmlns:test="http://www.mulesoft.org/schema/mule/test" xsi:schemaLocation=" http://www.mulesoft.org/schema/mule/test http://www.mulesoft.org/schema/mule/test/3.0/mule-test.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.0/mule.xsd http://www.mulesoft.org/schema/mule/https http://www.mulesoft.org/schema/mule/https/3.0/mule-https.xsd http://www.mulesoft.org/schema/mule/jetty-ssl http://www.mulesoft.org/schema/mule/jetty-ssl/3.0/mule-jetty-ssl.xsd"> <https:connector name="httpConnector"> <https:tls-client path="clientKeystore" storePassword="mulepassword" /> <https:tls-key-store path="serverKeystore" keyPassword="mulepassword" storePassword="mulepassword" /> <https:tls-server path="trustStore" storePassword="mulepassword" /> </https:connector> <jetty:connector name="jettyConnector"> <jetty:tls-client path="clientKeystore" storePassword="mulepassword" /> <jetty:tls-key-store path="serverKeystore" keyPassword="mulepassword" storePassword="mulepassword" /> <jetty:tls-server path="trustStore" storePassword="mulepassword" /> </jetty:connector> <https:endpoint name="clientEndpoint" host="localhost" port="60202" synchronous="true" connector-ref="httpConnector" /> <model name="main"> <custom-service name="testComponent" class="org.mule.tck.testmodels.mule.TestSedaService"> <inbound> <jetty:inbound-endpoint host="localhost" port="60202" synchronous="true" connector-ref="jettyConnector" /> </inbound> <test:component appendString="Received" /> </custom-service> </model></mule>
Jetty SSL Transport
The Jetty SSL transport works exactly the same way as the HTTPS Transport Reference with one additional optional attribute, configFile
, which allows you to specify the location of the Jetty config file to configure this connector with.
For example, the following configuration specifies the HTTPS and Jetty-SSL connectors:
If you do not need this level of security, you can use the Jetty Transport Reference instead.