Created
July 8, 2016 11:17
-
-
Save mariomartinezricston/c3f1e76cb8b627a8b4bbabe9930b37f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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