Hi Sergey,
Many thanks.
Do u mean add the following to web.xml?
<init-param>
<param-name>jaxrs.inInterceptors</param-name>
<param-value>org.apache.cxf.interceptor.LoggingInInterceptor</param-value>
</init-param>
<init-param>
<param-name>jaxrs.outInterceptors</param-name>
<param-value>org.apache.cxf.interceptor.LoggingOutInterceptor</param-value>
</init-param>
regards,
Loh Kok Jeng
On 4 June 2010 04:39, Sergey Beryozkin <[email protected]> wrote:
> Hi
>
> You'll need to register CXF LoggingInInterceptor and LoggingOutInterceptor
> using
>
> jaxrs.inInterceptors and jaxrs.outInterceptors servlets parameters
>
> cheers, Sergey
>
>
> On Thu, Jun 3, 2010 at 11:06 AM, Loh Kok Jeng <[email protected]> wrote:
>
>> Hi,
>>
>> I'm implementing a REST server using CXFNonSpringJaxrsServlet. Below
>> is a snippet of my REST server.
>>
>> Question: how can I log inbound and outbound message for this REST server?
>>
>> public class RestApp extends Application {
>>
>> �...@override
>> public Set<Class<?>> getClasses() {
>> // TODO Auto-generated method stub
>> Set<Class<?>> set = new HashSet<Class<?>>();
>>
>> set.add(SomeServiceJaxRS.class);
>> }
>> }
>>
>>
>> regards,
>> Loh Kok Jeng
>>
>