camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From souciance <souciance.eqdam.ras...@gmail.com>
Subject Re: Java Rest DSL Spring boot and Rabbitmq
Date Sun, 14 May 2017 14:00:12 GMT
Have a look at the camel-rabbitmq component, there are some parameters for
pooling but I haven't used them myself. Maybe the unit tests provide more
information.

I believe .to("rabbitmq...") opens and closes a new connection.

For json schema validation there are various frameworks you can use to use
in your code. One is https://github.com/networknt/json-schema-validator
Add a bean, validate your json, throw an error if it fails or continue
processing.

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virusfritt.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Sat, May 13, 2017 at 6:58 PM, kaiser75 [via Camel] <
ml+s465427n5799453h6@n5.nabble.com> wrote:

> I've a use case where I need to expose a rest end point to receive a
> request, validate it and then post it to a Rabbitmq queue.
>
> I'm thinking of using Java Rest DSL , spring boot components to build this
> service out. I do have a few questions,
>
> How do I enable connection pooling for my connections to Rabbit?
>
> Does  to("rabbitmq://localhost:5672/ex2")   open and close a new
> connection every time it is invoked?
>
> how do I add json schema validation to validate inbound requests ?
>
> Thanks much
> GV
>
> I'm planning to model my code after the spirng-boot-rest-jpa sample in the
> camel examples
>
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://camel.465427.n5.nabble.com/Java-Rest-DSL-Spring-boot-
> and-Rabbitmq-tp5799453.html
> To start a new topic under Camel - Users, email ml+s465427n465428h31@n5.
> nabble.com
> To unsubscribe from Camel - Users, click here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
> .
> NAML
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://camel.465427.n5.nabble.com/Java-Rest-DSL-Spring-boot-and-Rabbitmq-tp5799453p5799484.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message