Re: Camel Restlet

2015-06-08 Thread contactreji
Hi Ravindra In my code its like follows for the restlet consumer endpoint. http://0.0.0.0:8181/cars/{id}?httpMethods=get,post"/> Am sorry but in my first post, I accidentally kept it /100. I understand that the values in path parameters will get mapped as headers. I was interested more in quer

Re: deleting jms queue

2015-06-08 Thread Claus Ibsen
Yes then you should use regular queues. On Tue, Jun 9, 2015 at 8:47 AM, Tim Dudgeon wrote: > Well, maybe I'm wrong to call it a temp queue. This is not an InOut pattern. > Its InOnly followed (potentially much later) by a response to a "private" > queue (specified by JmsReplyTo header) that is I

Re: deleting jms queue

2015-06-08 Thread Tim Dudgeon
Well, maybe I'm wrong to call it a temp queue. This is not an InOut pattern. Its InOnly followed (potentially much later) by a response to a "private" queue (specified by JmsReplyTo header) that is InOnly and handled by a different route/consumer. Once processing is complete I need the queue to

Re: HeaderFilterStrategy example

2015-06-08 Thread Claus Ibsen
Hi You can use an interceptFrom http://camel.apache.org/intercept On Mon, Jun 8, 2015 at 12:09 PM, fliot33 wrote: > Hi, > > I globbaly would like to do this : > > > > > headerName="SecretInformation">${body} > > headerName="CamelHttpMethod">GET > headerName="Accept">text/

Re: deleting jms queue

2015-06-08 Thread Claus Ibsen
Hi Afair temp queues are affilianted with the jms session and automatic deleted by the broker when the session is closed - eg AMQ should do this. On Mon, Jun 8, 2015 at 5:31 PM, Tim Dudgeon wrote: > I'm using a temp JMS queue to return some results. > Once I've finished processing I want to de

Re: Camel Restlet

2015-06-08 Thread Gnanaguru S
By the way, you can give it a try with Rest DSL as well ! Cheers Guru @tallguru -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Restlet-tp5767988p5767996.html Sent from the Camel - Users mailing list archive at Nabble.com.

Manage CorrelationID using JMS endpoint options

2015-06-08 Thread Gnanaguru S
Hi All, I have a camel route, which takes messages from a jms queue and further sends it down to a splitter. Further the responses are aggregated and sent back to a response queue. (of course response queue is controller by the client in this scenario ) In this scenario I had to manually handle

Re: query file to s3

