Hi Jakki,
Here's a little snippet that should get you started:
IConnectionFactory factory =
NMSConnectionFactory.CreateConnectionFactory("activemq:failover:tcp://activemqhost:61616");
using(IConnection connection = factory.CreateConnection())
using(ISession session =
connection.CreateSession(AcknowledgementMode.AutoAcknowledge))
{
IDestination srcQueue = session.GetDestination("queue://Source");
IDestination destQueue = session.GetDestination("queue://Destination");
IMessageConsumer consumer = session.CreateConsumer(srcQueue);
IMessageProducer producer = session.CreateProducer(destQueue);
connection.Start();
// Copy message from source queue to destination queue.
producer.Send(consumer.Receive());
}
Looking at the source code to the unit tests can be very informative, too.
Best,
Jim
On Fri, Dec 16, 2016 at 11:24 AM Jakki <[email protected]> wrote:
> I am new to ActiveMQ, I am trying create an application in C#.net. Could
> you
> please help me in moving a message from 1 queue to another queue in Active
> MQ?
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Moving-message-from-one-queue-to-another-using-Apache-NMS-ActiveMQ-tp4720534.html
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>