camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-9419) camel-spring-boot - Add endpoint options as type-safe configuration properties
Date Mon, 06 Jun 2016 15:28:21 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-9419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15316645#comment-15316645
] 

Claus Ibsen commented on CAMEL-9419:
------------------------------------

The screenshot shows the AHC component with generated configuration from the spring boot APT.


We are not there yet as ideally this should configure the AHC component with the options you
configure, but Spring Boot rely on the class has ConfiguraitonProperties annotation and that
is from spring boot JAR which we do not want as dependency on camel-ahc. 

So maybe we need to create -starter modules for the components where we can generate thin
java source code and maven pom.xml files to include what we need for Spring Boot APT to generate
its stuff.

Then spring boot users, just add camel-ahc-starter as module, and it has auto configuration
enabled, and you can configure in the application.yml file.

We can then also try to do this on the endpoint level, so you can do

camel.component.ahc.allow-java-serialized-object=true
camel.endpoint.ahc.bufferSize=8192

We could then use this as a sort of default options for components/endpoints of that type.



> camel-spring-boot - Add endpoint options as type-safe configuration properties
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-9419
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9419
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-spring-boot
>            Reporter: Claus Ibsen
>             Fix For: 2.18.0
>
>         Attachments: sb-camel-ahc.png
>
>
> So you in the applicaition.properties etc can integrate with the camel catalog, so we
can provide type safe options in SB and the tooling would use this out of the box.
> http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-external-config-typesafe-configuration-properties
> And make the type-safe options for configuring CamelContext itself, so you can configure
options like tracing, shutdown timeout, and various others you may enable.
> And also for JMX management etc.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message