New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for camel-xml-io #849
Conversation
With this PR, I'm not sure if this extension should be kept as it is (i.e. the name is misleading) but I think we need to have a better view about the requirements of other extensions in relation to XML so we may re-factor it when we have a better idea. |
A general question: are all these new |
the user needs to decide what xml implementation is needed by its application and yes, we can certainly move them to support but there is the same artefact on camel side so to be consistent with the other extension I didn't put them to support folder |
I am struggling to understand the purpose of camel-xml-jaxp and camel-xml-io (in Camel). camel-xml-jaxp is just an alias for camel-support and and camel-xml-io is just an alias for camel-core-engine. What is the actual reason for their existence? |
If this is your idea probably you didn't look too deep in the camel code. They are not just alias. |
@ppalaga we're trying to make camel a bit more modular. In addition to that, we want to have a camel which is lightweight enough in Quarkus. Previsouly, xml routes were supported through jaxb only. Now, we do support loading xml routes either using JAXB (using |
Ah, sorry, indeed there is actually some code in those modules. I am deformed by Camel Quarkus where we just wrap things. |
OK, I hope I am starting to grasp this. Here a couple of notes about this PR (that still may reside on my false assumptions; plz correct me in such cases):
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some nitpicks inline
Not really,
The artefact contains as example the XMLTokenizeLanguage so I think it is safe to let the user if/when to include it. |
Yes, there is a parser implementing Camels own interface
OK, so we need a separate support JAXP extension for the native quirks - so |
That is a question for @gnodet
Yes that is something I was thinking about |
Perfect. Please file a followup unless you want to amend now. |
Will open a follow up issue as soon this get merged so I have the right pointers |
The last open issue from my PoV is to document the purpose of the new extensions in their runtime/pom.xml |
should we fix it at camel side ? those extensions here are mainly wrapper |
Ideally both. |
I think we should avoid to duplicate the effort and document how the xml thing wotk on camel side, we can link the page here but I’d avoid duplication |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A proposal inline how to improve the descriptions and the yaml metadata.
extensions/xml-io/runtime/src/main/resources/META-INF/quarkus-extension.yaml
Outdated
Show resolved
Hide resolved
extensions/xml-jaxb/runtime/src/main/resources/META-INF/quarkus-extension.yaml
Outdated
Show resolved
Hide resolved
extensions/xml-jaxb/runtime/src/main/resources/META-INF/quarkus-extension.yaml
Outdated
Show resolved
Hide resolved
extensions/xml-jaxp/runtime/src/main/resources/META-INF/quarkus-extension.yaml
Outdated
Show resolved
Hide resolved
The goal is not to make the parser public. If other parts/components need a lightweight parser, why not, but it should be part of a public API for users. |
Fixes #847