How to set a global value for the client timeout for a JAX-WS client within JBoss configuration ?

Solution Unverified - Updated -

Issue

  • With regard to https://access.redhat.com/solutions/341683 and https://access.redhat.com/solutions/60560.
    Is there a way to set the global value for the client timeout for a JAX-WS client within the Jboss configuration itself , i.e within domain.xml or similar, without changing the war files we have deployed.

  • We are not using spring for CXF configuration (because as per solution 60560 it is not recommended). Changing the war files is not practical at this time either, due to release management issues.

  • We need to be able to configure WS-Security with UsernameToken using deployment descriptors instead of using Java annotations.
    This is possible in WildFly using the jaxws-endpoint-config.xml and jboss-webservices.xml, but how do we do this in EAP 6?

We have been able to turn of token validation using configuration in standalone.xml using:

            <endpoint-config name="Standard-Endpoint-Config">
                <property name="ws-security.validate.token" value="false"/>
  • But how do we set the (equivalent of a) SubjectCreatingPolicyInterceptor interceptor using a deployment descriptor instead of the following?
@InInterceptors(interceptors = {
          "org.jboss.wsf.stack.cxf.security.authentication.SubjectCreatingPolicyInterceptor"
})

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.4.x
  • JBossWS-CXF

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