activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From StefanL <>
Subject AMQNET Nms cannot use multiple connections, gets InvalidClientIDException
Date Wed, 23 Apr 2008 11:20:12 GMT

I'm trying to upgrade our activemq-dotnet from September 2007 to current
I though get an error in our code which creates multiple connections to the
broker and I get the 
javax.jms.InvalidClientIDException: Client: <guid> already connected from

I can easily reproduce the error with this simple test case:
    public void TwoConnections()
        Apache.NMS.IConnectionFactory connectionFactory = new
Apache.NMS.ActiveMQ.ConnectionFactory(new Uri("tcp://localhost:61616"));
        Apache.NMS.IConnection connection1 =
        Apache.NMS.IConnection connection2 =
        [snipped away stop and dispose]

I've drilled down the behavioural change to ActiveMQ.ConnectionFactory
constructors and
The thing is that in revision 589629 the connection factory was changed so
the member 
clientId got set by the ctor and then used for connections created. 
I think that it should be null so a new clientId is generated per new

Should I change my code in some way to conform with current nms code or is
this a bug
in nms?
Regards and TIA

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

View raw message