how to test the restlet service without startup web containner manually

2013-10-28 Thread CamelTyro
Hello I met a problem when testing the restlet service, I config my restlet service by adding the following snippet in web.xml: RestletServlet org.restlet.ext.spring.SpringServerServlet org.restlet.component RestletComponent

Re: how to test the restlet service without startup web containner manually

2013-10-29 Thread CamelTyro
Must I startup a web container -- View this message in context: http://camel.465427.n5.nabble.com/how-to-test-the-restlet-service-without-startup-web-containner-manually-tp5742339p5742343.html Sent from the Camel - Users mailing list archive at Nabble.com.

how to check whether a routing of one message finished

2013-11-03 Thread CamelTyro
How to get the real node count of a router, I used the tracer function and get the number of nodes had been traced via TracedRouteNodes traced = exchange.getUnitOfWork().getTracedRouteNodes(); List list = traced.getNodes(); and the size of list is the node count traced. So if I can get the total co

how to set priority for activemq outbound when routing

2013-11-06 Thread CamelTyro
I made the below code to set priority before sending message to activemq: .setHeader("JMSPriority", constant(9)).wireTap("activemq:queueName"); but the message's priority in amq broker is 4, not 9. How to set priority for activemq outbound when routing? -- View this message in context: http://

Re: how to set priority for activemq outbound when routing

2013-11-06 Thread CamelTyro
Thanks sincerely, it works. -- View this message in context: http://camel.465427.n5.nabble.com/how-to-set-priority-for-activemq-outbound-when-routing-tp5742691p5742699.html Sent from the Camel - Users mailing list archive at Nabble.com.

how to use the org.apache.camel.component.properties.PropertiesComponent

2013-11-06 Thread CamelTyro
I made the properties defined as below classpath:esb-config.properties --username,password etc classpath:esb-router.properties --router inbound url and use {{key}} to inject the property value to

Re: how to use the org.apache.camel.component.properties.PropertiesComponent

2013-11-06 Thread CamelTyro
In a property file, I config the username and password, besides the endpoint url, as below #This used to access the activemq userName=system password=manager #This used to set the url of endpoint url1=restlet:/rs/his/... url2=... I config the router by {{url1}}, and the activemq infomation with{{u

Issue after config activemq component transaction

2013-11-07 Thread CamelTyro
Before adding the trasaction configuraiton to activemq component, as below I can send msg to activemq which config by --- After adding the trasaction configuraiton to a

how to get the target url of a router

2013-11-10 Thread CamelTyro
After startuping the camel context, how to get the infomation of a router. e.g. I start the camel by Spring. by injecting, I can get the camelContext instance, defined in the spring configuration files. Then I get the list of route by context.getRoutes(); By interating each route object, I can g

Re: how to get the target url of a router

2013-11-11 Thread CamelTyro
I can get the routedefinition instance by List routes = this.camelContext.getRoutes(); for (Route route : routes) { RouteDefinition routeDefinition = route.getRouteContext() .getRoute(); routerInfos.add(routerInfo); } But I don't find a intu

how to assign the jmx objectname without host name

2013-11-11 Thread CamelTyro
When I config the jmx on camel, the objectname is auto genenrated as org.apache.camel:context=*Happiness*/camelContext,type=components,name="activemqTCP" and the Happiness is the my hostname, whether I can config it, e.g. make it as *localhost*/camelContext, I need access it by program and it may c

how to build camel jmx with maven

2013-11-13 Thread CamelTyro
I can run the application and unit test with the jmx object, such as router, endpoint etc that published by camel, but when I build the application with maven, there is no router,endpoint was exposed, what i need to do when build camel jmx project, how camel can expose the jmx object when building

how to build camel jmx with maven

2013-11-14 Thread CamelTyro
The version of camel is 2.12.1 The version of Spring is 3.2.4.RELEASE The version of Maven is 3.1.1 My application is start through Tomcat, and the default jmx object such as route, endpoint was published and accessable. When running the junit test in eclipse, the default jmx object such as route

Re: how to build camel jmx with maven to hekonsek

2013-11-14 Thread CamelTyro
I ran a single test with maven, and the jmx objects were published and the resulte is expected. But when run mvn:test, the error occured. -- View this message in context: http://camel.465427.n5.nabble.com/how-to-build-camel-jmx-with-maven-tp5743222p5743311.html Sent from the Camel - Users mai

Re: how to build camel jmx with maven to Claus Ibsen-2

2013-11-14 Thread CamelTyro
Sorry, when adding this annotation, the jmx objects didn't be exposed, and another exception was raised. The thread blocked at the cyclic barrier has timed out java.util.concurrent.TimeoutException at java.util.concurrent.CyclicBarrier.dowait(CyclicBarrier.java:222) at java.util.co

How to add new router at runtime

2013-11-14 Thread CamelTyro
1. Whether I can add a new router when camel is running? 2. Some days before, we use mule to manage the route infomation, but for some reason, we forward to camel. Can it support the dynamic load router ? -- View this message in context: http://camel.465427.n5.nabble.com/How-to-add-new-router-a