Re: Jetty consumer restricting methods

2012-08-07 Thread michal.warecki
I'm wondering if Camel should not support such feature automatically i.e.: from("jetty://address1?httpMethod=GET")... If you think so I can create JIRA for that and work on that in my free time. If not, just ignore this :-) -- View this message in context: http://camel.465427.n5.nabble.com/Je

Re: Node count in camel

2012-08-07 Thread michal.warecki
If you want to store count result in header, why you use filtering? This should work: count(/order/item) -- View this message in context: http://camel.465427.n5.nabble.com/Node-count-in-camel-tp5716946p5716966.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How Do We Specify Operation To Choose In Camel CXf

2012-08-07 Thread anupamsen
Hi There, I have a similar short of issue. The problem is with the producer end. That is the from side of the route I want to chose an operation. . Camel allows having only one endpoint at a single address like the following- http://localhost:${proxy.port}/camel-exam

How to set parameter dynamically in uri

2012-08-07 Thread Deepthi
Hi, I am trying to set parameter dynamically in uri in the following manner: /order/item/id http://localhost:9002/rest/{id}/RestService"; />

Re: Node count in camel

2012-08-07 Thread Deepthi
Hi Michal, I am trying to give in the following manner: count(/order/item) It is not working. Where am i going wrong? -- View this message in context: http://camel.465427.n5.nabble.com/Node-count-in-camel-tp5716946p5716958.html Sent from the Camel - Users mailing list archive at Nabble.co

Re: TransactedErrorHandler requeue JMS message to DLQ

2012-08-07 Thread Willem jiang
First I want to ask work MessageExchangePattern are you using. I don't think you can do it with InOut MEP, as it more complicated then the InOnly. The TransactionHandler will rollback the transaction when the exception is thrown, as you testProcess is behind the someQueue endpoint, if you need

Re: Jetty consumer restricting methods

2012-08-07 Thread Willem jiang
Hi, It's typical Content Base Route, you can define the route like this from("jetty://address1") .choice() .when(header("CamelHttpMethod").isEqualTo("GET")).to("direct:doSomeThing") .otherwise().to("direct:bye").stop() .end() // keep on processing -- Willem Jiang

exposing same REST service as both GET and POST

2012-08-07 Thread javakurious
Based on the example in http://camel.apache.org/cxfrs.html cxfrs example with camel , I created a REST service exposed as GET operation. Here is the overview of what I have so far : REST endpoint in Camel: And the corresponding resource class used to configure the endpoint... CustomerGETImpl

Re: Connection pooling with camel-amqp

2012-08-07 Thread Lars-Erik Helander
Michal, my stack trace is more or less identical (java source line numbers are not identical). Do you have any idea how to work around this, patch qpid code or other solution? Creation of new connection and destination validation on each operation introduces significant overhead. I turned on

Re: exposing different operations under same service in camel + cxf routing.

2012-08-07 Thread michal.warecki
I think you should create central route and next use content based router. Name of current operation is stored in header CxfConstants.OPERATION_NAME. Something like this: from(...cxf...) .choice() .when(header(CxfConstants.OPERATION_NAME).isEqualTo(operationA))

Re: Node count in camel

2012-08-07 Thread michal.warecki
There is "count" function in XPath. As I know Saxon can handle this function. -- View this message in context: http://camel.465427.n5.nabble.com/Node-count-in-camel-tp5716946p5716948.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Connection pooling with camel-amqp

2012-08-07 Thread michal.warecki
Can you paste your stacktrace also? If your stacktrace looks like this: Exception in thread "Thread-5" java.lang.NullPointerException at org.apache.qpid.client.AMQDestination.equals(AMQDestination.java:577) at org.springframework.jms.connection.CachingConnectionFactory$DestinationC

Node count in camel

2012-08-07 Thread Deepthi
Hi, Is there a way to find number of nodes in a given xml in camel using spring. For Eg: We have the following xml: 1 2 3 I want to know the number of item tags in order tag and store it in header name say itemCount. I am using camel 2.8.0 Is this possible? Thanks, Deepthi -- View th

TransactedErrorHandler requeue JMS message to DLQ

2012-08-07 Thread marnold
Camel Users, I'm using Camel 2.9.0. I have the following route: Where testProcess always throws an exception. For testing purposes! My goal is to achieve the following: (i) if fails, the enqueue to 'queue.so

Consuming a remote FTP server triggered by a route in Camel 2.9

2012-08-07 Thread vishal1981
Hi, In the older documentation for FTP component I found this, "Consuming a remote FTP server triggered by a route The FTP consumer is built as a scheduled consumer to be used in the from route. However if you want to start consuming from a FTP server triggered within a route it's a bit cumbersome

Re: Connection pooling with camel-amqp

2012-08-07 Thread helander
This is part of an OSGi blueprint xml file. http://camel.apache.org/schema/blueprint";>

Re: Connection pooling with camel-amqp

2012-08-07 Thread michal.warecki
Hi helander, Can you paste the code responsible for pooling? -- View this message in context: http://camel.465427.n5.nabble.com/Connection-pooling-with-camel-amqp-tp5716936p5716939.html Sent from the Camel - Users mailing list archive at Nabble.com.

Jetty consumer restricting methods

2012-08-07 Thread Mark Webb
I am using Jetty for a Camel consumer on a couple routes. I would like to limit only GET methods for one route and PUT for another route. Is this possible or do I need to set up some kind of filter/processor to do this? I don't see anything in the documentation to support this functionality. Th

Connection pooling with camel-amqp

2012-08-07 Thread helander
I have tried to get a working solution for connection pooling/caching with camel-amqp. I found some examples that used the Spring CachingConnectionFactory, but when using that it get an NPE. The first time I do a write to a queue, it works, but subsequent writes causes an NPE. It looks like the N

Re: Error in DefaultServicePool on Netty Producer Queue is full

2012-08-07 Thread philippe.suray
Hello, Here is a small test case. I am not familiar with camel testing, I hope my test is correct. I try to send 100 messages to a tcp endpoint and forward it to another tcp endpoint. I don't know how to intercept the error, but if you turn the logging to DEBUG, you have this error: [

Re: Access to LDAP search results

2012-08-07 Thread helander
Hi Henryk, thank you very much for the provided example. /Lars -- View this message in context: http://camel.465427.n5.nabble.com/Access-to-LDAP-search-results-tp5716883p5716914.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Need Help converting XML-CSV(flatfile)

2012-08-07 Thread Henryk Konsek
Hi, > I just stared out with camel...i have done few basic examples > > Now i'm trying to convert XML data to CSV. Please share what have you done so far :) . Which components, data format, etc. are you trying to use? There have you stuck? How does your route look like? Best regards. -- Henry

Re: [HTTP4] HttpProducer close temporary file in CachedOutputStream

2012-08-07 Thread Willem Jiang
Don't worry, I'm already take care of it. I will commit the patch once I finish to run the whole tests rightly. Willem On Tue, Aug 7, 2012 at 2:30 PM, alexey-s wrote: > Thank you, Willem. > I'm in a catch block forgot to send the resulting error (IOException e) on > the top. > > Aleksey > > > >

Need Help converting XML-CSV(flatfile)

2012-08-07 Thread Matheen
hello, I just stared out with camel...i have done few basic examples Now i'm trying to convert XML data to CSV. Thanks in advance. -- View this message in context: http://camel.465427.n5.nabble.com/Need-Help-converting-XML-CSV-flatfile-tp5716908.html Sent from the Camel - Users mailing li