cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benson Margulies" <bim2...@basistech.com>
Subject RE: Logging 1, benson 0?
Date Wed, 19 Sep 2007 13:54:28 GMT
Thanks.

> -----Original Message-----
> From: Jiang, Ning (Willem) [mailto:Ning.Jiang@iona.com]
> Sent: Wednesday, September 19, 2007 9:46 AM
> To: cxf-dev@incubator.apache.org
> Subject: RE: Logging 1, benson 0?
> 
> 
> Hey,
> You need to call the sf.setStart(false) before sf.create().
> In this way the server would not start before you set the interceptor.
> 
> Willem.
> 
> -----Original Message-----
> From: Benson Margulies [mailto:bim2007@basistech.com]
> Sent: Wed 9/19/2007 20:50
> To: cxf-dev@incubator.apache.org
> Subject: Logging 1, benson 0?
> 
> My logging level is FINE, I'm creating a service as follows. The
> interceptors are never called. What am I missing?
> 
> 
> 
>         JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean();
> 
>         sf.setServiceClass(StudentServiceDocLiteral.class);
> 
>         sf.setServiceBean(new StudentServiceDocLiteralImpl());
> 
>         sf.setAddress("local://StudentServiceDocLiteral");
> 
>         setupAegis(sf);
> 
>         Server server = sf.create();
> 
>         server.getEndpoint().getInInterceptors().add(new
> LoggingInInterceptor());
> 
>         server.getEndpoint().getOutInterceptors().add(new
> LoggingOutInterceptor());
> 
>         server.start();
> 


Mime
View raw message