The Mule-ish way to interact with transports is via the MuleClient
.
Inject the MuleContext
in your Java component, get the MuleClient
from it and then use send
or dispatch
with a URI that matches the SFTP endpoint you want to interact with (like sftp://...
).