Hi Charles,

You can use the CXF osgi http transport to do this here is the example
<beans xmlns="http://www.springframework.org/schema/beans";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xmlns:cxf="http://camel.apache.org/schema/cxf";
        xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
">

    <import resource="classpath:META-INF/cxf/cxf.xml" />
    <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
    <import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
<import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" />

    <cxf:cxfEndpoint id="wsService"
                       address="services/getAlias"
                       serviceClass="com.sfr.pates.GetAliasManager"/>

...
You should be access the service from "http://localhost:8081/cxf/services/getAlias";

Willem



On 2/23/11 2:47 PM, Charles Moulliard wrote:
Hi,

Is there a way to configure the camel-cxf component to register the
path for the WebService (= wsdl) under an existing instance of a Web
Application Server instead of creating a Jetty Server with the URL
address defined in the<cxf:cxfEndpoint address=""/>

WORK

     <!-- WebServices -->
     <cxf:cxfEndpoint id="wsService"
                      address="http://localhost:9090/pates/services/getAlias";
                      serviceClass="com.sfr.pates.GetAliasManager"/>

DOES NORT WORK

     <!-- WebServices -->
     <cxf:cxfEndpoint id="wsService"
                      address="services/getAlias"
                      serviceClass="com.sfr.pates.GetAliasManager"/>

Regards,


Charles Moulliard

Sr. Principal Solution Architect - FuseSource
Apache Committer

Blog : http://cmoulliard.blogspot.com
Twitter : http://twitter.com/cmoulliard
Linkedin : http://www.linkedin.com/in/charlesmoulliard
Skype: cmoulliard



--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Reply via email to