You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Tom (JIRA)" <ji...@apache.org> on 2012/05/29 12:02:22 UTC
[jira] [Created] (AMQNET-385) SessionId not incrementing in message
ID.
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
[jira] [Closed] (AMQNET-385) SessionId not incrementing in message
ID.
Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQNET-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothy Bish closed AMQNET-385.
-------------------------------
Resolution: Not A Problem
Assignee: Timothy Bish (was: Jim Gomes)
The code is creating a new Connection each time trough the loop, so you id is showing that as each new connection is used a Connection with session 1, producer 1, sends message 1.
> 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: Timothy Bish
>
> 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