Re: REST API - Basic Authentication?

2020-02-03 Thread Jean-Baptiste Onofré
Hi, Not sure I follow (related to your previous message): are you using servlet registration or camel-jetty ? On camel-jetty, you can define a security handler. Using servlet, you can always register a filter. Regards JB On 03/02/2020 18:34, Gerald Kallas wrote: > Dear community, > > I've fol

Re: REST DSL in conjunction with VM component?

2020-02-03 Thread Jean-Baptiste Onofré
Hi Gerald, Maybe more direct-vm (sync, whereas VM is like SEDA, so async). Most of the time, I have the "exposing" REST API in one route that target a "impl" route using direct-vm (where I have my processor, etc). I split both in separate bundle. The good thing about that is that I can change the

REST DSL in conjunction with VM component?

2020-02-03 Thread Gerald Kallas - mailbox.org
Dear community, I wonder whether the VM component will be a good practice to define functional consumer endpoints for a REST definition in another Camel Context? Background .. I‘d like to decouple an API implementation from the API definition. Any hints are welcome. Sent by my mobile device -

Re: Rép. : REST API - Swagger file generation?

2020-02-03 Thread Gerald Kallas
Tx Daniel. Works like a charm :) Best - Gerald > Daniel Langevin hat am 3. Februar 2020 20:28 > geschrieben: > > > Yes you Can > > here my sample configuration in SPRING you can adapt it in blueprint. > > after that just call http://yourhostname:8181/rest/XXX/api-doc > > Hope it's help

Rép. : REST API - Swagger file generation?

2020-02-03 Thread Daniel Langevin
Yes you Can here my sample configuration in SPRING you can adapt it in blueprint. after that just call http://yourhostname:8181/rest/XXX/api-doc Hope it's help http://camel.apache.org/schema/spring"; trace="false">

Trouble closing CamelContext

2020-02-03 Thread Emiel Hermsen
Dear Camel Users, Because I’m having trouble closing a Camel Context correctly, I’m sending this mailing list an email. I’ve started by creating a StackOverflow question here: https://stackoverflow.com/questions/59862938/trouble-closing-camelcontext-in-cucumber-test To me, it looks like eith

REST API - Basic Authentication?

2020-02-03 Thread Gerald Kallas
Dear community, I've following REST API (see below). How can I add a Basic Authentication to the REST API in Blueprint DSL? Any hints are highly welcome. Best - Gerald Configuration XML .. http://www.osgi.org/xmlns/blueprint/v1.0.0";>

REST API - Swagger file generation?

2020-02-03 Thread Gerald Kallas
Dear community, I've following REST API (see below). Is it possible to call the endpoint with a special URI to retrieve the Swagger file from the Blueprint defintion? Best - Gerald Configuration XML .. http://www.osgi.org/xmlns/blueprint/v1.0.0";>

Re: SSL_ERROR_NO_CYPHER_OVERLAP with camel-jetty

2020-02-03 Thread Gerald Kallas
Finally I did get this running based on the Camel examples. Configuration XML .. http://www.osgi.org/xmlns/blueprint/v1.0.0";> .. and REST API .. http://www.osgi.org/xmlns/blueprint/v1.0.0";> ht

Re: SSL_ERROR_NO_CYPHER_OVERLAP with camel-jetty

2020-02-03 Thread Gerald Kallas
I tried the servlet way .. but also no success. Not sure if this (see below) is missing something .. http://www.osgi.org/xmlns/blueprint/v1.0.0";> http://camel.apache.org/schema/blueprint"; streamCache="true">

camel-jms: allowAutoWiredConnectionFactory does not work with Camel 3

2020-02-03 Thread Simo Kivimäki
Hi, I have a problem using camel-jms's allowAutoWiredConnectionFactory with Camel 3. The same configuration did work with Camel 2. Let's assume that allowAutoWiredConnectionFactory is true and a single ConnectionFactory is found from the registry (or Spring application context). I debugged Jms

Re: Salesforce queryAll example (Custom Processor)

2020-02-03 Thread Purnamchander Rao G
Hi Zoran, Please pardon my ignorance. I didn't receive any replies that you sent in my email. So, I was using "Reply to Author" link from Nabble. I am new to camel so I will wait for any direction from the forum. Thank you, PC Rao.

