Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 81841 invoked from network); 25 Jun 2008 04:48:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jun 2008 04:48:49 -0000 Received: (qmail 34939 invoked by uid 500); 25 Jun 2008 04:48:51 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 34870 invoked by uid 500); 25 Jun 2008 04:48:50 -0000 Mailing-List: contact camel-dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-dev@activemq.apache.org Received: (qmail 34859 invoked by uid 99); 25 Jun 2008 04:48:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2008 21:48:50 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [195.69.129.178] (HELO exsmtp02.exserver.dk) (195.69.129.178) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2008 04:47:58 +0000 Received: from EXVS04.exserver.dk ([10.10.10.85]) by exsmtp02.exserver.dk with Microsoft SMTPSVC(6.0.3790.1830); Wed, 25 Jun 2008 06:46:14 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: JMX - spring-jms example - strange mbean name - try on your laptop please Date: Wed, 25 Jun 2008 06:46:59 +0200 Message-ID: <4C1FB9C00D24A140906239533638C4D2049DD8AC@EXVS04.exserver.dk> In-Reply-To: <4C1FB9C00D24A140906239533638C4D2049DD8AB@EXVS04.exserver.dk> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: JMX - spring-jms example - strange mbean name - try on your laptop please Thread-Index: AcjV8o2pfuuCL3FrSjKhWtcQLoeN/AAinJLgAABFS+A= From: "Claus Ibsen" To: X-OriginalArrivalTime: 25 Jun 2008 04:46:14.0252 (UTC) FILETIME=[65D1A2C0:01C8D67E] X-Virus-Checked: Checked by ClamAV on apache.org Hi Okay the ".646039348" part is the hashcode if the endpoint is not a = singleton. Wouldn't it be better to use @ as prefix instead of dot? So its: [jms]queue%3anumbers@646039348 Instead of=20 [jms]queue%3anumbers.646039348 Any thoughts? Med venlig hilsen =20 Claus Ibsen ...................................... Silverbullet Skovsg=E5rdsv=E6nget 21 8362 H=F8rning Tlf. +45 2962 7576 Web: www.silverbullet.dk -----Original Message----- From: Claus Ibsen [mailto:ci@silverbullet.dk]=20 Sent: 25. juni 2008 06:38 To: camel-dev@activemq.apache.org Subject: RE: JMX - spring-jms example - strange mbean name - try on your = laptop please Hi Ah it was a char based replace method - it does replace all. If the = inputs was String objects then you needed to use the replaceAll. I tried with jconsole from JDK6 and it also displayes the names = "strangely". I am curious where the why the name is translated into: [jms]queue%3anumbers.646039348 What generates the ".646039348" part? Okay I will fire up the debugger and see what is going on. Med venlig hilsen =20 Claus Ibsen ...................................... Silverbullet Skovsg=E5rdsv=E6nget 21 8362 H=F8rning Tlf. +45 2962 7576 Web: www.silverbullet.dk -----Original Message----- From: Willem Jiang [mailto:willem.jiang@gmail.com]=20 Sent: 24. juni 2008 14:06 To: camel-dev@activemq.apache.org Subject: Re: JMX - spring-jms example - strange mbean name - try on your = laptop please Hi Claus, I changed the code to use replaceAll but I got the same result. String.replace() and String.replaceAll() are using the regex for=20 replacing, so they will replace all the token that find. Willem Claus Ibsen wrote: > Hi > > Ah it need to use replaceAll and not just replace since there can be = more tokens in the name.=20 > > Willem can you try with the replaceAll and see if it works? I am at = work. > > > Med venlig hilsen > =20 > Claus Ibsen > ...................................... > Silverbullet > Skovsg=E5rdsv=E6nget 21 > 8362 H=F8rning > Tlf. +45 2962 7576 > Web: www.silverbullet.dk > > -----Original Message----- > From: Willem Jiang [mailto:willem.jiang@gmail.com]=20 > Sent: 24. juni 2008 11:32 > To: camel-dev@activemq.apache.org > Subject: Re: JMX - spring-jms example - strange mbean name - try on = your laptop please > > Hi Claus, > > I got the same result with you. After digging the code , I found it = is=20 > caused by the ObjectName can't contain one of :",=3D*? > You can find more information in here[1] > > [1]=20 > = https://svn.apache.org/repos/asf/activemq/camel/trunk/camel-core/src/main= /java/org/apache/camel/management/ObjectNameEncoder.java > > Willem > Claus Ibsen wrote: > =20 >> Hi >> >> I have enabled the JMX connector on the spring-jms example in the = trunk. >> Could you try to see from jconsole if your computer also reports the = jms queue route with a strange name >> >> How-to >> =3D=3D=3D=3D=3D=3D >> svn up >> cd examples/camel-example-spring-jms >> mvn compile exec:java -PCamelServer >> >> start jconsole >> connect to the service URI reported from the console logginf from the = CamelServer (service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi) >> browse and see if any names are strange. >> >> On my laptop the jms queues has a strange name. See the screenshot on = the CAMEL-627 ticket. >> >> >> >> Med venlig hilsen >> >> Claus Ibsen >> ...................................... >> Silverbullet >> Skovsg=E5rdsv=E6nget 21 >> 8362 H=F8rning >> Tlf. +45 2962 7576 >> Web: www.silverbullet.dk >> >> >> =20 >> =20 > > > =20