> See this section:
> http://cxf.apache.org/docs/jaxrs-services-configuration.html#JAXRSServicesConfiguration-ConfiguringJAXRSservicesincontainerwithoutSpring
>
> At the moment, in/out interceptors will only be picked up if
> jaxrs.serviceClasses and jaxrs.providers parameters are used instead of
> javax.ws.rs.Application.
>
> It does make sense to get jaxrs.outInterceptors and jaxrs.inInterceptors
> supported with Application as well

I see that I cannot ATM configure the interceptors through web.xml,
but is there any way of programmatically adding the interceptors from
my Application class? I am unsure if I can go the route you linked to,
as inject two EJBs into one service, and I am unsure of how that could
be accomplished by just configuration.

                /* Inserts the appropriate EJBs into the rest service.
                MyService myService = new BudgetService();
                try {
                        myService.setTotalCalculator( (ITotalCalculator) 
getBean(
"ITotalCalculator" ) );
                        myService.setInfoStorage( (IInfoStorage) getBean( 
"IInfoStorage" ) );
                } catch ( NamingException e ) {
                        throw new RuntimeException( e );
                }
                singletons.add( myService );

--
Regards, Carl-Erik

Reply via email to