cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Santosh Kulkarni <kulkarn...@gmail.com>
Subject Re: CXF with Spring context that is programmatically started
Date Fri, 27 Sep 2013 14:09:19 GMT
Thanks, now I have to figure out how to make my cxf servlet aware of my
spring context.
Santosh
On Sep 27, 2013 4:17 AM, "Sergey Beryozkin" <sberyozkin@gmail.com> wrote:

> Try extending CXFServlet and overriding its
> protected loadBus(...) method, the default implementation loads a context
> itself and the does
>
> super.setBus(**applicationContext.getBean("**cxf"));
>
> where 'cxf' is the name of Spring loaded bus,
> may be you can do something similar in your case, set a bus from the
> spring context loaded out-of-band
>
> Sergey
>
>
> On 26/09/13 22:19, Santosh Kulkarni wrote:
>
>> I am trying to write a CXF web service as part of my spring based
>> application.
>>
>> For reasons beyond my control we programmatically start the Spring context
>> so I can't let CXF start it.
>> I load the cfx-beans.xml with all of my other spring configuration files
>> and it even starts the web service.
>>
>> The problem is that the CXF servlet does not know about it so the
>> /services
>> URL says there are no services defined. SO the web service is not exposed.
>>
>> Can I start the spring context and somehow 'tell' CXF what the context is?
>>
>> Santosh
>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message