Quantcast

Transaction logging - cannot modify the truncation size of the payload

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Transaction logging - cannot modify the truncation size of the payload

mimccu
This post was updated on .
Hello,

Can you tell me how interceptors are configured for each of the CONNECT web services?...my main focus is on the document retrieve service.
I found a webservices.xml file packaged with a document retrieve WAR file.  The file declared an interceptor, but not nearly the number of interceptors which are listed when activating Apache CXF trace logging.

There are several options to registering interceptors -- programmatically, configuration, etc.  I would like to modify a logging related interceptor so that I can change the logging threshold size.  References concerning CXF and interceptors: http://cxf.apache.org/docs/interceptors.html and http://cxf.apache.org/docs/writing-a-service-with-spring.html.

I have posted the following to the users forum, which describes my interest in interceptors:
http://forums.connectopensource.org/Transaction-logging-cannot-modify-the-truncation-size-of-the-payload-td7580570.html

Thanks,
Mike
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Transaction logging - cannot modify the truncation size of the payload

Minh
Administrator
Hi mimccu,

Here is a list of our interceptor bean that defined in xml "https://github.com/CONNECT-Solution/CONNECT/blob/CONNECT_integration/Product/Production/Common/CONNECTCoreLib/src/main/resources/CONNECT-interceptor-beans.xml").  However, we also register programmatically through one of our decorator class (https://github.com/CONNECT-Solution/CONNECT/blob/3ee6f816a29525c4e4546c8d3201a26affa74884/Product/Production/Common/CONNECTCoreLib/src/main/java/gov/hhs/fha/nhinc/messaging/service/decorator/cxf/SoapResponseServiceEndpointDecorator.java).

Base on your request, "LoggingInInterceptor" is out of the box from CXF and it has default limit at you mention.  This is outside scope of CONNECT but if you want to increase transaction log, I will override one of those two inteceptors (LoggingInInterceptor, LoggingOutInterceptor) and register them in connect through xml (https://github.com/CONNECT-Solution/CONNECT/blob/3ee6f816a29525c4e4546c8d3201a26affa74884/Product/Production/Gateway/DocumentRetrieve_30/src/main/resources/docretrieve/_30/webservices.xml or https://github.com/CONNECT-Solution/CONNECT/blob/3ee6f816a29525c4e4546c8d3201a26affa74884/Product/Production/Gateway/DocumentRetrieve_20/src/main/resources/docretrieve/_20/webservices.xml

Hope this will.
Minh-Hai Nguyen
CONNECT Product Team Member
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Transaction logging - cannot modify the truncation size of the payload

mimccu
Hi Minh,

Thanks very much...this helps a lot.

For the configuration files such as https://github.com/CONNECT-Solution/CONNECT/blob/3ee6f816a29525c4e4546c8d3201a26affa74884/Product/Production/Gateway/DocumentRetrieve_30/src/main/resources/docretrieve/_30/webservices.xml, I'm a little confused about how the class is defined for a bean reference.

For example, If I want to add an over-ride for the "LoggingInInterceptor" in this location:
 <jaxws:inInterceptors> 
             <ref bean="securityConfigInInterceptor" /> 
</jaxws:inInterceptors> 

Where is the bean reference for "securityConfigInInterceptor" defined?
I thought it might be defined inside the webservices.xml file, with something like:

<bean id="securityConfigInInterceptor" class="gov.hhs.fha.nhinc.callback.cxf.wss.SecurityConfigInInterceptor"/>

But there is no bean defined for the reference, so I'm assuming it is defined elsewhere?

Thanks,
Mike
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Transaction logging - cannot modify the truncation size of the payload

Minh
Administrator
Hi Mimcu,

If you look at the web.xml under (https://github.com/CONNECT-Solution/CONNECT/blob/3ee6f816a29525c4e4546c8d3201a26affa74884/Product/Production/Gateway/DocumentRetrieve_30/src/main/webapp/WEB-INF/web.xml#L26), we load all interceptor beans in other xml so that other services can re-use.  That why you don't see inside webservice.xml.  
Minh-Hai Nguyen
CONNECT Product Team Member
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Transaction logging - cannot modify the truncation size of the payload

mimccu
Excellent...thanks again Minh.

-Mike
Loading...