MalformedObjectNameException in camel-jms
-----------------------------------------
Key: CAMEL-293
URL: https://issues.apache.org/activemq/browse/CAMEL-293
Project: Apache Camel
Issue Type: Bug
Components: camel-jms
Affects Versions: 1.2.0
Reporter: Hadrian Zbarcea
Assignee: Hadrian Zbarcea
Trying to get a simple example working where I move any message put on queue
"A" to queue "B".
public void configure() {
from("activemq:queue:Foo").to("activemq:queue:Bar");
}
My camel-context.xml file looks like the following:
<camelContext useJmx="true"
xmlns="http://activemq.apache.org/camel/schema/spring">
<package>org.apache.camel.example.spring</package>
</camelContext>
<bean id="activemq" class="org.apache.camel.component.jms.JmsComponent">
<property name="connectionFactory">
<bean class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL"
value="vm://localhost?broker.persistent=false"/>
</bean>
</property>
</bean>
I get the following error:
javax.management.MalformedObjectNameException: Could not create ObjectName
from:
org.apache.camel:context=j3g8zc1/camelContext,group=routeBuilder,routeType=routeType,route=[activemq]queue:warwick.134923438,name=route.
Reason: javax.management.MalformedObjectNameException: Invalid character ':'
in value part of property
at
org.apache.camel.management.CamelNamingStrategy.createObjectName(CamelNamingStrategy.java:213)
at
org.apache.camel.management.CamelNamingStrategy.getObjectName(CamelNamingStrategy.java:142)
at
org.apache.camel.management.InstrumentationLifecycleStrategy.onRoutesAdd(InstrumentationLifecycleStrategy.java:74)
at
org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:312)
...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.