Skip to content
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

CAMEL-12977: Added support to load Camel REST DSL from XML file. #2655

Closed
wants to merge 1 commit into from

Conversation

DuncanDoyle
Copy link
Contributor

No description provided.

@@ -0,0 +1,61 @@
package org.apache.camel.component.jbpm.server;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing license header


if (isRest != null) {
RestsDefinition rests = context.loadRestsDefinition(isRest);
context.addRestDefinitions(rests.getRests());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we annotate the rest related definitions so they are only invoked for given kjar?

public void testInit() {
CamelKieServerExtension extension = new CamelKieServerExtension();
extension.init(null, null);
CamelContext globalCamelContext = (CamelContext) ServiceRegistry.get().service("GlobalCamelService");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use JBPMConstants here instead of GlobalCamelService string

@DuncanDoyle
Copy link
Contributor Author

Decided that support for rest-dsl.xml is not needed if we provide support for custom CamelContextBuilders. This would allow users to define their own CamelContext in Java DSL, including REST endpoints.

@DuncanDoyle DuncanDoyle closed this Dec 5, 2018
@oscerd
Copy link
Contributor

oscerd commented Dec 5, 2018

So we can close the issue too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants