Skip to content

Commit

Permalink
Decoupled endpoint not accessible when no other service endpoint is c…
Browse files Browse the repository at this point in the history
…onfigured fix #1140
  • Loading branch information
ppalaga committed Dec 22, 2023
1 parent ef7c037 commit 60a4669
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import org.apache.cxf.ws.rm.feature.RMFeature;

import io.quarkiverse.cxf.deployment.CxfRouteRegistrationRequestorBuildItem;
import io.quarkiverse.cxf.ws.rm.DefaultRmFeatureProducer;
import io.quarkiverse.cxf.ws.rm.WsRmFactoryCustomizer;
import io.quarkus.arc.deployment.AdditionalBeanBuildItem;
Expand All @@ -14,10 +15,11 @@
import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem;

public class WsReliableMessagingProcessor {
private static final String FEATURE = "cxf-rt-ws-rm";

@BuildStep
FeatureBuildItem feature() {
return new FeatureBuildItem("cxf-rt-ws-rm");
return new FeatureBuildItem(FEATURE);
}

@BuildStep
Expand Down Expand Up @@ -45,4 +47,9 @@ void additionalBeans(BuildProducer<AdditionalBeanBuildItem> additionalBeans) {
new AdditionalBeanBuildItem(WsRmFactoryCustomizer.class, DefaultRmFeatureProducer.class, RMFeature.class));
}

@BuildStep
CxfRouteRegistrationRequestorBuildItem requestCxfRouteRegistration() {
return new CxfRouteRegistrationRequestorBuildItem(FEATURE);
}

}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ quarkus.cxf.client.wsrm.in-interceptors = #inMessageRecorder
quarkus.cxf.client.wsrm.connection = keep-alive
quarkus.cxf.client.wsrm.decoupled-endpoint = /wsrm/decoupled-endpoint
quarkus.cxf.client.wsrm.decoupled-endpoint-base = http://localhost:${quarkus.http.test-port}${quarkus.cxf.path}

# Workaround for https://github.com/quarkiverse/quarkus-cxf/issues/1140
quarkus.cxf.endpoint."/wsrm-dummy".implementor = io.quarkiverse.cxf.it.ws.rm.server.WsrmHelloServiceImpl

0 comments on commit 60a4669

Please sign in to comment.