Want to write a standalone java class that uses MuleClient for sending messages to ActiveMQ
Hi,
My requirement is to have a standalone java class that just generates messages and puts them to an Active MQ Topic. I want to write something similar to following -
try {
MuleClient client = new MuleClient();
RemoteDispatcher dispatcher = client.getRemoteDispatcher("tcp://localhost:61616");
for (String rowValue : rowList) {
dispatcher.sendAsyncRemote("jms://topic:manu.topic", rowValue, null);
}
} catch (MuleException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Can you please help?
Thanks,
Manupriya