You got to use ConnectionInfo.getConnectionId(), and your supplied
clientIDPrefix will be the start of the returned id.

fyi, the java doc from the website is a good reference:
http://activemq.apache.org/maven/5.4.0/activemq-core/apidocs/org/apache/activemq/command/ConnectionInfo.html

Maybe the simplest thing is to put a start/end marker, say '^' in the
clientIDPrefix that you can easily look for, just don't use ':' as
that is significant to the id parser.

On 24 March 2011 08:54, Eric-AWL <eric.vinc...@atosorigin.com> wrote:
> Hi Gary
>
> Thank you.
>
> I will follow your advice.
>
> I looked into IdGenerator.java source
>
> I imagine that I should retreive "ID:myProject.-one port
> number-timestamp-instanceCount:sequence"
>
> Since "ConnectionInfo" usage is not documented at all on the website, can I
> use ConnectionInfo.getClientId() and analyze this answer to retreive
> "myProject" value, without being afraid that format changes and/or API won't
> be supported in near future versions ?
>
> Eric-AWL
>
>
>
> --
> View this message in context: 
> http://activemq.2283324.n4.nabble.com/Connection-ClientId-Identifier-and-AdvisoryMessage-tp3399952p3401922.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
http://blog.garytully.com
http://fusesource.com

Reply via email to