Re: Definining interceptors in camel-cxf

2009-01-20 Thread Willem Jiang
Hi You can set the interceptors into cxf bus[1], then all the CXF endpoints create by CAMEL will use them. [1]http://cwiki.apache.org/CXF20DOC/bus-configuration.html Willem S. Ali Tokmen wrote: Hello, Pawel Thank you for this quick response. I now have another issue: I would actually be

Re: Responses to CXF messages in Camel route

2009-01-20 Thread Willem Jiang
Hi Lars, Can you show me the detail code of FooProcessor() ? If you take a look at the PipeLine(which chains these endpoints and processor together), you will find the codes about copying exchanges between these endpoints and processors. // now lets set the input of the next exchange to the

Re: Why getContext().addInterceptStrategy is throwing an exception?

2009-01-20 Thread Liav Ezer
Hi Ashwin, My processor works great - if i remove the getContext().addInterceptStrategy(new MyFromEndpointInterceptor()); line everything is smooth. Can you think of a reason why i get this exception? framework.beans.factory.BeanCreationException: Error creating bean with name 'camelContext':

Re: Newbie: Mapping JMS Camel / Spring to POJO, ActiveMQ Queues

2009-01-20 Thread James Strachan
2009/1/20 Matvey mat...@inbox.ru: I still have several questions about Spring/JMS/Camel/POJO mapping. Question 1 for example I have Spring config file: ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans;

Re: Responses to CXF messages in Camel route

2009-01-20 Thread Lars Ivar Igesund
Hi, I was able to get an acceptable solution working, so I won't try anymore until we eventually have to upgrade. Since we are using Camel 1.4.0, I suspect there are multiple issues at hand. Just to recapitulate: FooProcessor sets the body of the out message of the incoming exchange. In the

Re: Definining interceptors in camel-cxf

2009-01-20 Thread S. Ali Tokmen
Hello again I now have a very annoying exception: java.lang.NullPointerException at org.apache.cxf.wsdl11.WSDLServiceFactory.init(WSDLServiceFactory.java:81) at

Re: Definining interceptors in camel-cxf

2009-01-20 Thread Willem Jiang
Hi, Can you send me your test case, and which version of camel are you using? It's looks like a cxfEndpoint configuration issue. Willem S. Ali Tokmen wrote: Hello again I now have a very annoying exception: java.lang.NullPointerException at

Re: Why getContext().addInterceptStrategy is throwing an exception?

2009-01-20 Thread Ashwin Karpe
Hi Liav, Have you add the code in the configure() method. The reason for this issue can be one of two things - The Camel listener has not been setup. This means the code is called before context.start() - The dependencies cannot be resolved (i.e the jar containing

Re: Why getContext().addInterceptStrategy is throwing an exception?

2009-01-20 Thread Liav Ezer
Hi Ashwin, Well i added the start as follows: public void configure() throws Exception { getContext().start(); getContext().addInterceptStrategy(new MyFromEndpointInterceptor()); from(jbi:service:http://oxp/oXpInternalService;) .process(new