2015-06-08 Thread Andrew Block
Hello, You can use the File Expression Language [1] to obtain the name of the file and set the appropriate S3 header For example, if you wanted just the name of the file, you can do the following from("file:///home/ram/sample/")  .setHeader(S3Constants.KEY, simple(“file:onlyname.noext"))  .to("

query file to s3

2015-06-08 Thread ram kumar
Hi, This will write the file present in directory sample to checkoutputdir1 from("file:///home/ram/sample/") .to("file:///home/ram/checkoutputdir1/"); My use case is to push to s3 from("file:///home/ram/sample/") .setHeader(S3Constants.KEY, simple("check5")) .to("aws-s3://camel-qq?accessKey=&secr

Re: https4 2.15.2 not recognizing my httpClientConfigurer endpoint option

2015-06-08 Thread Ravindra Godbole
It looks like you are not setting the httpClientBuilder argument with your ssl configuration. Can you have a relook at the method configureHttpClient you have overridden ? -- View this message in context: http://camel.465427.n5.nabble.com/https4-2-15-2-not-recognizing-my-httpClientConfigurer-en

Re: Camel Restlet

2015-06-08 Thread Ravindra Godbole
Hi You will have to parse the query string yourself. In order to get the values in header and use the api to get the same, you will have to set the endpoint uri correctly. For example http://0.0.0.0:8181/cars/100/{color}/{year}?httpMethods=get,post"/> If your request is like this ... http://0

Re: https4 2.15.2 not recognizing my httpClientConfigurer endpoint option

2015-06-08 Thread jspyeatt
This still isn't working. It is as though it isn't recognizing my registry during runtime. In my unit test I've overrided createRegistry() because I'm not using spring as your example solution does. @Override protected JndiRegistry createRegistry() throws Exception { JndiRegistry

Camel Restlet

2015-06-08 Thread contactreji
Hi I am trying to do a POC using camel-restlet component. I was wondering if I use something like follows http://0.0.0.0:8181/cars/100?httpMethods=get,post"/> Suppose I hit the endpoint with *http://localhost:8181/cars/100?color=red&model=2015* with a http GET method, how do I access

is there a way to change the default properties of a camel component?

2015-06-08 Thread Zoltan Farkas
For example I have the Cxf bean component: http://camel.apache.org/cxf-bean-component.html I want to be able to have bus=#myBus to all cxfBean endpoints in my app without the need to add ‘’?bus=#myBus” to each. let me know thank you —Z

deleting jms queue

2015-06-08 Thread Tim Dudgeon
I'm using a temp JMS queue to return some results. Once I've finished processing I want to delete the queue. What's the best approach? I'm assuming its best to manually generate the temp queue at the start and then manually delete it when finished. I notice I could use JmsTemporaryQueueEndpoint

Re: Enrich, Message transformation before endpoint call

2015-06-08 Thread MC
Thanks Claus. -- View this message in context: http://camel.465427.n5.nabble.com/Enrich-Message-transformation-before-endpoint-call-tp5767879p5767977.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Query on camel s3

2015-06-08 Thread Palmer, Eric
This works for me (using the spring syntax) ${file:name} ${file:length} You have to give it the file name You can also put it into a subfolder (key) somekeyvalue/${file:name} Hope this

Query on camel s3

2015-06-08 Thread ram kumar
Hi, I have a producer which points to a directory I want to consume to s3, inside a particular directory Can anyone help me with that .from(file:directoryName) .setHeader(S3Constants.KEY, simple("check1")) .to("aws-s3://camel?accessKey=&secretKey=®ion=&"); Thanks

RE: JMS MQ performance improvement

2015-06-08 Thread contactreji
Cool.. Can you try using pooled jms connections? It may be possible that due to initialization of new connection each time for each message, internally thread size may be limited to have optimized thread context switching. Following few code snipped might help you. We have used this in our projec

HeaderFilterStrategy example

2015-06-08 Thread fliot33
Hi, I globbaly would like to do this : ${body} GET text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 fr,en-US;q=0.8,en;q=0.6,es;q=0.4 http://some-nice-remote-api/proc?HeaderFilterStrategy=z.mystrategy.myclass"/> ${header.SecretInform

Re: programatic access to jms queue

2015-06-08 Thread Claus Ibsen
Hi This is correct. The consumer will keep running until you call stop. Mind the start method is not blocking. On Mon, Jun 8, 2015 at 11:24 AM, Tim Dudgeon wrote: > I'm wanting to programatically access a JMS queue on a dynamic basis, but > use the Camel infrastructure to do this. > I've tried s

RE: JMS MQ performance improvement

2015-06-08 Thread Vanshul . Chawla
When I increase to 100, it goes up to 80 max and then again comes down slowly to same range of 25-33. Its non transacted only. If u see now: 599 0.12%50 9 0 0 E E - PERF.CAMEL.TCOM.FINANCIALFEED.OMS.PUB.1 702 0.14%

Re: Netty component and acknowledgement message

2015-06-08 Thread Claus Ibsen
Hi See this FAQ http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html On Mon, Jun 8, 2015 at 11:19 AM, s.marjanovic wrote: > Hello Claus, > > Thanks for the suggestion, setting the exchange pattern to InOut helped with > the timeout issue. Great tip allaround, wasn't aware of th

programatic access to jms queue

2015-06-08 Thread Tim Dudgeon
I'm wanting to programatically access a JMS queue on a dynamic basis, but use the Camel infrastructure to do this. I've tried something like this: JmsEndpoint jms = getCamelContext().getEndpoint("activemq:queue:myqueue", JmsEndpoint.class); JmsConsumer consumer = jms.createConsumer((Exchange e

Re: JMS MQ performance improvement

2015-06-08 Thread contactreji
Interesting! 1) Can you observe how many threads initiate when your camel routes are not transacted? 2) And what if you further increase the value for maxConcurrentConsumers. Say about 100? Is the count still around 25-33 range itself? can you post your camel routes here. Cheers Reji -

Re: Netty component and acknowledgement message

2015-06-08 Thread s.marjanovic
Hello Claus, Thanks for the suggestion, setting the exchange pattern to InOut helped with the timeout issue. Great tip allaround, wasn't aware of the possibility to explicitly influence the MEP type of the exchange, thanks. Got another problem though, I'm putting the acknowledgement messages I me

JMS MQ performance improvement

2015-06-08 Thread Vanshul . Chawla
Hello All, We are using the mq jms settings like this: My concurrentConsumers is 40 and max is 60. But issue is it never reaches even 40 and messages are consumed