camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgold03 <jgoldb...@gmail.com>
Subject Simple Routing
Date Fri, 11 Jan 2008 16:28:04 GMT

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)
...

Any clue whats up?
-- 
View this message in context: http://www.nabble.com/Simple-Routing-tp14760105s22882p14760105.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message