Hi

There's a bug there (to be fixed) which is to do with jaxrs.inInterceptors
and jaxrs.outInterceptors being ignored when jaxrs Application class is
being used to provide info about service classes and providers. Just user
jaxrs.serviceClasses and jaxrs.providers instead at the moment - and you'll
see the logging interceptors working

cheers, Sergey

On Fri, Jun 4, 2010 at 9:31 AM, Loh Kok Jeng <[email protected]> wrote:

> Hi Sergey,
>
> I added the params in web.xml but JAXRS still does not log inbound and
> outbound messages.  FYI, I'm still using 2.2.5, and I checked the set
> Interceptor are implemented in CXFNonSpringJaxRsServlet.
>
> regards,
> Loh Kok Jeng
>
>
>
> On 4 June 2010 15:46, Loh Kok Jeng <[email protected]> wrote:
> > 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
> >>>
> >>
> >
>

Reply via email to