title: mule JDBC with Message Enricher
body: <p>I want to Enrich some variables. This is my scenario i am having customer pojo with id, username , password.while i am passing only ID on customer pojo, while on enricher i have read ID value from customer pojo and fetch username and password form DB and append with that pojo.please any one help me how to resolve this...  </p>
  
  <pre><code>&lt;/cxf:jaxws-service&gt;
                  &lt;logger level="INFO" doc:name="Logger"/&gt;
                  &lt;enricher doc:name="Message Enricher"&gt;           
                      &lt;jdbc:outbound-endpoint exchange-pattern="one-way" queryKey="selectData" connector-ref="jdbcConnector" doc:name="Database (JDBC)"&gt;
                          &lt;jdbc:query key="selectData" value="SELECT Username, Password from Credentials where ModuleId=101"/&gt;
                      &lt;/jdbc:outbound-endpoint&gt;
                      &lt;enrich target="#[variable:Username]" source="#[groovy:payload.Username]"/&gt;                        
                  &lt;/enricher&gt;
                   &lt;logger level="INFO" message="Username #[groovy:payload]" /&gt;
  </code></pre>
  
  <p>how can read the value from DB and append with my customer Pojo.</p>