camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet" <gno...@gmail.com>
Subject Re: [Proposal] adding Spring support to camel-cxf component
Date Fri, 28 Sep 2007 09:15:23 GMT
I'm still very concerned about the fact that we have to instanciate
the service on the server side if it is not actually used (requests
are just forwarded).  Can we configure the server to just use a WSDL
instead ?

On 9/28/07, Willem Jiang <willem.jiang@gmail.com> wrote:
> Guillaume Nodet wrote:
> > On 9/28/07, Willem Jiang <willem.jiang@gmail.com> wrote:
> >
> >> Here is an example:
> >> ...
> >>  <simple:client id="client1"
> >>     serviceClass="org.apache.cxf.service.factory.HelloService"
> >>     address="http://localhost:9000/foo2"
> >>     serviceName="s:XMLService"
> >>     xmlns:s="http://apache.org/hello_world_soap_http"
> >>     endpointName="s:XMLPort"
> >>     bindingId="http://cxf.apache.org/bindings/xformat">
> >>    </simple:client>
> >>
> >> <simple:server id="server1"
> >> address="http://localhost:8080/simpleWithAddress">
> >>     <simple:serviceBean>
> >>       <bean class="org.apache.cxf.service.factory.HelloServiceImpl"/>
> >>     </simple:serviceBean>
> >>   </simple:server>
> >>
> >> <camelContext id="camel"
> >> xmlns="http://activemq.apache.org/camel/schema/spring">
> >>     <route>
> >>       <from uri="cxf://SpringBean=server1"/>
> >>       <to uri="cxf://SpringBean=client1"/>
> >>     </route>
> >> </camelContext>
> >>
> >>
> >
> > Can you explain a bit what this route is supposed to do ?
> > Is this supposed to accept requests on
> >    http://localhost:8080/simpleWithAddress
> > and route them to an external service on
> >    http://localhost:9000/foo2
> >
> >
> >
> Yes , it is exactly working as your said.
> I just omitted the address information from the endpoint URI , because
> they are already in the Spring bean's configuration.
>
> Willem.
>
>
>


-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Mime
View raw message