mule jetty transport

14
MULE JETTY TRANSPORT By – Ankush Sharma

Upload: ankush-sharma

Post on 16-Apr-2017

194 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Mule Jetty transport

MULE JETTY TRANSPORT

By – Ankush Sharma

Page 2: Mule Jetty transport

WHAT IS JETTY?Jetty is a Java HTTP (Web) server and Java Servlet container. While Web Servers are usually associated with serving documents to people, Jetty is now often used for machine to machine communications, usually within larger software frameworks.

Page 3: Mule Jetty transport

MULE JETTY TRANSPORT The Jetty transport provides support for exposing applications over HTTP by

embedding a light-weight Jetty server. The Jetty SSL Transport works the same way but over SSL. You can only define inbound endpoints with this transport.

The connector allows Mule to expose Mule Services over HTTP using a Jetty HTTP server. A single Jetty server is created for each connector instance. One connector can serve many endpoints. Users should rarely need to have more than one Jetty connector. The Jetty connector can be configured using a Jetty XML config file, but the default configuration is sufficient for most scenarios.

Page 4: Mule Jetty transport

MULE JETTY TRANSPORT – CONFIGURATION WIZARD (GENERAL TAB) (CONT.)

Page 5: Mule Jetty transport

MULE JETTY TRANSPORT – CONFIGURATION WIZARD (GENERAL TAB) Following are the options on general tab –

Display Name – The name of the component to be displayed in Mule flow. Exchange Pattern – The exchange pattern that will be used by this component. Address – Address for Jetty connector. Connector Configuration – Reference to the global connector configuration.

Page 6: Mule Jetty transport

MULE JETTY TRANSPORT – CONFIGURATION WIZARD (ADVANCED TAB) (CONT.)

Page 7: Mule Jetty transport

MULE JETTY TRANSPORT – CONFIGURATION WIZARD (ADVANCED TAB) Following are the options on advanced tab –

Encoding – Encoding standard to be applied on message data. MIME Type – MIME type of message data e.g. application/xml. Connector Endpoint – Reference to the global connector endpoint configuration.

Page 8: Mule Jetty transport

MULE JETTY TRANSPORT – CONFIGURATION WIZARD (RECONNECTION TAB) (CONT.)

Page 9: Mule Jetty transport

MULE JETTY TRANSPORT – CONFIGURATION WIZARD (RECONNECTION TAB) Following are properties on reconnection tab –

Do not use a Reconnection Strategy – This is the default radio button which specifies do not try to reconnect if there is error connecting to the web address URL.

Standard Reconnection – Use this radio button to enable a standard reconnection strategy. Frequency (ms) – The frequency time in milliseconds after which the File connector will

try to access the web address URL. Reconnect Attempts – This tells how many times the File connector will try to connect to

web address URL. Reconnector Forever – Check this box if there is need to make File connector connect to

web address URL until there is a successful connection with it. Custom Reconnection – Use this radio button to create a custom Reconnection

strategy. Class – The java class which will come in action after a failed connection attempt. Run the connection in a separated thread – Check this box if there is need to use this

custom reconnection operation in separate thread.

Page 10: Mule Jetty transport

MULE JETTY TRANSPORT – CONFIGURATION WIZARD (TRANSFORMERS TAB) (CONT.)

Page 11: Mule Jetty transport

MULE JETTY TRANSPORT – CONFIGURATION WIZARD (TRANSFORMERS TAB) Following are properties on Transformers tab –

Global transformers – Enter a list of synchronous transformers that are applied to the request before it is sent to the Jetty transport.

Transformers to be applied - Enter a list of synchronous transformers that are applied to the response before it is dispatched from the Jetty transport.

Page 12: Mule Jetty transport

MULE JETTY TRANSPORT – CONFIGURATION WIZARD (HTTP SETTINGS TAB)

Following are options on HTTP Settings tab – User – The username that will be used for authentication. Password – Password for the username. Content Type – The HTTP content type to use.

Page 13: Mule Jetty transport

MULE JETTY TRANSPORT – NOTES AND META-DATA TABS Notes tab - This tab is used to add special notes for the Jetty transport. Metadata tab – This tab is used to add any metadata entry for Jetty

transport.

Page 14: Mule Jetty transport

THANK YOU!