I need to programmatically start or stop a flow or endpoint from another flow. Can this be done? Is there risk of message loss?
You can control the lifecycle of Mule moving parts with JMX: use JConsole to find out what MBean you need to access from your scripted component.