« Return to Thread: Want to write a standalone java class that uses MuleClient for sending messages to ActiveMQ

RE: Want to write a standalone java class that uses MuleClient for sending messages to ActiveMQ

by Wayne Wundram :: Rate this Message:

Reply to Author | View in Thread

Dear Manupriya,

Why don't you just use JMS? Why the need for MuleClient?

Regards,
Wayne Wundram
www.miraculum.com
Johannesburg, South Africa

-----Original Message-----
From: Manupriya [mailto:manupriya.sinha@...]
Sent: Thursday, August 14, 2008 9:03 AM
To: user@...
Subject: [mule-user] 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
--
View this message in context:
http://www.nabble.com/Want-to-write-a-standalone-java-class-that-uses-Mu
leClient-for-sending-messages-to-ActiveMQ-tp18976660p18976660.html
Sent from the Mule - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Want to write a standalone java class that uses MuleClient for sending messages to ActiveMQ