I found a bug

2014-05-29 Thread Ernest Lu
Hi, I have three RouteDefinitions,as follows. from(direct:start) .routeId(route1) .to(mock:end) from(direct:start2) .to(mock:end) from(jetty:http://0.0.0.0:15124/download;) .removeHeader(Exchange.HTTP_URI) .routeId(filedownload) .to(http://127.0.0.1:8090/camel.doc;) The first RouteDefinition

How to record time token after accessing a route or endpoint

2013-12-03 Thread Ernest Lu
Hi, How to record time token after accessing a route or endpoint. Thanks -- View this message in context: http://camel.465427.n5.nabble.com/How-to-record-time-token-after-accessing-a-route-or-endpoint-tp5744292.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: cxf bus

2013-11-05 Thread Ernest Lu
hi, thank you very much. I use different port,but it still doesn't work. Finally I specify the bus option per CXF endpoint,This problem solved. Why don't specify this option, it wouldn't work. Changed Spring configuration file like this: ?xml version=1.0 encoding=UTF-8? beans

Re: cxf bus

2013-11-04 Thread Ernest Lu
Hi, *I'm using Camel 2.10.7* *My Spring configuration file like this as follow* ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:jaxws=http://cxf.apache.org/jaxws; xmlns:camel=http://camel.apache.org/schema/spring;

Re: cxf bus

2013-11-04 Thread Ernest Lu
Hi, *I'm using Camel 2.10.7* *My Spring configuration file like this as follow* ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:jaxws=http://cxf.apache.org/jaxws; xmlns:camel=http://camel.apache.org/schema/spring;

Re: cxf bus

2013-11-04 Thread Ernest Lu
Hi, *I'm using Camel 2.10.7* *My Spring configuration file like this as follow* ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:jaxws=http://cxf.apache.org/jaxws; xmlns:camel=http://camel.apache.org/schema/spring;

cxf bus

2013-11-03 Thread Ernest Lu
hi, When remove a cxf route,camel will shut down the cxf bus,so the other cxf routes won't work. -- View this message in context: http://camel.465427.n5.nabble.com/cxf-bus-tp5742573.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: cxf bus

2013-11-03 Thread Ernest Lu
thanks for your help For example I have two routes like this: from(cxf://address1).to(cxf:address2).routeId(route1) from(cxf://address3).to(cxf:address4).routeId(route2) if i remove the route1 camelContext.stopRoute(route1); camelContext.removeRoute(route1); the route2 will can not work. the

What is the different between ErrorHandler of the Dead Letter Channel and Exception Clause

2013-09-04 Thread Ernest Lu
hi, What is the different between ErrorHandler and Exception Clause? they can both catch exception. When to use ErrorHandler? When to use Exception Clause? Thanks -- View this message in context:

Re: The Message header with the name of CxfConstants.OPERATION_NAME

2013-09-02 Thread Ernest Lu
Thanks for your reply I have a test case like this: public class CXFTest extends CamelTestSupport { protected static Endpoint endpoint; protected static WebServiceTestImpl implementor; public static String proxyAddress =

The Message header with the name of CxfConstants.OPERATION_NAME

2013-09-01 Thread Ernest Lu
Hi, exchange.getIn().setHeader(CxfConstants.OPERATION_NAME, Invoke); exchange.getIn().setHeader(CxfConstants.OPERATION_NAME, InvokeOneWay); I am confused that some camel-cxf test classes set the CxfConstants.OPERATION_NAME header like that above instead of the method name to be invoked .

CXF Component

2013-08-29 Thread Ernest Lu
Hi, I have the following route: from(cxf://http://0.0.0.0:8080/proxy?dataFormat=MESSAGEserviceClass=com.ProxyClass;) .process(new Processor() { @Override public void process(Exchange exchange) throws

freemarker component

2013-08-26 Thread Ernest Lu
hi, I’m trying to use freemarker component with the following URI: freemarker://http://127.0.0.1:8080/test/test.txt However,freemarker throws a java.io.FileNotFoundException: http://127.0.0.1:8080/test/test_zh_CN.txt. Why is not the same as the URI in the Exception and the original URI. I

Re: freemarker component

2013-08-26 Thread Ernest Lu
hi Claus thanks for your reply I succeed in solving the problem using the way of setting the URI like this: freemarker://http://127.0.0.1:8080/test/test.txt?configuration.locale=null; -- View this message in context:

how do i parse a DSL

2013-08-18 Thread Ernest Lu
hi If I have a DSL like this : route id=cool from uri=direct:start/ to uri=mock:result/ /route how do i parse the DSL which is stored in an external file to generate a route,then add it into the context. Best Regards -- View this