How configure a per port / stub http proxy in Apache CXF WS in JBoss EAP 5.1?

Solution Verified - Updated -


  • Some of our webservices are internal to our network running on another JBoss instance, while others are external to our organization. So I have to be routed through a HTTP proxy with authentication for external calls while I should not for internal.
  • I know how to globally set a HTTP proxy to be used in the JVM, but is there a way in JAX-WS to set a HTTP proxy only for a certain web service client, so that I can configure the proxy to be used only for external web service calls? For example: some thing like setting custom properties using BindingProvider.getRequestContext().put(...).


  • JBoss Enterprise Application Platform (EAP) 5.1.x
  • Apache CXF Web Services (CXF WS) 2.1.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content