Re: SSL_ERROR_NO_CYPHER_OVERLAP with camel-jetty

2020-02-03 Thread Jean-Baptiste Onofré
Oh, sorry, the example was in spring, not blueprint. Let me check in the component how to inject the configuration. Regards JB On 03/02/2020 13:43, Gerald Kallas wrote: > Tx JB. > > So I tried this (see below) but getting > > Blueprint bundle isp.route.RST.xml/0.0.0 is waiting for namespace ha

Re: SSL_ERROR_NO_CYPHER_OVERLAP with camel-jetty

2020-02-03 Thread Gerald Kallas
Tx JB. So I tried this (see below) but getting Blueprint bundle isp.route.RST.xml/0.0.0 is waiting for namespace handlers [http://camel.apache.org/schema/spring] As Claus mentioned earlier one must not mix Blueprint with Spring. Without the Spring namespace the keyword "sslContextParameters" c

Re: Salesforce queryAll example (Custom Processor)

2020-02-03 Thread Zoran Regvart
Hi Purnamchander, please do not send e-mails directly to me, keep them on the mailing list, this way other people can also join in on the documentation. We do not appear to have a test with queryMore, you can try to figure out this on your own, if you do, please provide an example, add it to the c

Re: Salesforce queryAll example (Custom Processor)

2020-02-03 Thread Zoran Regvart
Hi Purnamchander, try searching the Salesforce component test code, zoran On Mon, Feb 3, 2020 at 12:49 PM wrote: > > Hi Zoran, > Thanks for the reply. > I have made a mistake in my original query. > I meant queryMore example. > > I am sorry for the repeat. > Regards, > PC Rao. > > Hi Purnamchan

Re: SSL_ERROR_NO_CYPHER_OVERLAP with camel-jetty

2020-02-03 Thread Jean-Baptiste Onofré
You have a example here: https://access.redhat.com/documentation/en-us/red_hat_jboss_fuse/6.2/html/security_guide/cameljetty On 03/02/2020 11:52, Gerald Kallas wrote: > I tried this setting > > org.ops4j.pax.web.ssl.protocols.included = TLSv1.2 > > in > > org.ops4j.pax.web.cfg. > > But this do

Re: SSL_ERROR_NO_CYPHER_OVERLAP with camel-jetty

2020-02-03 Thread Jean-Baptiste Onofré
Hi, By default, camel-jetty create a new connector: it doesn't use the one provided by pax-web. If you want to "plug" into the pax-web jetty connector, you have to use camel-servlet. camel-jetty fully creates a new jetty connector, so the TLS configuration has to be set on camel-jetty. Regards J

Re: SSL_ERROR_NO_CYPHER_OVERLAP with camel-jetty

2020-02-03 Thread Gerald Kallas
I tried this setting org.ops4j.pax.web.ssl.protocols.included = TLSv1.2 in org.ops4j.pax.web.cfg. But this doesn't have any effect. Still the same, I'm getting in the log 2020-02-03T02:00:35,872 | INFO | Blueprint Event Dispatcher: 1 | JettyHttpComponent9 | 105 - org.apache.cam

Re: SSL_ERROR_NO_CYPHER_OVERLAP with camel-jetty

2020-02-03 Thread Gerald Kallas
Tested with cURL curl --insecure -v https://host:8443/say/hello * Trying 10.0.0.147... * TCP_NODELAY set * Connected to host (10.0.0.147) port 8443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/pki/tls/certs/ca-bundle.crt C

Re: Salesforce queryAll example (Custom Processor)

2020-02-03 Thread Zoran Regvart
Hi Purnamchander, have a look at the test we have: https://github.com/apache/camel/blob/dbb68afe078abed566a2ae3980f5859b353f4a26/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/RestApiIntegrationTest.java#L466-L469 https://github.com/apac

Re: SSL_ERROR_NO_CYPHER_OVERLAP with camel-jetty

2020-02-03 Thread Gerald Kallas
Thanks JB, I did not install bouncycastle. I did install camel-jetty only as Karaf feature. The underpinning Jetty for the Karaf web console is working fine with HTTPS. So far I wonder what I'm still missing that camel-jetty could work also with HTTPS. Best - Gerald > Jean-Baptiste Onofré ha