Skip to content

Instantly share code, notes, and snippets.

@fganora
Created October 19, 2016 08:30
Show Gist options
  • Save fganora/4d15073c26cc0cf3da36dd7f85764a0d to your computer and use it in GitHub Desktop.
Save fganora/4d15073c26cc0cf3da36dd7f85764a0d to your computer and use it in GitHub Desktop.
Mule message send from MEL 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