Hi Rice

I guess you need to have ApplicationContext injected to the code which needs to do it and then get jaxrs:server beans by their ids from there, and cast them to JAXRSServerFactoryBean, and finally do getServer() on it

Cheers, Sergey

On 02/04/15 08:11, Rice Yeh wrote:
Hi,
   I start up cxf jaxrs with CXFServlet with the following configuration:
<servlet>
<servlet-name>cxf</servlet-name>
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
<init-param>
<param-name>config-location</param-name>
<param-value>/WEB-INF/cxf.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

My question is how do I get each org.apache.cxf.endpoint.Server by their id
after cxf is started up?

Rice



--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Reply via email to