<21.What are available approaches used for modularizing configurations in Mule ?There are different following approaches that can be used when modularizing a configuration. 22.Give an example of stdio connector in Mule ?1 <stdio:connector name="SystemStreamConnector" promptMessage="Please enter 23.Give an example of http connector in Mule ?<http:connector name="HttpConnector"proxyHostname="proxyHostname" 24.When does Mule instantiates a connector ?If Mule figures out that one of our endpoints needs a particular connector, it will automatically instantiate one for us, using all the default values for its different configuration parameters. This is a perfectly viable approach if we are satisfied with the behavior of the connector when it uses its default configuration. This is often the case for the VM or HTTP transports. Note that Mule will name these default connectors with monikers such as connector.http.0. 25.What is Transport Service Descriptor in Mule ?The connector has a technical configuration known as the Transport Service Descriptor (TSD). This hidden configuration is automatically used for each instance of the connector. It defines technical parameters such as what classes to use for the message receivers, requesters, and dispatchers; or the default transformers to use in inbound, outbound, and response routers. Knowing these default values is essential to grasping the behavior of a transport. 26.How many endpoints are there in Mule ?There are two endpoints : inbound and outbound. 27.What is an outbound endpoint in Mule ?Outbound endpoints are used to send data. An outbound endpoint is used to do things such as send SOAP messages, write to file streams, and send email messages. 28.What is global endpoint in Mule ?An endpoint destination that is shared by several routers, it is worth creating a global endpoint. A global endpoint is not typified for inbound or outbound routing, making it usable in many different places in a configuration file. It must be named so it can actually be used in a service, which will reference the global endpoint by its name. A global endpoint can also help clarify the usage of a particular destination. 29.Why does an endpoint in Mule offer an address attribute ?This allows us to configure a generic endpoint using the Mule 1.x style of URI-based destination addresses instead of the dedicated attributes of the specific endpoint element. 30.Give an example of file endpoint in Mule ?1.<file:endpoint name="tmpPoller" path="/tmp" fileAge="1000"pollingFrequency="2000"/> 31.What is streaming property in file connector in Mule ?The value of this streaming property can be either true or false. If it is set to true then we are actually working on stream of file data otherwise we are working with file itself. 32.What is pollingFrequency property in file connector in Mule ?When we want file inbound endpoints to poll their source directories for new content. This is accomplished by setting the pollingFrequency to some milliseconds value. 33.What is autoDelete property in file connector in Mule ?The default value of autoDelete is true. Therefore, a file inbound endpoint will, by default, remove the file from the source directory once it is read by the inbound endpoint. If you do not want to delete file automatically then you can set autoDelete property to false. 34.What is fileAge property in file connector in Mule ?The fileAge property specifies how long the endpoint should wait before reading the file again. For instance, a fileAge of 60000 indicates Mule should wait a minute before processing the file again. 35.How to send only certain types of file from one directory to another in Mule ?Use the below element in file inbound to filter certain types of files. 36.What is VM transport in Mule ?The VM transport is a special kind of transport that you’ll use to send messages via memory. These messages never leave the JVM the Mule instance is running in. 37.What is multicasting router in Mule ?The multicasting router can send messages to multiple endpoints over different transports. The multicasting router allows you to easily move the same messages across these different endpoints. 38.What is Mule transformer ?It is an event, more specifically an instance of org.mule.api.MuleEvent. This object carries not only the actual content of the message but also the context of the event. 39.What is Mule context ?The Mule context is composed of references to different objects, including security credentials, if any, the session in which the request is processed. All internals of the ESB are accessible through Mule context 40.What is payload in Mule ?The content of a message, also known as payload. It is wrapped in an instance of org.mule.api.MuleMessage, which provides different means of accessing the payload under different forms. A MuleMessage also contains properties, much like the header of a SOAP envelope or the properties of a JMS message, and can also have multiple named attachments. |