title: How Achieve Synchronous Until-Successful With Mule 3.6 When objectStore is Defined?
body: <pre><code>&lt;sub-flow name="SendToEMC"&gt;
      &lt;until-successful objectStore-ref="objectStore" maxRetries="${MaximumRetry}" secondsBetweenRetries="${RetryInterval}"&gt;       
          &lt;http:outbound-endpoint address="${EMCURL}" exchange-pattern="one-way"&gt;
             &lt;transformer ref="contentTypeTextXML"/&gt;
         &lt;/http:outbound-endpoint&gt;
      &lt;/until-successful&gt;
  &lt;/sub-flow&gt;
  &lt;expression-component&gt;app.registry.messageBean.messageProcessedSuccessfully(flowVars.id)&lt;/expression-component&gt;
  </code></pre>
  
  <p>I need to execute the expression-component after until-successful tag, only if it actually successes! but when i try to use Synchronous = true with until-successful i got this error : </p>
  
  <blockquote>
    <p>Until successful cannot be configured to be synchronous and use an
    object store.</p>
  </blockquote>
  
  <p>I tried to use below work around but it seems not to work :</p>
  
  <pre><code>&lt;sub-flow name="SendToEMC"&gt;
      &lt;until-successful objectStore-ref="objectStore" maxRetries="${MaximumRetry}" secondsBetweenRetries="${RetryInterval}"&gt;  
      &lt;processor-chain&gt;      
          &lt;http:outbound-endpoint address="${EMCURL}" exchange-pattern="one-way"&gt;
             &lt;transformer ref="contentTypeTextXML"/&gt;
         &lt;/http:outbound-endpoint&gt;
          &lt;expression-component&gt;app.registry.messageBean.messageProcessedSuccessfully(flowVars.id)&lt;/expression-component&gt;
       &lt;/processor-chain&gt;
      &lt;/until-successful&gt;
  &lt;/sub-flow&gt;
  </code></pre>
  
  <p>What am i doing wrong? and how can i achieve this? </p>
  
  <p>thank you</p>