On Fri, Mar 4, 2011 at 8:46 AM, Christian Mueller < christian.muel...@gmail.com> wrote:
> Hello Willem! > > I have the same problem... :-( > I will try to describe the problem and ask my question again: > In our integration project we use multiple Camel OSGI bundles which expose > multiple web servives (via Camel CXF consumer). We use the > camel-cxf:cxfEndpoint configuration (including properties and interceptors) > with an address like address=" > https://0.0.0.0:8443/Services/OrderEntryService" and the > httpj:engine-factory configuration (see my first post). > > We have the problem, that we have to configure a different port for each > web > service we expose to prevent the Could not start Jetty server: Address > already in use: JVM_Bind Exception (also in my first post). > > Charles suggested to use an address like > address="/Services/OrderEntryService". My questions are: > - At present, I use in my route from("cxf:bean:orderEntryService"). Do I > have to use now from(cxf:/Services/OrderEntryService?...) or is it also > possible with the CXF bean binding? > >> The configuration of the Camel-cxf component remains the same --> rom("cxf:bean:orderEntryService") > - If I can still use the CXF bean binding: I didn't found any unit test or > example which test/shows this possibility. Currently I don't know how I can > test this (I think I have to start Jetty and configure it for HTTPS in my > set up method). > >> To use CXF OSGI Servlet instead of registering a new Jetty HTTP Server, you must configure your xml like that <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" > - If I have to use from("cxf:/Services/OrderEntryService"), how I can > configure our cxf properties (e.g. schema-validation-enabled) and > interceptors? > >> that does not change > > In short: My goal is to provide multiple web services (Apache CXF > consumers) > which use the same port for the HTTPS configuration. It should be possible > to switch to HTTP without touching my Spring configuration (only my > externalized environment specific properties). > > The next FAQ entry I would like to write... ;-) > > Christian > > On Fri, Mar 4, 2011 at 5:48 AM, Willem.Jiang [via Camel] < > ml-node+3408939-1332669798-65...@n5.nabble.com> wrote: > > > Hi Christian, > > > > I cannot see any code inside the {code}{code} block. > > And I didn't get your question. > > > > Willem > > > > ------------------------------ > > If you reply to this email, your message will be added to the discussion > > below: > > > > > http://camel.465427.n5.nabble.com/Problem-with-multiple-CXF-services-using-the-same-https-port-tp3379301p3408939.html > > To unsubscribe from Problem with multiple CXF services using the same > > https port, click here< > http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3379301&code=Y2hyaXN0aWFuLm11ZWxsZXJAZ21haWwuY29tfDMzNzkzMDF8LTY2MDEwNjQxMA== > >. > > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Problem-with-multiple-CXF-services-using-the-same-https-port-tp3379301p3409050.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- -- Charles Moulliard - Sr. Principal Solution Architect FuseSource Phone: +32 473 604 014 Email: cmoulli...@fusesource.com Web: http://cmoulliard.blogspot.com, http://fusesource.com Twitter: cmoulliard "The experts in open source integration and messaging." <http://www.progress.com/>