Skip to content

Instantly share code, notes, and snippets.

@mariomartinezricston
Created July 8, 2016 11:17
Show Gist options
  • Save mariomartinezricston/c3f1e76cb8b627a8b4bbabe9930b37f4 to your computer and use it in GitHub Desktop.
Save mariomartinezricston/c3f1e76cb8b627a8b4bbabe9930b37f4 to your computer and use it in GitHub Desktop.
public class OnCallClass implements Callable {
@Override
public Object onCall(MuleEventContext eventContext) throws Exception {
eventContext.getMessage().setProperty("surname", "Martinez", PropertyScope.SESSION);
System.out.println("Session Variable updated \n");
System.out.println("Returning Animal Object in the payload");
return new Animal();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment