Camel + Spring Remoting + HTTP example

2015-11-02 Thread Hryhorii Honchar
Hi guys, Can anyone share a working example of client invoking Spring Bean remotely via HTTP? I’ve found no such example here https://github.com/apache/camel/tree/master/examples/ and here http://camel.apache.org/spring-remoting.html If remote bean is running in Servlet Container, do I need t

ActiveMQ with replyto and replyTotype=Shared is not functioning for multiple queues call

2015-11-02 Thread sathiyaraja
Greetings All., I'm stuck with issue with active mq while calling multiple replyTo type queues. My request is flowing after Queue2. But if im not defining mq its failing with Timeouts sometime. Help on this is much appreciated. My Implementation: My ActiveMQ bean defin

Re: How to access payload from REST 404 reply in cxfrs?

2015-11-02 Thread Steve Huston
Thanks again, Sergey. I was able to register the provider using: However, it looks like there is no content available via the exception. Using the code: InvocationTargetException exception = exchange.getProperty(Exchange.EXCEPTION_CAUGHT, InvocationTargetException.class); NotF

Re: How to access payload from REST 404 reply in cxfrs?

2015-11-02 Thread Steve Huston
Thanks again, Sergey. I was able to register the provider using: However, it looks like there is no content available via the exception. Using the code: InvocationTargetException exception = exchange.getProperty(Exchange.EXCEPTION_CAUGHT, InvocationTargetException.class); N

Re: propertyplaceholder in xml

2015-11-02 Thread Minh Tran
Cool I’ve logged the jira. Thanks for the quick reply. https://issues.apache.org/jira/browse/CAMEL-9284 > On 2 Nov 2015, at 9:39 pm, Claus Ibsen wrote: > > Hi > > Ah nice catch sounds like a little bug. You are welcome to log a JIRA ticket >

Re: How to access payload from REST 404 reply in cxfrs?

2015-11-02 Thread Sergey Beryozkin
As I said you will need to register a JAXRS provider capable of converting it, though I'm not sure right now what the syntax is with cxfrs:bean:webService, looks like from http://camel.apache.org/cxf-bean-component.html it is something like cxfrs:bean:webService?providers=#jackson Cheers, Ser

Re: How to access payload from REST 404 reply in cxfrs?

2015-11-02 Thread Steve Huston
Thank you very much for your quick help, Sergey! I tried your solution and now get the following exception: [Camel (rraaCamelContext) thread #2 - seda://from_rraa] ERROR org.apache.cxf.jaxrs.utils.JAXRSUtils - No message body reader has been found for class my.class.path.CrewServiceDeniedError,

Re: How to access payload from REST 404 reply in cxfrs?

2015-11-02 Thread Sergey Beryozkin
Hi If you can access NotFoundException then what you can do next is to do ErrorInfo errorInfo = exception.getResponse().readEntity(ErrorInfo.class) where ErrorInfo is a custom class capturing a JSON error response, you'd also need to register Jackson or other provider to get it converted. Or r

How to access payload from REST 404 reply in cxfrs?

2015-11-02 Thread Steve Huston
I put this up on stackoverflow... if you have cxfrs expertise, could you please read this? How to access payload from REST 404 response in Camel cxfrs? http://stackoverflow.com/q/33445686/240342?sem=2 Thanks, -Steve

Re: correct way to provide regex in TokenizerExpression?

2015-11-02 Thread furchess123
Hi Claus, thank you for responding. The problem we are seeing currently is that, if we provide a regex to the tokenizer to detect token delimiters, the tokenizer inserts that expression literal into the payload itself - while replacing the actual delimiters matched by the regex. I think you will ag

RE: Characters getting escaped when read from properties file

2015-11-02 Thread Hans Orbaan
Hi, Use: RAW(yourPassword) See: http://camel.apache.org/configuring-camel.html With kind regards -Oorspronkelijk bericht- Van: Gustav Sinder [mailto:gustav.sin...@ferrologic.se] Verzonden: Monday 2 November 2015 14:46 Aan: users@camel.apache.org Onderwerp: Characters getting escaped w

Re: Transactional Route with JTA

2015-11-02 Thread Preben.Asmussen
Hi Christian We stayed on Oracle AQ jms since that's basically also a database :-) It has worked for us for our current setup doing max 1M messages pr. day, but it's far from ideal if you need greater throughput, and there isn't any failover. Actually I was at a GoTo talk where the speaker had s

Characters getting escaped when read from properties file

2015-11-02 Thread Gustav Sinder
Hi, I've got a password in a properties file configured as (simplified): password=H+r/GbP8 The properties file is refered to in the blueprint as: The property is used for a bean with: The password is read from the file but as "H+r%2FGbP8" (encoded) How could I get the literal value from the

Re: Stop a route after execution and restart it later

2015-11-02 Thread Nicolas74
Hi Claus, Yep, I'm using the control bus as follows: http://camel.apache.org/schema/spring"; > ... process the CSV to get information in order to use my own PACS component -- View th

Re: Stop a route after execution and restart it later

2015-11-02 Thread Claus Ibsen
Have you looked at controlbus http://camel.apache.org/controlbus And there is also this FAQ http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html On Sun, Nov 1, 2015 at 7:25 PM, Nicolas74 wrote: > Hello Camel guys > > /Camel version 2.15.2/ > > I created a Camel component to be able t

Re: propertyplaceholder in xml

2015-11-02 Thread Claus Ibsen
Hi Ah nice catch sounds like a little bug. You are welcome to log a JIRA ticket http://camel.apache.org/support.html On Mon, Nov 2, 2015 at 6:34 AM, Minh Tran wrote: > Hi > > After upgrading to Camel 2.16.0, I’m starting to get warning messages appear > in my logs whenever a route is using a pr