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
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.
Willem can you try with the replaceAll and see if it works? I am at work.
Med venlig hilsen
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk
-----Original Message-----
From: Willem Jiang [mailto:[EMAIL PROTECTED]
Sent: 24. juni 2008 11:32
To: [email protected]
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
caused by the ObjectName can't contain one of :",=*?
You can find more information in here[1]
[1]
https://svn.apache.org/repos/asf/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management/ObjectNameEncoder.java
Willem
Claus Ibsen wrote:
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
======
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årdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk