MuleClient client = new MuleClient(true);
MuleContext mc = client.getMuleContext();
MuleRegistry reg = mc.getRegistry();
org.apache.activemq.ActiveMQConnectionFactory connectionFactory
= new ActiveMQConnectionFactory();
connectionFactory.setBrokerURL("tcp://localhost:61616");
JmsConnector connector = new JmsConnector(mc);
connector.setConnectionFactory(connectionFactory);
reg.registerConnector(connector);
HashMap<String, Object> map = ...
client.dispatch(JMS_QUEUE_INBOUND, map,
null);