activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom (JIRA)" <jira+amq...@apache.org>
Subject [jira] [Created] (AMQNET-385) SessionId not incrementing in message ID.
Date Tue, 29 May 2012 10:02:22 GMT
Tom created AMQNET-385:
--------------------------

             Summary: SessionId not incrementing in message ID.
                 Key: AMQNET-385
                 URL: https://issues.apache.org/jira/browse/AMQNET-385
             Project: ActiveMQ .Net
          Issue Type: Bug
          Components: NMS
    Affects Versions: 1.5.5
            Reporter: Tom
            Assignee: Jim Gomes


Using version 1.5.5 of Apache.NMS.ActiveMq.

The following simple test shows that the sessionId portion of the NMSMessageId isn't getting
incremented as new sessions are created.

{code}            
for (int n = 0; n < 100; n++)
{
   IConnection connection = _connectionFactory.Create();
   using (ISession session = connection.CreateSession(AcknowledgementMode.AutoAcknowledge))
   {
      using (IMessageProducer prod = session.CreateProducer(session.GetTopic("TestTopic")))
      {
         IMessage msg = prod.CreateTextMessage("Wibble");
         prod.Send(msg);

         Console.WriteLine(msg.NMSMessageId);
      }
   }
}{code}

I would expect to see both the producerId and sessionId incrementing each time.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message