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

ASF GitHub Bot commented on CAMEL-12632:
----------------------------------------

oscerd closed pull request #2417: CAMEL-12632: Pass CXF service class to 
EndpointInfo
URL: https://github.com/apache/camel/pull/2417
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfConsumer.java
 
b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfConsumer.java
index 95705c7a83d..7ba7c764205 100644
--- 
a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfConsumer.java
+++ 
b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfConsumer.java
@@ -43,6 +43,7 @@
 import org.apache.cxf.phase.Phase;
 import org.apache.cxf.service.invoker.Invoker;
 import org.apache.cxf.service.model.BindingOperationInfo;
+import org.apache.cxf.service.model.EndpointInfo;
 import org.apache.cxf.transport.MessageObserver;
 import org.apache.cxf.ws.addressing.ContextUtils;
 import org.apache.cxf.ws.addressing.EndpointReferenceType;
@@ -76,6 +77,7 @@ protected Server createServer() throws Exception {
         if (cxfEndpoint.getCxfEndpointConfigurer() != null) {
             cxfEndpoint.getCxfEndpointConfigurer().configureServer(server);
         }
+        server.getEndpoint().getEndpointInfo().setProperty("serviceClass", 
cxfEndpoint.getServiceClass());
         if (ObjectHelper.isNotEmpty(cxfEndpoint.getPublishedEndpointUrl())) {
             
server.getEndpoint().getEndpointInfo().setProperty("publishedEndpointUrl", 
cxfEndpoint.getPublishedEndpointUrl());
         }


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Pass CXF service class to EndpointInfo
> --------------------------------------
>
>                 Key: CAMEL-12632
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12632
>             Project: Camel
>          Issue Type: Task
>          Components: camel-cxf
>            Reporter: Peter Palaga
>            Assignee: Peter Palaga
>            Priority: Major
>             Fix For: 2.21.2, 2.22.1, 2.23.0
>
>
> We'd need this to be able to map CXF endpoints to their respective WAR class 
> loaders when the WARs are in an EAR on WildFly. Blocks 
> https://github.com/wildfly-extras/wildfly-camel/issues/2595



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to