You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by sasuke <uz...@gmail.com> on 2009/08/28 23:03:15 UTC

Load services on demand

Hi there, CXF beginner here. :-)

Is there any configurable way to actually load the services on demand and
not when the server starts? I have tried setting the 'publish' attribute of
the <jaxws:endpoint> element to false and also setting the
default-lazy-init="true", but to no avail. The server console still shows
the message:


INFO: Creating Service {http://sasuke.net/services}DropDownOptionsImpl from
class net.sasuke.services.contract.IDropDownOptionsService
Aug 29, 2009 2:27:26 AM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be /DropDownOptions
Aug 29, 2009 2:27:26 AM org.springframework.web.context.ContextLoader
initWebApplicationContext

My configuration file is:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:jaxws="http://cxf.apache.org/jaxws"
	xsi:schemaLocation=
"http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
 http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"
default-lazy-init="true">

	<import resource="classpath:META-INF/cxf/cxf.xml" />
	<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
	<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
	
	<jaxws:endpoint id="dropDownOptionsService"
		implementor="net.sasuke.services.impl.DropDownOptionsImpl"
address="/DropDownOptions" />
</beans>

Is there any way to not load all the services present in the CXF config
file? Any pointers, suggestions would be much appreciated.

-sasuke
-- 
View this message in context: http://www.nabble.com/Load-services-on-demand-tp25196939p25196939.html
Sent from the cxf-user mailing list archive at Nabble.com.