protected void configureCustomizeBinding ( Client client , QName portName ) { //put all properties defined in ibm-ws-bnd.xml into the client request context Map < String , Object > requestContext = client . getRequestContext ( ) ; if ( null != requestContext && null != wsrInfo ) { PortComponentRefInfo portRefInfo = wsrInfo . getPortComponentRefInfo ( portName ) ; Map < String , String > wsrProps = wsrInfo . getProperties ( ) ; Map < String , String > portProps = ( null != portRefInfo ) ? portRefInfo . getProperties ( ) : null ; if ( null != wsrProps ) { requestContext . putAll ( wsrProps ) ; } if ( null != portProps ) { requestContext . putAll ( portProps ) ; } if ( null != wsrProps && Boolean . valueOf ( wsrProps . get ( JaxWsConstants . ENABLE_lOGGINGINOUTINTERCEPTOR ) ) ) { List < Interceptor < ? extends Message > > inInterceptors = client . getInInterceptors ( ) ; inInterceptors . add ( new LoggingInInterceptor ( ) ) ; List < Interceptor < ? extends Message > > outInterceptors = client . getOutInterceptors ( ) ; outInterceptors . add ( new LoggingOutInterceptor ( ) ) ; } } Set < ConfigProperties > configPropsSet = servicePropertiesMap . get ( portName ) ; client . getOutInterceptors ( ) . add ( new LibertyCustomizeBindingOutInterceptor ( wsrInfo , securityConfigService , configPropsSet ) ) ; //need to add an interceptor to clean up HTTPTransportActivator.sorted & props via calling HTTPTransportActivator. deleted(String) //Memory Leak fix for 130985 client . getOutInterceptors ( ) . add ( new LibertyCustomizeBindingOutEndingInterceptor ( wsrInfo ) ) ; }
Add the LibertyCustomizeBindingOutInterceptor in the out interceptor chain .