Re: How to invoke CXF webservice from processor bean

2012-07-23 Thread Willem Jiang
You just set the header on the exchange which is passed to process method. You should set the header on the ProducerTemplate, please use the method requestBodyAndHeader instead of requestBody. On Fri, Jul 20, 2012 at 9:34 AM, jeyaseelan78 wrote: > Hi, > I have processor bean using which i would

Re: How to invoke CXF webservice from processor bean

2012-07-23 Thread jeyaseelan78
Hi, I even tried giving exchange.getIn().setHeader(CxfConstants.OPERATION_NAMESPACE, "http://pas.adapter.service.xyz.abc.XX/";); but still no luck and it looks like it is just ignoring the headers completely. it always invokes one specific operation defined in the SEI. I have the following questio

Re: CamelDestinationOverrideUrl documentation

2012-07-23 Thread Willem Jiang
yes, it is support in the camel-cxfrs component. But it is not used in CXF, I think we don't need to change the CXF wiki page for it. On Tue, Jul 24, 2012 at 6:07 AM, ychawla wrote: > Hello All, > There is a header that can be set called: CamelDestinationOverrideUrl. > This > is really cool bec

Re: CxfRsProducer is not thread safe

2012-07-23 Thread Willem Jiang
On Tue, Jul 24, 2012 at 6:16 AM, Sergey Beryozkin wrote: > Hi > > On 23/07/12 17:38, dumi_p wrote: > >> Hi all, >> >> I am using Camel 2.10.0 deployed on Tomcat 7 and I try to test following >> scenario: >> >> 1. Have a CXF rest service deployed >> 2. Have a proxy CXF rest service over the service

Re: How to handle http status code

2012-07-23 Thread Willem Jiang
Here is some tricks for accessing message header and body. In the Processor, you can access the message body from InMessage, and You can also set the OutMessage body and header. If you doen't set the OutMessage, Camel will take the InMessage as the InMessage for next processor, otherwise it will t

Re: MockEndpoint expectedBodiesReceived should handle duplicates

2012-07-23 Thread Willem Jiang
This issue[1] has been fixed few weeks ago. [1]https://issues.apache.org/jira/browse/CAMEL-5440 On Tue, Jul 24, 2012 at 5:51 AM, Christian Müller < christian.muel...@gmail.com> wrote: > Thanks for reporting William! > > Do you consider to raise an JIRA [1] and attach your patch? > > [1] https://i

Re: How to invoke CXF webservice from processor bean

