Question-6: What happen when each inbound endpoint receive a message in a composite message source?

Answer: In this case each endpoint in a composite message source will start a new flow execution when it receives a message.

Question-7: What is the use of Message Processor in the Mule?

Answer: Message processors are the basic building blocks of a Mule configurations. In a flow you would see many Message Processors. In the Message processor you would be doing all the message handling operations in Mule.

Question-8: What are the main features of the message processors?

Answer: Below are the few features of the Message Processors

  • As Outbound endpoints it takes care of dispatching messages to whatever destination you want.
  • As transformers, using this you can modify the messages
  • As routers, using this you can distribute the message in a particular direction.
  • As components, using this you can do your business operations on the message.

 

Question-9: In your mule configuration if only one message processor is allowed then, how you can use multiple message processor?

Answer: In this case we should use processor-chain element, using this message processor we can encapsulate several message processors which will be called one after the other.

 

Question-10: How would you create a custom Message Processor?

Answer: We can implement “org.mule.api.processor.MessageProcessor” in our custom class and referencing it in the configuration with a custom processor element.