Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6788303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:28:11+00:00 2026-05-26T17:28:11+00:00

I have an application which provides services using CXF’s Servlet transport and Jetty 6.1.

  • 0

I have an application which provides services using CXF’s Servlet transport and Jetty 6.1. This application also needs to consume external services. All services support WS-Addressing specification (and WS-RM on top). To consume an external service, I run a generated service client from the application.

The problem is that when I provide a decoupled endpoint for the client (WS-RM needs this endpoint to receive incoming messages via a separate http connection), CXF runs another instance of Jetty server (in spite of the fact that Servlet transport (which provides services) and the client (which consumes some external service) share the same bus). I don’t need two instances of Jetty (not saying that they can’t run on the same HTTP port).

Is there a way I can provide a decoupled endpoint using an existing Jetty server and Servlet transport?

So far, I enable a decoupled endpoint like this:

Client client = ClientProxy.getClient(port);
HTTPConduit httpConduit = (HTTPConduit) client.getConduit();
httpConduit.getClient().setDecoupledEndpoint(
     "http://domain.com:port/services/dec_endpoints/TestDecEndpoint");

If I provide a relative path (“/dec_endpoints/TestDecEndpoint”, just like relative paths are used with provision of services via Servlet transport), HTTP conduit does not specify a full path in a SOAP message’s headers so this doesn’t work either (server just can’t send a message to /dec_endpoints/TestDecEndpoint).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:28:12+00:00Added an answer on May 26, 2026 at 5:28 pm

    Ok, I have found a solution myself. You need to specify a relative path for decoupled endpoint and change message’s addressing properties manually (after MAPAggregator interceptor, ’cause it sets up the decoupled destination) so the server can send replies to your address.

    So what we have:

    1. decoupled destination using a relative path: /dec_endpoints/SomeDestination
    2. <ReplyTo> header with an absolute path: http://addr.com:port/servlet_path/dec_endpoints/SomeDestination

    Here’s an example how the path can be changed:

    public class ReplyToInterceptor extends AbstractPhaseInterceptor<Message>
    {
        public ReplyToInterceptor() {
            super(Phase.PRE_LOGICAL);
            addAfter(MAPAggregator.class.getName());
        }
    
        public void handleMessage(Message message) {
            AddressingProperties maps = ContextUtils.retrieveMAPs(message, false, 
               true);
            EndpointReferenceType replyTo = maps.getReplyTo();
            replyTo.getAddress().setValue(
               "http://address.com:port/servlet_path/dec_endpoints/SomeDestination");
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using JDeveloper as my IDE, I have a web application which calls services provided
I have application which needs to use a dll (also written by me) which
I have a web application which provides Excel files via IE 7. It requests
I have a C application which provides a shell for entering commands. I'm trying
I have an application in VC++ which needs to execute a function provided to
I have an application which extracts data from an XML file using XPath. If
We have an application which needs to use Direct3D. Specifically, it needs at least
We have an application which acts as a touchscreen overlay. It provides custom touchscreen
I have an application which really should be installed, but does work fine when
I have an application which behaves as a slideshow for all pictures in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.