views:

83

answers:

0

Hello everyone,

I've been using Apache CXF 2.2.8 in an attempt to implement a web services client that supports WS-Reliable Messaging. To start, I built and ran the included ws-rm sample that ships with CXF (using the mvn -Pserver and mvn -Pclient commands), and it works as advertised.

Now, I would like to run this sample in Tomcat (using two different instances of Tomcat; 1 for the server and one for the client). The server piece deploys and runs without issue. The client is another matter entirely.

In the Spring configuration file for the client, the asynchronous callback endpoint for message acknowledgment is defined via the <http:client> element:

<http:conduit name="{http://cxf.apache.org/hello_world_soap_http}GreeterPort.http-conduit"&gt;
    <http:client DecoupledEndpoint="http://localhost:9990/decoupled_endpoint"/&gt;
</http:conduit>

From what I can gather, this endpoint is created by an embedded instance of the Jetty servlet engine. So, my question is, how in the world are you supposed to run this inside of another container (Tomcat and/or Weblogic for example), and have it work? Or is there another way that this should be addressed? The documentation for CXF WS-RM is a little light, but I'm hoping I've overlooked something obvious. Thanks, and let me know if anyone needs additional information or clarification.

FYI - The sample I'm referring to is located at: apache-cxf-2.2.8/samples/ws_rm of the CXF distribution.