13
MULE RMI TRANSPORT BY – ANKUSH SHARMA

Mule RMI transport

Embed Size (px)

Citation preview

Page 1: Mule RMI transport

MULE RMI TRANSPORTBY – ANKUSH SHARMA

Page 2: Mule RMI transport

WHAT IS RMI?

RMI is the object oriented equivalent to RPC (Remote procedure call). The Java Remote Method Invocation (RMI) system allows an object running in one Java Virtual Machine (VM) to invoke methods of an object running in another Java VM.

Page 3: Mule RMI transport

MULE RMI TRANSPORT

The RMI transport can be used to send and receive Mule events over http://en.wikipedia.org/wiki/JRMP[JRMP]. This transport has a dispatcher that invokes an RMI method and a polling receiver that repeatedly does the same.

Page 4: Mule RMI transport

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

Page 5: Mule RMI transport

MULE RMI TRANSPORT – CONFIGURATION WIZARD (GENERAL TAB)• Following are the options on general tab –• Display Name – The name to be displayed in the Mule flow.• Exchange Pattern – Exchange pattern to be used for this transport

connector.• Host – Host for this transport component.• Port – Port for this transport component.• Object – Object of the class that will be invoked by RMI.• Method – The name of the method to be invoked.• Method Argument Types – Comma separated arguments for the method

that will be invoked.• Connector Configuration – Reference to the global connector configuration.

Page 6: Mule RMI transport

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

Page 7: Mule RMI transport

MULE RMI TRANSPORT – CONFIGURATION WIZARD (ADVANCED TAB)• Following are the options on advanced tab –• Address – The address to this transport.• Response Timeout – Response timeout time in milliseconds.• Encoding – Encoding standard to be applied on message data.• MIME Type – MIME type of the message data.• Connector Endpoint – Reference to the global connector endpoint.

Page 8: Mule RMI transport

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

Page 9: Mule RMI transport

MULE RMI TRANSPORT – CONFIGURATION WIZARD (RECONNECTION TAB)• Following are the properties in 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.

• Following are properties on reconnection tab –• 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 RMI transport

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

Page 11: Mule RMI transport

MULE RMI 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 RMI connector.• Transformers to be applied - Enter a list of synchronous transformers

that are applied to the response before it is dispatched from the RMI connector.

Page 12: Mule RMI transport

MULE RMI TRANSPORT – NOTES AND META-DATA TABS• Notes tab - This tab is used to add special notes for the Mule

RMI connector.• Metadata tab – This tab is used to add any metadata entry

for Mule RMI connector.

Page 13: Mule RMI transport

THANK YOU!