2012-07-23 Thread Willem Jiang
Yeah, the operationNamespace is needed if the serviceName namespace is not same with the operationName. On Tue, Jul 24, 2012 at 2:54 AM, ychawla wrote: > Hi, > I see that you set the operationName but did you set the > operationNamespace. > > For example: > > senderExchange.getIn().setHeader(Cxf

Global onException clause with RouteBuilders

2012-07-23 Thread Matt Narrell
I have a set of Java DSL RouteBuilders with onException clauses at the RouteBuilder level, and some per individual routes. These are bound to the CamelContext via Spring DSL . Also in the CamelContext is a "global" onException defined. My global onException clause is never executed. Does t

Re: CxfRsProducer is not thread safe

2012-07-23 Thread Sergey Beryozkin
Hi On 23/07/12 17:38, dumi_p wrote: Hi all, I am using Camel 2.10.0 deployed on Tomcat 7 and I try to test following scenario: 1. Have a CXF rest service deployed 2. Have a proxy CXF rest service over the service above, deployed under the same Camel instance It works fine, until I perform requ

CamelDestinationOverrideUrl documentation

2012-07-23 Thread ychawla
Hello All, There is a header that can be set called: CamelDestinationOverrideUrl. This is really cool because you can have a single CXF endpoint and set this header to set to different endpoints that implement this interface. For example, you can have 10 endpoints you send to that use the same

Re: CXFRS does not process JSON

2012-07-23 Thread Sergey Beryozkin
On 23/07/12 17:52, hom wrote: Thanks for the quick reply. I added the transformFeature bean, but it seems that is has no effect. I am still getting the same message. This is what I did in the blueprint context: http://www.xyz.org/types}DoItRequest"/>

Re: MockEndpoint expectedBodiesReceived should handle duplicates

2012-07-23 Thread Christian Müller
Thanks for reporting William! Do you consider to raise an JIRA [1] and attach your patch? [1] https://issues.apache.org/jira/browse/CAMEL Best, Christian On Mon, Jul 23, 2012 at 10:24 PM, wjmcdonald < william.mcdon...@transcentra.com> wrote: > When trying to test bodies received like: > mo

Re: How to handle http status code

2012-07-23 Thread bitter geek
Hi Christoph, Thanks for your help! I managed to get it to work based on you code with some changes as shown below. One change is to call process after to(endpoint). The reponse I need to handle is that from to(endpoint). After this change, the getOut() on exchange returns null, so I have to set

Re: How to invoke CXF webservice from processor bean

2012-07-23 Thread ychawla
Hi, I see that you set the operationName but did you set the operationNamespace. For example: senderExchange.getIn().setHeader(CxfConstants.OPERATION_NAMESPACE, "http://yourOperationNamespace";); Try setting that and see if you get the same results. Thanks, Yogesh -- View this message in con

Re: Parallel processing using apache camel

2012-07-23 Thread ychawla
Hi Nafees, Have you looked into using SEDA component? You can send from your file path to the SEDA component and set up your concurrency there: http://camel.apache.org/seda.html There is another Camel post that discussed how to do this: http://camel.465427.n5.nabble.com/Ability-to-process-multi

Re: Camel & Spring testing framework

2012-07-23 Thread ychawla
Hi Sri, The Camel in Action book has great resources on testing. There is also a good WIKI page for Camel testing: http://camel.apache.org/testing.html Also check on the 'adviceWith' page. It has some great testing strategies: http://camel.apache.org/advicewith.html Thanks, Yogesh -- View t

Re: Camel 2.10 eagerMaxMessagesPerPoll

2012-07-23 Thread Christian Müller
Sure? We have a unit test [1] which works. [1] https://svn.apache.org/repos/asf/camel/tags/camel-2.10.0/camel-core/src/test/java/org/apache/camel/component/file/FileConsumeNotEagerMaxMessagesPerPollTest.java Best, Christian On Mon, Jul 23, 2012 at 5:06 PM, cvancal wrote: > I am trying to use

Re: How to handle http status code

2012-07-23 Thread Christoph Emmersberger
Hi Bing, simple question, why don't you write e.g. a processor that is configured to your route. Your route could look like thos: /** Processor defined as spring bean, e.g. via @Named tag */ @Inject MyHeaderExtractor myHeaderExtractor; public void configure() throws Exceltion { from("di

Re: How to handle http status code

2012-07-23 Thread bitter geek
Hi Sergey, Thanks for the reply. I'm quite new to Camel. I knew you can get it from the out message but how do I access the out message from the code snippet I provided? I'd like to know what is the best way to access both the status and the response message as a string. On 7/23/12, Sergey Bery

Re: CXFRS does not process JSON

2012-07-23 Thread hom
Thanks for the quick reply. I added the transformFeature bean, but it seems that is has no effect. I am still getting the same message. This is what I did in the blueprint context: http://www.xyz.org/types}DoItRequest"/> http://cam

CxfRsProducer is not thread safe

2012-07-23 Thread dumi_p
Hi all, I am using Camel 2.10.0 deployed on Tomcat 7 and I try to test following scenario: 1. Have a CXF rest service deployed 2. Have a proxy CXF rest service over the service above, deployed under the same Camel instance It works fine, until I perform requests in parallel. Exception stacktrace

Re: cxfEndpoints and different transports (http, https) using PAX Web

2012-07-23 Thread Scott England-Sullivan
Hi Lars, There is a bug currently that prevents the component from resolving a "match any" consumer endpoint with a bridged producer. I have opened a ticket a provided a patch. You can follow the details here: https://issues.apache.org/jira/browse/CAMEL-5458 Until then, I believe you can confi

Re: How to handle http status code

2012-07-23 Thread Sergey Beryozkin
Hi On 23/07/12 16:43, bitter geek wrote: Hi All, I have a router builder for a rest service with configure override like the following: ... @Override public void configure() throws Exception { from("direct:GetCustomer") .setHeader("Content-Type", constant

How to handle http status code

2012-07-23 Thread bitter geek
Hi All, I have a router builder for a rest service with configure override like the following: ... @Override public void configure() throws Exception { from("direct:GetCustomer") .setHeader("Content-Type", constant("application/x-www-form-urlencoded"))

Re: CXFRS does not process JSON

2012-07-23 Thread Sergey Beryozkin
Hi On 23/07/12 16:10, hom wrote: Hi, I've created a cxfrs route as described in http://camel.apache.org/cxfrs.html (How to consume the REST request in Camel). I am using SOAPUI to test the endpoint. The resource class is: /@Path("/") @Consumes({"application/xml","application/json"}) @Produces({

Camel 2.10 eagerMaxMessagesPerPoll

2012-07-23 Thread cvancal
I am trying to use the File component with the following properties: maxMessagesPerPoll=1 eagerMaxMessagesPerPoll=false but when I deploy I am getting: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of

CXFRS does not process JSON

2012-07-23 Thread hom
Hi, I've created a cxfrs route as described in http://camel.apache.org/cxfrs.html (How to consume the REST request in Camel). I am using SOAPUI to test the endpoint. The resource class is: /@Path("/") @Consumes({"application/xml","application/json"}) @Produces({"application/xml","application/json

Re: How to invoke CXF webservice from processor bean

2012-07-23 Thread jeyaseelan78
Hi, Here is my SEI. - import javax.jws.WebMethod; import javax.jws.WebService; @WebService public interface PasApplicationAdapterService { @WebMethod public String processClient(String pasXml) throws Exception; @WebMethod public voi

RE: Input directory with multiple file consumers

2012-07-23 Thread Raf
> Is there a way to monitor the same input folder from camel applications on different machines? I am wondering what the best practice is on handling this situation. Since you logged an issue for this, you might want to know that I found a workaround. If you add the parameters preMove=proc

Re: Request-reply with Camel Spring AMQP

2012-07-23 Thread Willem Jiang
I just take a quick look at the document of Camel Spring AMQP component[1], it doesn't support to setup the exchangePattern option. From your description, it looks like it is still use the InOnly exchange pattern. On Mon Jul 23 15:36:37 2012, Bruno Dusausoy wrote: Hi, I know this is not an

Re: Camel & Spring testing framework

2012-07-23 Thread Sri
Hi, I just wanted to create a base class for my testing framework which should use Spring Application context and Camel context and the other test cases can extend this base class and proceed. and BTW the spring enhanced testing is available in 2.9.1 version. Regards Srinivas -- View this mes

Re: Camel & Spring testing framework

2012-07-23 Thread Bruno Dusausoy
On 23/07/2012 11:38, Sri wrote: Hi All, I wanted to create unit testing framework for Camel& spring. It would be great if any body who have already worked on similiar kind of stuff can share thoughts on this. I wanted to use annotations for this framework. Doesn't this suit your needs ? http:

Camel & Spring testing framework

2012-07-23 Thread Sri
Hi All, I wanted to create unit testing framework for Camel & spring. It would be great if any body who have already worked on similiar kind of stuff can share thoughts on this. I wanted to use annotations for this framework. Regards Sri -- View this message in context: http://camel.465427

Multicast and Aggregator V AKKA

2012-07-23 Thread gilboy
Hi In my application I have 4 web service calls I need to make in a process flow which can be made in parallel.The obvious approach in solving this to me was just to use a multicast and have results aggregated together using the aggregator EIP support. Since I have been hearing much about akka la

Request-reply with Camel Spring AMQP

2012-07-23 Thread Bruno Dusausoy
Hi, I know this is not an official Camel component but is it possible to do request/reply with the Camel Spring AMQP component ? I don't see any example on the internet. Basically here's my context : http://camel.apache.org/schema/spring";>