activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cannifx <>
Subject Re: Messages do not flow through Network of Brokers after reconnect
Date Tue, 27 Aug 2013 15:05:07 GMT wrote
> You would need to download the NMS source, and start debugging to see 
> what's different.  You can enable tracing on the transport layer with 
> transport.useLogging=true in NMS to see each command that's sent in the 
> logs and compare that to the Java or C++ client variants.
> -- 
> Tim Bish
> Sr Software Engineer | RedHat Inc.

> tim.bish@

>  | |
> skype: tabish121 | twitter: @tabish121
> blog:

Thanks, Tim !
I think it is only way to go, but i did some further investigation,
regardless of c++ or nms if i set delivery mode to persistent, messages not
going through after reconnect, with MsgDeliveryMode.NonPersistent all works
as it should, but i really need persistent messages. Piece of producer code:

IConnectionFactory factory = new ConnectionFactory(uri);
using (IConnection connection = factory.CreateConnection())
    using (ISession session = connection.CreateSession())
          IDestination destination = new ActiveMQQueue("FOO.Alive");
          using (IMessageProducer producer =
               producer.DeliveryMode = MsgDeliveryMode.NonPersistent;
               ITextMessage message= session.CreateTextMessage("test");
DateTime.Now.ToString("dd.MM.yyyy HH:mm:ss"));
So, may be someone have some tips ?


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message