camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Goodwin, Matthew" <>
Subject Camel CXFRS and WADL generation
Date Sat, 13 Jun 2015 00:27:18 GMT
I am using Camel version 2.14.2 and CXF version 2.7.15 and I have been unable to get the publishedEndpointUrl
property to work with WADL generation.  Here is my Camel config:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""
       xmlns:tx="" xmlns:xsi=""
       xmlns:jaxrs="" xmlns:jaxws=""
       xmlns:util="" xmlns:cxf=""

       <import resource="classpath:spring-shiro-core.xml" />
       <import resource="classpath:spring-tx-config.xml" />

       <bean id="messageSource"
              <property name="basenames">
              <property name="fallbackToSystemLocale" value="true" />

       <!-- Wire up and configure web service end points -->

       <bean id="railincEtaService"
              <property name="retaRequestService" ref="retaRequestService" />
              <property name="messageSource" ref="messageSource" />

       <cxf:rsServer id="rsServer" address="/reta" bus="cxf"
              loggingFeatureEnabled="true" loggingSizeLimit="20" >
                     <entry key="publishedEndpointUrl" value="http://myhost:8080/reta/services"/>
                     <ref bean="railincEtaService" />

When I step through the code I can see the publishedEndpointUrl is getting placed in the properties
map of the Endpoint but this snip of code in the org.apache.cxf.jaxrs.model.wadl.WadlGenerator
doesn't use properties on the EndpointUrl but instead uses the properties map on the EndpointInfo
class which I'm not sure how is set.  Here is the code I am referencing in that class:

private String getBaseURI(Message m, UriInfo ui) {
        EndpointInfo ei = m.getExchange().get(Endpoint.class).getEndpointInfo();
        String publishedEndpointUrl = (String)ei.getProperty("publishedEndpointUrl");
        if (publishedEndpointUrl == null) {
            return ui.getBaseUri().toString();
        } else {
            return publishedEndpointUrl;

So I guess my question is how do I set the publishedEndpointUrl property correctly on the
cxfrs component?




This email and any files transmitted with it are confidential and intended solely for the
use of the individual or entity to whom they are addressed. If you have received this email
in error please notify the system manager. This message contains confidential information
and is intended only for the individual named. If you are not the named addressee you should
not disseminate, distribute or copy this e-mail.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message