2. What is a servlet?
A servlet is a Java programming language class that is used to extend the capabilities of servers
that host applications accessed by means of a request-response programming model.
Although servlets can respond to any type of request, they are commonly used to extend the
applications hosted by web servers.
3. What does Mule Servlet connector do?
◦ Allows Mule applications to listen for messages or events received using a Servlet request.
◦ At a minimum, specify the path to the Servlet through which the event or message is received.
The Path property is set from the General tab.
4. Mule Servlet Connector – Configuration
Wizard (General Tab)
◦ Following are the properties on general tab –
◦ Display Name – The display name of the servlet that will be there on Mule flow.
◦ Path – The path for accessing this servlet.
◦ Connector Configuration – Reference to the global connector configuration.
5. Mule Servlet Connector – Configuration
Wizard (Advanced Tab)
◦ Following are the options on advanced tab –
◦ Address – Absolute address to this endpoint.
◦ Response Timeout – The time in milliseconds for timeout the request.
◦ Encoding – Encoding standard to be applied on message content.
◦ MIME Type – MIME type of message content e.g. application/xml.
◦ Connector Endpoint – Reference of the global connector endpoint configuration.
6. Mule Servlet Connector – Configuration
Wizard (Reconnection Tab)(Cont.)
◦ Following are the options 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.
7. Mule Servlet Connector – Configuration
Wizard (Reconnection Tab)
◦ 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.
8. Mule Servlet Connector – Configuration
Wizard (Transformers Tab)(Cont.)
◦ 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 Servlet connector.
◦ Transformers to be applied - Enter a list of synchronous transformers that are applied to the response
before it is dispatched from the Servlet connector.
9. POP3 Connector – Notes and Meta-Data
tabs
◦ Notes tab - This tab is used to add special notes for the Servlet connector.
◦ Metadata tab – This tab is used to add any metadata entry for Servlet connector.