Re: Using metrics publisher with camel-hysterix

2016-10-29 Thread Debraj Manna
I will give it a try. On Sat, Oct 29, 2016 at 1:42 PM, Claus Ibsen <claus.ib...@gmail.com> wrote: > Hi > > I suggest you try this and let us known > > On Fri, Oct 28, 2016 at 8:19 PM, Debraj Manna <subharaj.ma...@gmail.com> > wrote: > > Can someone let me k

Using metrics publisher with camel-hysterix

2016-10-28 Thread Debraj Manna
Can someone let me know if it is possible to use metrics-publisher with camel-hysterix ? My intention is to publish metrics to Graphite. I am using camel

Camel guaranteed delivery using redis

2016-10-20 Thread Debraj Manna
Can someone let me know how to do guaranteed delivery using camel-redis? My use case is something like below:- from("jetty:http://localhost:/hello;).to("redis://...") Once the message is written to redis send a success response to http client, so that the client is not blocked waiting for

Re: Camel - Making parallel GET requests and aggregating the results via Dynamic Routes using Java DSL

2016-10-18 Thread Debraj Manna
as well. > > Just to clarify, JsonPathExpression comes from > org.apache.camel.model.language.JsonPathExpression class (You'll have to > import it in your route builder). > > Thanks, > Avnish Pundir > > > On 18-10-2016 16:23, Debraj Manna wrote: > >> I am receiving a request o

Camel - Making parallel GET requests and aggregating the results via Dynamic Routes using Java DSL

2016-10-18 Thread Debraj Manna
I am receiving a request on a Jetty Http Endpoint. The request body contains some urls in the request body. I have to make a GET request to those urls. Then aggregate the results from each of the GET request and return it to the caller. Request Body:- { "data" : [ {"name" : "Hello",

Content Based Routing based on JSON Request Body

2016-10-17 Thread Debraj Manna
Hi I have a camel REST endpoint which receives a request of the form:- {"method" : "getHello"} Based on the value in the method field in the request body I want to route the request to different routes. So I tried something like this below:-

Route Start order in Camel

2016-10-13 Thread Debraj Manna
Hi I have gone through this documentation "Configuring starting order for Routes ". Can some one please explain my following doubts:-

Re: Limit Concurrent Access

2016-10-01 Thread Debraj Manna
incoming data large chunks > of data that are gobbling up memory or is the processing expensive or ???. > > On Sat, Oct 1, 2016 at 9:43 AM, Debraj Manna <subharaj.ma...@gmail.com> > wrote: > >> Hi >> >> I have seen Throttler <http://camel.apache.org/throttler.html

Limit Concurrent Access

2016-10-01 Thread Debraj Manna
Hi I have seen Throttler in camel. Is there anything available in camel that restricts the number of concurrent accesses something like this as mentioned here

Overriding default properties in camel http4 component via blueprint

2016-07-18 Thread Debraj Manna
I want to change maxTotalConnections and connectionsPerRoute in camel http4 component via blueprint. Can some one please let me know is it possible to do this or I have to send this as URI option? I am on camel 2.16.3

Re: Exchange.HTTP_QUERY and Exchange.HTTP_RAW_QUERY

2016-07-08 Thread Debraj Manna
gt; java.net.URI's getQuery() and getRawQuery(): > https://docs.oracle.com/javase/8/docs/api/java/net/URI.html > > If you have a query like 'x=%26%26%26', Exchange.HTTP_QUERY should return > 'x=&&&', whereas Exchange.HTTP_RAW_QUERY should return 'x=%26%26%26'. > > On Fri, Jul 8

Exchange.HTTP_QUERY and Exchange.HTTP_RAW_QUERY

2016-07-08 Thread Debraj Manna
Hi Can someone please explain me the difference between Exchange.HTTP_QUERY and Exchange.HTTP_RAW_QUERY? I am not able to find the difference in the http doc .

Re: Error occurred during starting Camel because of cannot look up a processor from registry

2016-07-08 Thread Debraj Manna
; On Fri, Jul 8, 2016 at 12:24 PM, Tadayoshi Sato <sato.tadayo...@gmail.com> wrote: > Hmm, this just works for me. Note "productHelper" also has the cyclic > dependency. > > On Wed, Jul 6, 2016 at 5:56 PM, Debraj Manna <subharaj.ma...@gmail.com> > wrote: > &

Re: Error occurred during starting Camel because of cannot look up a processor from registry

2016-07-06 Thread Debraj Manna
ayo...@gmail.com> wrote: > No, in the same camelContext.xml file but outside of . > Doesn't that work for you? > > On Wed, Jul 6, 2016 at 5:34 PM, Debraj Manna <subharaj.ma...@gmail.com> > wrote: > > > Are you saying to define jsonRPCProcessor inside camelContext. Som

Re: Error occurred during starting Camel because of cannot look up a processor from registry

2016-07-06 Thread Debraj Manna
ext.xml instead of > blueprint.xml? If this processor depends on a specific producer template > ("myTemplate") == Camel context, then I see no reasons this producer can be > shared across multiple Camel contexts. > > On Tue, Jul 5, 2016 at 8:01 PM, Debraj Man

Re: Error occurred during starting Camel because of cannot look up a processor from registry

2016-07-05 Thread Debraj Manna
ers to 'myTemplate'. That should be the cyclic dependency in question. > > Hope this helps, > > Tadayoshi > > On Mon, Jul 4, 2016 at 10:27 PM, Debraj Manna <subharaj.ma...@gmail.com> > wrote: > > > It seems the error is getting triggered because of some cyclic > depe

Re: Error occurred during starting Camel because of cannot look up a processor from registry

2016-07-04 Thread Debraj Manna
It seems the error is getting triggered because of some cyclic dependency. But I am not able to figure out from the trace what is causing the cyclic dependency. On Jul 4, 2016 4:22 PM, "Debraj Manna" <subharaj.ma...@gmail.com> wrote: > On placing a bundle (using camel) o

Error occurred during starting Camel because of cannot look up a processor from registry

2016-07-04 Thread Debraj Manna
) and camel 2.16.3 (deployed on servicemix 7.0.0M2). My blueprint is split into three files. A simplified version of them are shown below:- 1. blueprint.xml placed here <https://gist.github.com/debraj-manna/42294561b9da22ce2281e6a9f3b22a34>. 2. productBeans.xml placed here

Re: Default ThreadPool Role in camel 2.16.1

2016-07-03 Thread Debraj Manna
n a component that is of ExecutorService type. And also for all > the EIPs that has thread pools. > > > You can find some details at > http://camel.apache.org/threading-model.html > > And I suggest if you want deeper knowledge then pickup a copy of the > Camel in Action book. > &

Default ThreadPool Role in camel 2.16.1

2016-07-03 Thread Debraj Manna
Can some please explain me how does threadPool works in camel? Let's say I have a default threadPool defined in camelContext:- Also let's say I have some routes defined as below:- from("jetty:http://localhost:/orchestratorservice;).process(processor);

Re: Moving Objects from one bucket to another in Amazon S3

2016-06-29 Thread Debraj Manna
e a JIRA for a new feature. > -- > Andrea Cosentino > -- > Apache Camel PMC Member > Apache Karaf Committer > Apache Servicemix Committer > Email: ancosen1...@yahoo.com > Twitter: @oscerd2 > Github: oscerd > > > > On Wednesday, June 29

Moving Objects from one bucket to another in Amazon S3

2016-06-29 Thread Debraj Manna
Hi Can some one please let me know how can I move objects from one S3 bucket to another via aws-s3. I could not find the relevant thing in the documentation . Basically I want to do what copyObject

Optimizing file Upload to S3 using camel-s3

2016-06-20 Thread Debraj Manna
We are using camel-s3 to upload files to Amazon S3. We are using AmazonS3Client with the default configuration like below:- AWSCredentials awsCredentials = new BasicAWSCredentials("S3AccessKey","S3SecretKey"; ClientConfiguration clientConfiguration = new ClientConfiguration(); AmazonS3Client

Re: Throttle Camel Requests based on query param

2016-06-20 Thread Debraj Manna
Thanks Owain. The below code worked for me:- Predicate isDebug = header("debug").isEqualTo("true"); from("jetty:http://localhost:/orchestratorservice;) .choice() .when(isDebug).throttle(5).timePeriodMillis(1000).rejectExecution(true ).process(processor) .endChoice() .otherwise()

Re: Throttle Camel Requests based on query param

2016-06-18 Thread Debraj Manna
Thanks Yogu & Taariq for replying. I have gone through the Dynamically Changing Maximum Request per Period section in throttler documentation. What I am looking for is let's say if a debugFlag header

Throttle Camel Requests based on query param

2016-06-16 Thread Debraj Manna
Hi, I have a camel route like below:- from("jetty:http://localhost:/orchestratorservice;).process(processor); from("direct:setStatusToReadyToShip").to( "bean:orderHelper?method=setStatusToReadyToShip") I have gone through the throttle pattern. But

Re: Sending Query Parameters under Exchange.HTTP_QUERY & in URI for HTTP4 component

2016-04-18 Thread Debraj Manna
I asked this in stack overflow as well. But no response there as well. http://stackoverflow.com/q/36649702/785523 On Sun, Apr 17, 2016 at 6:23 PM, Debraj Manna <subharaj.ma...@gmail.com> wrote: > Hi , > > Can some one please point me to some doc where this is explained? I have &

Re: Sending Query Parameters under Exchange.HTTP_QUERY & in URI for HTTP4 component

2016-04-17 Thread Debraj Manna
Hi , Can some one please point me to some doc where this is explained? I have seen the http4 <http://camel.apache.org/http4.html#HTTP4-MessageHeaders> doc but this does not explain much. Thanks, On Sat, Apr 16, 2016 at 10:55 PM, Debraj Manna <subharaj.ma...@gmail.com> wrote: > H

Sending Query Parameters under Exchange.HTTP_QUERY & in URI for HTTP4 component

2016-04-16 Thread Debraj Manna
Hi, Can some one explain to me if there is any difference if the query parameters are passed under the header Exchange.HTTP_QUERY against passing it directly in the http4 url? Thanks, Debraj

Re: Camel HTTP4 Component and Curl Post Request behaving differently

2016-04-14 Thread Debraj Manna
me know is it always recommended to send query parameters under Exchange.HTTP_QUERY? I am asking this because sending the query parameters with the main url is not failing always. On Thu, Apr 14, 2016 at 2:08 PM, Debraj Manna <subharaj.ma...@gmail.com> wrote: > Hi, > > I am facing a w

Camel HTTP4 Component and Curl Post Request behaving differently

2016-04-14 Thread Debraj Manna
Hi, I am facing a weird problem with Camel Http 4 component. Let me try to explain. I am making a post request (added the header Exchange.HTTP_METHOD: HttpMethods.POST) via camel http 4 component. It is returning me { "ErrorResponse": { "Head": { "RequestAction":

Re: Http Request Url, Body & Header

2016-04-10 Thread Debraj Manna
Boot in your `application.properties`: > > logging.level.org.apache.http=DEBUG > > > Am 09.04.2016 um 11:39 schrieb Debraj Manna: > >> Yeah that is what I am looking for. But I did not find anything in the >> Camel Http Component doc. >> >> http://people.apache.org/~dkul

Re: Http Request Url, Body & Header

2016-04-09 Thread Debraj Manna
have some > logging you can see if you turn on DEBUG logging or something on it. > > For Camel you can only see Camel specific logging. > > On Sat, Apr 9, 2016 at 8:05 AM, Debraj Manna <subharaj.ma...@gmail.com> > wrote: > > Hi, > > > > Is there a way I can

Http Request Url, Body & Header

2016-04-09 Thread Debraj Manna
Hi, Is there a way I can see or log the http request url, body & header sent by the camel http4 component? I want to view the final http request url, body & header that was sent from the camel.

Http Connection Pooling in Camel

2016-03-10 Thread Debraj Manna
Hi, I am using Camel as an Orchestration Engine. clients sends HTTP request <-> CAMEL code < HTTP Req- > external server(s) I am using HTTP4 Component (with default settings) for making HTTP Requests to external server. I have quite a few http backends. Right now the way we are making

Doing camel-test with a bean in the route

2016-03-03 Thread Debraj Manna
Hi, This is my first post in the camel user group. Some how my first post did not go through the mailing list. I hope some one can point to me the right direction. I am trying to write a test for a camel app which looks something like below:- public class OrderMainApp { public static void