Re: camel-cxf: Path [myService] does not match any context

2012-06-19 Thread Thibault
Indeed, the client is written in C#, but it is not mine, I do not have the possibility to modify this code. Do you know where I can find some doc on the way to implement a filter or a handler for a cxf:endpoint ? I only saw information about interceptors like described in http://camel.apache.org/c

RE: Pointers on setting up Camel on JBoss 5.1 using EJBs/Hibernate

2012-06-19 Thread vishal1981
Thank you for your reply. I have ended up doing the following (given my limited knowledge of J2EE) 1. Define a @Service class in JBoss to act as a wrapper to my camel context. (We are on EJB 3.0 and hence dont have @Singelton). 2. This class starts camel and saves its instance (in the @Start metho

Re: Pointers on setting up Camel on JBoss 5.1 using EJBs/Hibernate

2012-06-19 Thread Claus Ibsen
On Mon, Jun 18, 2012 at 9:36 PM, vishal1981 wrote: > Hi, > I want to setup Camel as part on of my application being deployed to JBoss > 5.1. My application nests in a bigger ear (which is a company wide umbrella > application) and it contains several modules including 3 of mine - ejb jar, > servle

Re: How to post to restful service in camel routes?

2012-06-19 Thread Claus Ibsen
On Wed, Jun 20, 2012 at 2:43 AM, hairinwind wrote: > I need get data from csv file and then post it to a external restful service. > > My route is like this > > from("file:data/inbox/?fileName=sample.csv&noop=true"). >                unmarshal().csv() >                .split(body()) >            

Re: How temporary are the temporary queues in Camel Request/Reply pattern?

2012-06-19 Thread Claus Ibsen
On Tue, Jun 19, 2012 at 5:59 AM, ED M Barwani wrote: > Do Temporary Queues get deleted at all? Or are the destinations valid > while the route is running? > > Suppose we have a simple route like so; > >   >   > > > Suppose also, that the activemq endopoint times out. In other words, > the replie

Re: Can CAMEL be a substitue for ServiceMix BC or SE?

2012-06-19 Thread Claus Ibsen
Hi This is cross posted to SMX user list as well, where this is being debated. http://servicemix.396122.n5.nabble.com/Can-CAMEL-be-a-substitute-for-ServiceMix-BC-SE-tp5713751.html So please keep the talk in the SMX @user list. On Wed, Jun 20, 2012 at 2:31 AM, lovekidd wrote: > As for CAMEL and

Re: How to achieve both xpath and aggregator

2012-06-19 Thread Claus Ibsen
Hi I suggest to study the EIP patterns http://camel.apache.org/eip On Tue, Jun 19, 2012 at 11:44 PM, Deepthi wrote: > Hi, > > I have the following xml: > >   >    1 >    XXX >   >   >    2 >    XXX >   >   >    1 >    XXX >   > > > I want to split the above xml to multiple xml's (based on o

How to post to restful service in camel routes?

2012-06-19 Thread hairinwind
I need get data from csv file and then post it to a external restful service. My route is like this from("file:data/inbox/?fileName=sample.csv&noop=true"). unmarshal().csv() .split(body()) .bean(new MyBean()) .setHeader(Exchange.HT

Can CAMEL be a substitue for ServiceMix BC or SE?

2012-06-19 Thread lovekidd
As for CAMEL and ServiceMix, it is said that CAMEL is just one of the components which ServiceMix uses and using CAMEL is the best option for service orchestration. But, from my experiences, i could possibly minimize ServiceMix's role as just a container for CAMEL and replace ServiceMix BC/SE with

Re: Simple language question

2012-06-19 Thread Willem Jiang
I don't like the two filters either and it will be more easy to define the expression as a java bean method. On Tue Jun 19 20:40:27 2012, Claus Ibsen wrote: On Tue, Jun 19, 2012 at 2:19 PM, Gershaw, Geoffrey wrote: Thanks for reply Claus, I see your point. I was trying to avoid writing a nes

Re: camel-cxf: Path [myService] does not match any context

2012-06-19 Thread Willem Jiang
Hi, After google the "Expect: 100-continue", I found some interesting things. First if the client is wrote by C#, you can disable the header thing by setting HttpWebRequest.ServicePoint.Expect100Continue = false; If you want to handle it on your sever side, you may need to add your custo

Re: JSON To XML Converter

2012-06-19 Thread Raul Kripalani
Please try it out the xmljson data format, and let us know if you find any issues. Thanks, Raúl. On 18 Jun 2012, at 16:25, Claus Ibsen wrote: > On Mon, Jun 18, 2012 at 3:52 PM, Sri wrote: > >> Hi All, >> >> is there any JSON to XML converter in camel. As of now I couldn't find any >> component

How to achieve both xpath and aggregator

2012-06-19 Thread Deepthi
Hi, I have the following xml: 1 XXX 2 XXX 1 XXX I want to split the above xml to multiple xml's (based on order tag) and group the xml's which have same order id. So my out put should look like: XML 1: 1 XXX 1 XXX X

Re: XProc support in Camel

2012-06-19 Thread Richard Kettelerij
Hi Sri, Currently Camel offers no support for XProc. I've looked at XProc quickly a couple of years ago (when it became a W3C recommendation) and I don't think it's unfeasible to write your own Camel component around a XProc implementation (e.g. Calabash). See http://camel.apache.org/writing-comp

Re: Asynchronous behavior of SEDA queue?

2012-06-19 Thread csete
Claus, Please disregard my question. Based on your statements, I dug back even further in the chain. I found a spot in my code that uses a ProducerTemplate that was over-synchronized and causing every request to hold until the response was complete. By fixing the synchronization in my method, I

Re: Camel Error handling throwing exception; not moving to error queue

2012-06-19 Thread javaxmlsoapdev
Thanks Claus -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Error-handling-throwing-exception-not-moving-to-error-queue-tp5714076p5714676.html Sent from the Camel - Users mailing list archive at Nabble.com.

camel-cxf: Path [myService] does not match any context

2012-06-19 Thread Thibault
Hi all, I expose a CXF web service endpoint using this kind configuration: http://localhost:8181/myService " serviceClass="my.ServiceImpl"/> When I test it with SoapUI, and it works well. When I use the real client of my service (a custom one, on which I don't have), i get the following error: or

Re: How to set the LRU-Cache size?

2012-06-19 Thread stefzar
Thank you, I've done it by extending MemoryIdempotentRepository and initialized the superconstructor with a HashMap instance. This way the size stays variable, because the setCacheSize method does only work at the beginning, when the LRU-Cache was not already initialized. -- View this message in c

Re: Asynchronous behavior of SEDA queue?

2012-06-19 Thread csete
On Tue, Jun 19, 2012 at 6:24 AM, Claus Ibsen-2 [via Camel] < ml-node+s465427n5714667...@n5.nabble.com> wrote: > On Tue, Jun 19, 2012 at 12:50 PM, csete <[hidden > email]> > wrote: > > > Claus, > > > > I believe that that is what I'm doing? He

Re: Simple language question

2012-06-19 Thread Claus Ibsen
On Tue, Jun 19, 2012 at 2:19 PM, Gershaw, Geoffrey wrote: > Thanks for reply Claus, > > I see your point. I was trying to avoid writing a nested filter. > > >        ${body} != null >         >                 >                         > > > I guess I am looking for a local variable where I coul

Re: Simple language question

2012-06-19 Thread Christian Schneider
How about using setHeader to store the result? Christian Am 19.06.2012 14:19, schrieb Gershaw, Geoffrey: Thanks for reply Claus, I see your point. I was trying to avoid writing a nested filter. ${body} != null I guess I am looking for a lo

RE: Simple language question

2012-06-19 Thread Gershaw, Geoffrey
Thanks for reply Claus, I see your point. I was trying to avoid writing a nested filter. ${body} != null I guess I am looking for a local variable where I could store the result of a predicate on 1 line and use that local variable in the simpl

Re: Single request with multiple replies over TCP

2012-06-19 Thread Claus Ibsen
On Mon, Jun 18, 2012 at 3:05 PM, Alexander Kaiser wrote: > Hi, > > I am trying to connect to a server with mina. The server sends a hello > message on socket connect, then I send it a command and want to receive the > servers reply in the message body. > > camel-mina connects server >            

Re: Asynchronous behavior of SEDA queue?

2012-06-19 Thread Claus Ibsen
On Tue, Jun 19, 2012 at 12:50 PM, csete wrote: > Claus, > > I believe that that is what I'm doing?  Here is the route as XML, dumped > from the route object in JMX: > > id="route_request_handler_tmb" xmlns="http://camel.apache.org/schema/spring > "> >     uri="seda:request_handler_tmb?concurrentC

XProc support in Camel

2012-06-19 Thread Sri
Hi, We are planning to use XProc insted of XML in our project. is there any support for XProc in future releases. Regards Sri -- View this message in context: http://camel.465427.n5.nabble.com/XProc-support-in-Camel-tp5714664.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Asynchronous behavior of SEDA queue?

2012-06-19 Thread csete
Claus, I believe that that is what I'm doing? Here is the route as XML, dumped from the route object in JMX: http://camel.apache.org/schema/spring "> Any thoughts would be appreciated. Thanks, Craig On Tue, Jun 19, 2012 at 4:08 AM, Claus Ibsen-2 [via Camel] < ml-node+s465427n5

Re: Asynchronous behavior of SEDA queue?

2012-06-19 Thread Claus Ibsen
Hi The concurrentConsumers option should be configured on the consumer side, eg from("seda:foo?concurrentConsumers=20") ... On Mon, Jun 18, 2012 at 9:01 PM, csete wrote: > I'm struggling to understand SEDA queue behavior in terms of asynchronous > behavior.  My understanding from the docum

Re: useOriginalMessage in recipientList return the wrong message

2012-06-19 Thread somchaij
See https://issues.apache.org/jira/browse/CAMEL-5378, for explanation and a link to the unit test of this case, enjoy, Tone -- View this message in context: http://camel.465427.n5.nabble.com/useOriginalMessage-in-recipientList-return-the-wrong-message-tp5675017p5714661.html Sent from the Camel -