Hi ActiveMQ team, Could somebody please help me understand the format of ActiveMQ connection id and client id. For example, I see this line in broker logs.
20130926 11:52:52:284 IST (ActiveMQ Transport: tcp:///10.240.170.64:40739@61616) org.apache.activemq.broker.util.LoggingBrokerPlugin 188 INFO - Adding Connection : ConnectionInfo {commandId = 1, responseRequired = true, connectionId = ID:desh0041.hyd-32812-1380176571908-1:1, clientId = ID:desh0041.hyd-32812-1380176571908-0:1, clientIp = tcp://10.240.170.64:40739, userName = test, password = *****, brokerPath = null, brokerMasterConnector = false, manageable = true, clientMaster = true, faultTolerant = true, failoverReconnect = false}. I would like to understand what are the different attributes in connection id and client id here apart from the client's host name. For example, 32812 here is neither client's port nor its process id. What does it represent? What does 1380176571908 represent here? Why are they not same here? connectionId = ID:desh0041.hyd-32812-1380176571908-1:1 clientId = ID:desh0041.hyd-32812-1380176571908-0:1 Please also help me understand the following: 1. Is connection id and client id guaranteed to be unique for every client (producer or consumer) in every run? Can I assume that at no times two connection ids/client ids will be same? 2. Are these created on the broker side or created on the client side? 3. I see some difference in connection id and client id for JMS and STOMP clients? For example, the connection id for jms client has client host in it but connection id for stomp client has broker host in it? Why this difference and inconsistency? Please help me understand. Thanks a ton! -Steven -- View this message in context: http://activemq.2283324.n4.nabble.com/Query-about-ActiveMQ-connection-id-and-client-id-format-tp4671843.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.