Re: REST dsl in Kamelet

2024-02-11 Thread Claus Ibsen
Hi Kamelets are for *routes* and not rest-dsl. On Sun, Feb 11, 2024 at 6:03 AM Rohan Emmanuel wrote: > hi, > i was trying to move the REST dsl mentioned in the snippet below from the > camel-context.xml to the kamelet yaml file.can anyone advice me on how to > do this ? > here, the REST endpo

REST dsl in Kamelet

2024-02-10 Thread Rohan Emmanuel
hi, i was trying to move the REST dsl mentioned in the snippet below from the camel-context.xml to the kamelet yaml file.can anyone advice me on how to do this ? here, the REST endpoint invokes the ABC service which is defined in the Kamelet YAML file. was looking to add all camel-related endpoints

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: issue with property in REST DSL in blueprint context - Camel 2.19.1

2017-08-04 Thread claud...@gmail.com
little bug. You are welcome to log a JIRA and we can look at getting this fixed for upcoming releases. On Fri, Aug 4, 2017 at 11:24 AM, claud...@gmail.com wrote: Hi, I'm trying to update from Camel 2.16.3 to 2.19.1 and experience issues using properties in the REST DSL in blueprint contex

Re: issue with property in REST DSL in blueprint context - Camel 2.19.1

2017-08-04 Thread Claus Ibsen
to update from Camel 2.16.3 to 2.19.1 and experience issues using > properties in the REST DSL in blueprint context. > > I have the following config: > > path="patient/{patient_id}/events?cutoff_timestamp={cutoff_timestamp}&limit={limit}" > produces

issue with property in REST DSL in blueprint context - Camel 2.19.1

2017-08-04 Thread claud...@gmail.com
Hi, I'm trying to update from Camel 2.16.3 to 2.19.1 and experience issues using properties in the REST DSL in blueprint context. I have the following config: path="patient/{patient_id}/events?cutoff_timestamp={cutoff_timestamp}&limit={limit}" produces="ap

Re: REST (DSL) in ?

2015-09-03 Thread Claus Ibsen
Hi There is a you can use and then define the rest-dsl in the xml files such as http://camel.apache.org/schema/spring"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> On Wed, Sep 2, 2015 at 3:36 PM, Scott Stroud wrote: > Is

Re: REST (DSL) in ?

2015-09-02 Thread Raul Kripalani
Hi, Could you please open a JIRA [1] ticket for this improvement? [1] https://issues.apache.org/jira/browse/CAMEL Thanks, *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalani | http://www.linkedin.com/in/ra

REST (DSL) in ?

2015-09-02 Thread Scott Stroud
Is the declaration only supported in the (in Spring DSL)? And not the RouteContext? If not, is there any plan to support in the ? I believe its a very common approach to define routes into (domain) specific files and then import them into the camel-context via Spring, then use a to inclu

Re: Rest DSL IN/OUT types

2014-12-09 Thread Alan Camillo
Fantastic! Thank you again! On Tue, Dec 9, 2014 at 5:21 PM, Claus Ibsen wrote: > Hi > > Yeah found it outs really camel-jaxb that should support this. > > So to support your use case in 2.14.1, you set the > mustBeJAXBElement=false which you can configure on the rest data > format property. > >

Re: Rest DSL IN/OUT types

2014-12-09 Thread Claus Ibsen
Hi Yeah found it outs really camel-jaxb that should support this. So to support your use case in 2.14.1, you set the mustBeJAXBElement=false which you can configure on the rest data format property. For example restConfiguration().component("restlet").host("localhost").port(portNum).bindingMod

Re: Rest DSL IN/OUT types

2014-12-09 Thread Alan Camillo
I see you are working on this. I'll follow your fix. Alan Camillo On Tue, Dec 9, 2014 at 2:17 PM, Claus Ibsen wrote: > Hi > > Yeah sounds good. > > Its this guy > org.apache.camel.processor.binding.RestBindingProcessor > > which we need to enhance to allow the RestBindingMarshalOnCompletion > p

Re: Rest DSL IN/OUT types

2014-12-09 Thread Claus Ibsen
Hi Yeah sounds good. Its this guy org.apache.camel.processor.binding.RestBindingProcessor which we need to enhance to allow the RestBindingMarshalOnCompletion part not to do a jaxb in those situations On Tue, Dec 9, 2014 at 5:13 PM, Alan Camillo wrote: > It'll be nice. Imagine could use a t

Re: Rest DSL IN/OUT types

2014-12-09 Thread Alan Camillo
It'll be nice. Imagine could use a template engine to create some returns and mix this with some bindings. I will look the src and if I could help I can try. Thanks! Alan > Em 09/12/2014, às 14:01, Claus Ibsen escreveu: > > Hi > > Ah yeah as it marshalled using JAXB for IN it defaults to do

Re: Rest DSL IN/OUT types

2014-12-09 Thread Claus Ibsen
Hi I logged a ticket to track this https://issues.apache.org/jira/browse/CAMEL-8136 On Tue, Dec 9, 2014 at 5:01 PM, Claus Ibsen wrote: > Hi > > Ah yeah as it marshalled using JAXB for IN it defaults to do the > reverse on out. But as you have auto mode, we could likely detect that > if the messa

Re: Rest DSL IN/OUT types

2014-12-09 Thread Claus Ibsen
Hi Ah yeah as it marshalled using JAXB for IN it defaults to do the reverse on out. But as you have auto mode, we could likely detect that if the message body does not have @Jaxb annotations it should use it as-is. Also we could detect if the body is a String and use that as-is, as its assume xml

Rest DSL IN/OUT types

2014-12-09 Thread Alan Camillo
Hello! I've had some problems trying the new rest dsl from camel and I'd like to know if there is a way to do this: restConfiguration() .component("netty-http") .host("0.0.0.0") .bindingMode(*RestBindingMode.auto*) .port("{{server.port}}"); rest("/mail") .post("/send")

Re: Can exception clause works with rest dsl in camel 2.14.0?

2014-10-28 Thread Dewitte P-Alban
ntimeException("TEST"); > > } > > } > > > > public MyProcessor implements Processor { > > public void process(Exchange exchange) throws Exception { > > System.out.println("This line of code is not called"); > > } > > } > > >

Re: Can exception clause works with rest dsl in camel 2.14.0?

2014-10-25 Thread Claus Ibsen
{ > public void process(Exchange exchange) throws Exception { > System.out.println("This line of code is not called"); > } > } > > MyProcessor is not get called. Helps are needed please!! > > Kind regards, > Leon Chang > > > > -- > View this message in co

Can exception clause works with rest dsl in camel 2.14.0?

2014-10-07 Thread leon
ed"); } } MyProcessor is not get called. Helps are needed please!! Kind regards, Leon Chang -- View this message in context: http://camel.465427.n5.nabble.com/Can-exception-clause-works-with-rest-dsl-in-camel-2-14-0-tp5757381.html Sent from the Camel - Users mailing list archive at Nabble.com.