Restlet with oauth

2015-11-24 Thread Michele
Hi everyone, is it possible to use Restlet under oauth in a Route Camel Context? This is my logic flow: 1. Retrieve message from ActiveMQ 2. Login based on Oauth2 on RestService 3. Send request with token retrieved on step 2 and process Response 4. Logout How to translate this flow in xml camel

Re: Am I using headers right?

2015-11-24 Thread Matt Sicker
I filter out what headers to send when making REST calls through http4 for instance, so that's not an issue. When I make internal calls to networked services (e.g., Kafka, Hazelcast, or pretty much anything other than the message brokering components), I lose all my headers until the response messa

Re: Am I using headers right?

2015-11-24 Thread ychawla
That sounds sensible to me. The headers are for message and exchange metadata. Just be careful to not send them over the wire when you call an external component. -- View this message in context: http://camel.465427.n5.nabble.com/Am-I-using-headers-right-tp5774363p5774365.html Sent from the C

Soap Body is Empty or Partial XML

2015-11-24 Thread ychawla
Hello All, I am using Camel 2.14.4 and deploy to Apache Karaf 3.0.5 with Java 8. I have a web service that I am exposing over HTTP and it worked fine in Camel 2.10.7. When I hit the service now, it returns a WoodStox error when trying to convertBodyTo a String or Document: Caused by: com.ctc.wst

Am I using headers right?

2015-11-24 Thread Matt Sicker
In my application, I use headers (and occasionally properties) to include metadata about a message that generally needs to be available in multiple endpoints. I use JMS in areas which copies all headers (but not properties), so I use headers for this purpose. I'm looking at possibly switching my mi

Re: Create one route for multiple SQLComponent

2015-11-24 Thread alexis.jacquemart
Thank you, I will try this ;) -- View this message in context: http://camel.465427.n5.nabble.com/Re-Create-one-route-for-multiple-SQLComponent-tp5774346p5774352.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How can I write log while using retryWhile kept retrying

2015-11-24 Thread zkjiang
I used attribute, this works for me. -- View this message in context: http://camel.465427.n5.nabble.com/How-can-I-write-log-while-using-retryWhile-kept-retrying-tp5774350p5774351.html Sent from the Camel - Users mailing list archive at Nabble.com.

How can I write log while using retryWhile kept retrying

2015-11-24 Thread zkjiang
When using ... .. it seems kept retrying without log output. -- View this message in context: http://camel.465427.n5.nabble.com/How-can-I-write-log-while-using-retryWhile-kept-retrying-tp5774350.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel iMap - ignore SSL certificat

2015-11-24 Thread zied123456
i'm using imap endpoint and i try to ignore SSL certificat by using: the First class *DummySSLSocketFactory* : public class DummySSLSocketFactory extends SSLSocketFactory { private SSLSocketFactory factory; public DummySSLSocketFactory() { try { SSLContext sslcontext

Re: Settings for threads per endpoint

2015-11-24 Thread tomaswahlgren
That actually seems to get me to the same place. I can control Max number of threads up to 64 per Producer, but never above that. Have even tried implenting my own thread pool, but same result. The setting works, I can see that, but only up to 64. Btw, multiple producers give me 64 * Any other c

Re: Create one route for multiple SQLComponent

2015-11-24 Thread Claus Ibsen
You can use direct component and link them from sql foo to direct blah from sql bar to direct blah from direct blah to es On Tue, Nov 24, 2015 at 11:22 AM, alexis.jacquemart wrote: > Hi ! > > How can I create a single route for multiple components ? > > For example, I have two SQL datab

Create one route for multiple SQLComponent

2015-11-24 Thread alexis.jacquemart
Hi ! How can I create a single route for multiple components ? For example, I have two SQL database and make them take the same route : from(sql://...) .to(elasticsearch://...) Thanks ! -- View this message in context: http://camel.465427.n5.nabble.com/Create-one-route-for-multiple-SQLComp

Re: ftp multiple streams in body?

2015-11-24 Thread rwijngaa
Hi Claus, i implemented a splitter (see below) but i'm not sure if this is the way to go; i think this can be implemented more elegantly/simpler (but i don't know how ;-). A unzipped file *does* come out, but where do i set the current filename (if there are more than one) ? -- View this mes

Re: Settings for threads per endpoint

2015-11-24 Thread Claus Ibsen
You likely need to configure the jetty server thread pool. That is the thread pool that matters the most as it has the worker threads that Camel uses when routing from jetty -> to jetty On Tue, Nov 24, 2015 at 9:37 AM, tomaswahlgren wrote: > Thanks for the prompt reply Claus, appriciate it! > > I

Re: Settings for threads per endpoint

2015-11-24 Thread tomaswahlgren
Thanks for the prompt reply Claus, appriciate it! I tried setting the httpClientMaxThreads and httpClientMinThreads on the "to" component, but couldn't get it to work, still stuck at 64 threads. I Removed the "threads" setting in the route. What am not doing right? /jetty:http://localhost:6080/sa

Re: Dynamic URI Netty producer

2015-11-24 Thread Claus Ibsen
That is not possible with the camel-netty. The hostname and port must be part of the uri as the endpoint is for connecting to that given host. If you need to connect to another host:port then that requires another endpoint. On Tue, Nov 24, 2015 at 8:58 AM, tko429 wrote: > Nice to meet you , every

Dynamic URI Netty producer

2015-11-24 Thread tko429
Nice to meet you , everyone. from Japan I want to construct dynamic URI in Netty producer. According to this forum, when I have to use dynamic URI, everyone say that I should use "Recipient List ". I got it. But, I have used the "header option" in the past instead of "Recipient List" in HTTP p