2. Abstract
• The main motto of this PPT is How to use
Message Enricher in our applications.
3. Introduction
• A message enricher can be used to lookup
the state using the zip code from an
enrichment resource. The enricher calls out to
the enrichment resource with the current
message (containing the zip code) then
enriches the current message with the result.
6. • Output:
• INFO 2016-05-23 14:18:39,246 [main] org.mule.module.launcher.MuleDeploymentService:
• ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
• + Started app 'MessageEnricher' +
• ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
• INFO 2016-05-23 14:18:39,276 [main] org.mule.module.launcher.DeploymentDirectoryWatcher:
• ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
• + Mule is up and kicking (every 5000ms) +
• ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
• INFO 2016-05-23 14:18:39,370 [main] org.mule.module.launcher.StartupSummaryDeploymentListener:
• **********************************************************************
• * - - + DOMAIN + - - * - - + STATUS + - - *
• **********************************************************************
• * default * DEPLOYED *
• **********************************************************************
• *******************************************************************************************************
• * - - + APPLICATION + - - * - - + DOMAIN + - - * - - + STATUS + - - *
• *******************************************************************************************************
• * MessageEnricher * default * DEPLOYED *
• *******************************************************************************************************
• INFO 2016-05-23 14:19:50,582 [[MessageEnricher].HTTP_Listener_Configuration.worker.01] org.mule.api.processor.LoggerMessageProcessor:
Before Message Enricher--Test1:message from flow--Test2:Hai
• INFO 2016-05-23 14:19:50,647 [[MessageEnricher].HTTP_Listener_Configuration.worker.01] org.mule.api.processor.LoggerMessageProcessor: After
Message Enricher--Test1:India--Test2:Hai
7. • Flow of execution:
1. URL to trigger the service from browser
http://localhost:8090
2. Logger component displays flowVars before
Message Enricher and after Message Enricher