Hi Jim,

mmh, I don't get it, sorry. I create a new ServiceFactoryBean, do the
configuration, but what to do then? I suppose I have to inject the new
ServiceFactoryBean somehow into cxf.

> subclassing AbstractServiceFactoryBean. Then use your own
> ServiceFactoryBean to create your Servlet :

How do I do that? Sorry if this is a dull question, but I don't see how
the ServiceFactoryBean is used after creation:

> public class MyCustomServlet extends CXFServlet
> {
>    @Override
>    public void init(ServletConfig servletConfig)
>                  throws ServletException
>    {
>        super.init(servletConfig);
> 
>        Bus bus = getBus();
>        BusFactory.setDefaultBus(bus);
> 
>        YourServiceFactoryBean serviceFactory =
>                     new YourServiceFactoryBean ();
>        serviceFactory.getServiceConfigurations()
>                   .add(0, new AbstractServiceConfiguration()

... I think there is something missing here ...

>            // standard JAX-WS service creation
>        Endpoint.publish("/OtherService", new OtherServiceImpl());
>    }
> }

Thanks,
Michael

-- 
Dipl.-Technoinform Michael Kleinhenz

tarent
Gesellschaft für Softwareentwicklung und IT-Beratung mbH

Heilsbachstr. 24, 53123 Bonn  | Poststr. 4-5, 10178 Berlin
fon: +49(228) / 52675-0       | fon: +49(30) / 27594853
fax: +49(228) / 52675-25      | fax: +49(30) / 78709617

Geschäftsführer: Boris Esser, Elmar Geese, Thomas Müller-Ackermann
HRB AG Bonn 5168 - Ust-ID: DE122264941

Reply via email to