Hi , Thanks for your quick reply. According to your suggestion I have changed my quartz.xml with adding "osgi:service" from "servicemix-quartz.xml"(ie ; apache-servicemix-4.2.0/data/jbi/servicemix-quartz/install/META-INF/spring/servicemix-quartz.xml) like the following :
Please validate the following "quartz.xml" if I miss something , because still I am getting the same error (as mentioned to the first post of this thread) when internet connection is off. --------------------------quartz.xml-------------------------------- <?xml version="1.0"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:osgi="http://www.springframework.org/schema/osgi" xmlns:ctx="http://www.springframework.org/schema/context" xmlns:osgix="http://www.springframework.org/schema/osgi-compendium" xmlns:util="http://www.springframework.org/schema/util" xmlns:quartz="http://servicemix.apache.org/quartz/1.0" xmlns:b="http://test.com/amh" xsi:schemaLocation=" http://www.springframework.org/schema/osgi file:deploy/spring-osgi.xsd http://www.springframework.org/schema/beans file:deploy/spring-beans.xsd http://servicemix.apache.org/quartz/1.0 file:deploy/servicemix-quartz.xsd http://www.springframework.org/schema/context file:deploy/spring-context.xsd http://www.springframework.org/schema/util file:deploy/spring-util.xsd http://www.springframework.org/schema/osgi-compendium file:deploy/spring-osgi-compendium.xsd"> <quartz:endpoint service="b:schedulerService" endpoint="endpoint" targetService="b:scheduler"> <quartz:trigger> <quartz:simple repeatInterval="60000" startDelay="60000" /> </quartz:trigger> </quartz:endpoint> <bean class="org.apache.servicemix.common.osgi.EndpointExporter" /> <osgi:service ref="servicemix-quartz" interface="javax.jbi.component.Component"> <service-properties> <entry key="NAME" value="servicemix-quartz" /> <entry key="TYPE" value="service-engine" /> </service-properties> </osgi:service> <bean id="servicemix-quartz" class="org.apache.servicemix.quartz.QuartzComponent"> <property name="executorFactory" ref="executorFactory" /> </bean> <bean id="executorFactory" class="org.apache.servicemix.executors.impl.ExecutorFactoryImpl"> <property name="defaultConfig"> <bean class="org.apache.servicemix.executors.impl.ExecutorConfig"> <property name="corePoolSize" value="${threadPoolCorePoolSize}"/> <property name="maximumPoolSize" value="${threadPoolMaximumPoolSize}"/> <property name="queueSize" value="${threadPoolQueueSize}"/> </bean> </property> </bean> <osgix:cm-properties id="cmProps" persistent-id="org.apache.servicemix.components.quartz"> <prop key="threadPoolCorePoolSize">8</prop> <prop key="threadPoolMaximumPoolSize">32</prop> <prop key="threadPoolQueueSize">256</prop> </osgix:cm-properties> <ctx:property-placeholder properties-ref="cmProps" /> </beans> ------------------------------------------------------------------------------------------ -- View this message in context: http://servicemix.396122.n5.nabble.com/Problem-registering-quartz-service-tp3313453p3322148.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
