Skip to content

Instantly share code, notes, and snippets.

@fganora
Created October 21, 2016 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fganora/d17ce5a7969116076842b5345d848a6c to your computer and use it in GitHub Desktop.
Save fganora/d17ce5a7969116076842b5345d848a6c to your computer and use it in GitHub Desktop.
Mule: using MEL to send a payload to a VM endpoint
import org.mule.DefaultMuleMessage;
import org.mule.module.client.MuleClient;
request = new DefaultMuleMessage(payload, app.registry['_muleContext']);
MuleClient client = new MuleClient(app.registry['_muleContext']);
client.send("vm://myqueue", request);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment