spring boot shutdown strategy

2016-07-19 Thread Minh Tran
Hi In a spring DSL, I used to be able to set a shutdown timeout by creating a ShutdownStrategy bean and setting the appropriate properties and it would work. Now when I attempt the same thing in Spring Boot, the bean seems to be ignored. Any suggestions on the proper way of setting the shutdown

Re: Convert message into two converters and dilliver them to one destination

2016-07-19 Thread Quinn Stevenson
I don’t think multicast will do what you’re after - it sends the same message to multiple endpoints. I think you could accomplish what you’re after using three routes: > On Jul 19, 2016, at 7:21 AM, redpower1989 wrote: > > Maybe i could make it mo

Re: Convert message into two converters and dilliver them to one destination

2016-07-19 Thread redpower1989
Maybe i could make it more clear. Can i use multicast with too converters ? Something like that I am trying that but i get the message to be converted only to typeB. Is there any possible way to copy the message convert it to A and B and sen

Camel-olingo2 and CSRF Token

2016-07-19 Thread Marcus Messer
Hello everyone, I implemented a spring boot based odata service, this service adds an CSRF Token as header value in the response message. This works as expected. But i could not find a solution to retrieve that token, when accessing the service with the camel-olingo2 api. For example: from("dire

Re: message to remote topic

2016-07-19 Thread Minh Tran
Hi I’ve never used the network: prefix before but you’ll definitely need the rest of what you’re passing into brokerURL You definitely need the bean declaration if you want to connect to a remote host. If you want to connect to both a local and a remote activemq host, just declare 2 beans and

Re: Camel HTTP response body is empty though the exchange body has the payload

2016-07-19 Thread Claus Ibsen
The aggregator is running in another "leg" than your message. So the output of the aggregator runs separated from the messages that routes into the aggregator. On Mon, Jul 18, 2016 at 9:23 PM, karthik Subramanian wrote: > rest("/getOptChoice"). > get("/v1") > .consumes("applica

Re: Camel+ActiveMQ redelivery blocking story

2016-07-19 Thread Claus Ibsen
See the asyncConsumer option on the jms component. Also check AMQ it has some options for async redelivery you need to turn on. On Fri, Jul 15, 2016 at 5:34 PM, afilippov wrote: > Hi, > I have a test route starting from queue with fault thrown and redelivery > set. Could somebody explain me a str

Re: Overriding default properties in camel http4 component via blueprint

2016-07-19 Thread Claus Ibsen
Some components allow to configure component level options, which you do the style. Which is standard blueprint / spring xml style. Then the Camel routes that use http4 (the id of the bean) is using that component. You can give the id any name you like instead of http4. On Mon, Jul 18,

Convert message into two converters and dilliver them to one destination

2016-07-19 Thread redpower1989
Hello, At the momemt my camel route is doing this thing: 1) incoming message. 2) unmarshal it 3) if type of A use converterA else type of B use converterB 4) marshal it 5) to destination. I was wondering if and how can i do. 1)incoming message 2) unmarshal it 3) if type of A converterA and

Re: Camel+ActiveMQ redelivery blocking story

2016-07-19 Thread afilippov
Hi Colleagues - still could not find solution. Is it possible to create unblocking redelivery queue at all? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-ActiveMQ-redelivery-blocking-story-tp5785163p5785215.html Sent from the Camel - Users mailing list archive at Nabb

Camel HTTP response body is empty though the exchange body has the payload

2016-07-19 Thread karthik Subramanian
rest("/getOptChoice"). get("/v1") .consumes("application/json") .to("direct:hello") .produces("application/json"); from("direct:hello") .split(header("emails")) .to("seda:consumeGuestChoice") .aggregate(constant(true),new OptAggregator())

Re: Camel HTTP response body is empty though the exchange body has the payload

2016-07-19 Thread karthik Subramanian
I did try setting the body in the out component of the exchange. But still the HTTP response is empty. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-HTTP-response-body-is-empty-though-the-exchange-body-has-the-payload-tp5785217p5785221.html Sent from the Camel - Users

Unmarshal fixed lenght Binary data format using Bindy

2016-07-19 Thread kaustubhkane
Hi, I have a fixed length Binary data in Bit pack format. Can I use the Bindy DataFormat to unmarshal the binary data? I looked at the details of the Bindy DataFormat. It provides the ability where using the Annotations the user can map the data model to POJO. This way user has to only define

RestContext

2016-07-19 Thread miri eyni
while i define the route under restContext and body request contain empty string ,when i take the body from the exchange , i got the body only with the name but value is null for example : { "id": 836, "gender":"", "smoker":0, "dateOfBirth":"1980-01-01", "occupation":2 } i g

Time taken to read messages from queue

2016-07-19 Thread fxthomas
Hello, I want to know if there is a simple way in camel to measure the time taken by route to read all messages present in the queue. Example My queue get populated on some time intervals , so i want to know how time it took just for the JMS component to read from the queue and not the full time