You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "jamesnetherton (via GitHub)" <gi...@apache.org> on 2024/11/12 09:35:50 UTC
[I] DataFormat endpoints ignore camel.dataformat.* configuration properties [camel-quarkus]
jamesnetherton opened a new issue, #6771:
URL: https://github.com/apache/camel-quarkus/issues/6771
### Bug description
For example, if you were to configure beanio like:
```
camel.dataformat.beanio.stream-name = my-stream
camel.dataformat.beanio.mapping = mapping.xml
```
Then in a Camel route do:
```
from("direct:start")
.to("dataformat:beanio:marshal")
```
You get:
```
Caused by: java.lang.IllegalArgumentException: Stream name not configured. must be specified
at org.apache.camel.util.ObjectHelper.notNull(ObjectHelper.java:152)
at org.apache.camel.dataformat.beanio.BeanIODataFormat.doInit(BeanIODataFormat.java:88)
```
It seems to work on Spring Boot due to this `ComponentCustomizer`:
https://github.com/apache/camel-spring-boot/blob/33ff5c946a9b20491c46b0d0ec07d662240a5e20/components-starter/camel-dataformat-starter/src/main/java/org/apache/camel/component/dataformat/springboot/DataFormatComponentAutoConfiguration.java#L59-L76
We could investigate implementing something similar in our DataFormat extension. Or perhaps modify the Camel component to reuse an existing configured DataFormat instance if one exists.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] DataFormat endpoints ignore camel.dataformat.* configuration properties [camel-quarkus]
Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton closed issue #6771: DataFormat endpoints ignore camel.dataformat.* configuration properties
URL: https://github.com/apache/camel-quarkus/issues/6771
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org