title: wso2 esb Class Mediator
body: <p>hello I have the following class mediator created through Carbon Studio:</p>
  
  <pre><code> package my.mediation;
  
      import org.apache.synapse.MessageContext; 
      import org.apache.synapse.mediators.AbstractMediator;
  
      public class Auth extends AbstractMediator { 
  
  
          public boolean mediate(MessageContext context) { 
              // TODO Implement your mediation logic here 
  
              context.setProperty("message","hello world!" );
  
              return true;
          }
  
  }
  </code></pre>
  
  <p>And the sequence is like:</p>
  
  <pre><code>&lt;inSequence xmlns="http://ws.apache.org/ns/synapse"&gt;
     &lt;property name="message" value="nothing" scope="default" /&gt;
     &lt;class name="my.mediation.Auth" /&gt;
     &lt;log&gt;
        &lt;property name="Message******" expression="get-property('message')" /&gt;
     &lt;/log&gt;
  &lt;/inSequence
  </code></pre>
  
  <p>>
  The problem is that instead of printing Message: "HelloWorld" it always print the text "nothing"...Any suggestion?</p>