I have the following XML I'd like to deploy both in an OSGi container, and a
non-OSGi container.  To deploy in the OSGi container, I have to use the
"osgi" schema so that the "quartz" component is resolved to the camel-quartz
bundle.

To deploy in a non-OSGi container, I had to add spring-osgi-core-1.1.2.jar
and org.osg.core-1.2.0.jar to the classpath.  It appears to be working, but
I wanted to double-check with the experts.  Can you think of any
side-effects I might see from deploying this way vs. deploying w/ the "
http://activemq.apache.org/camel/schema/spring"; schema?

<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:camel="http://activemq.apache.org/camel/schema/spring";
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
       http://activemq.apache.org/camel/schema/spring
http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
       http://activemq.apache.org/camel/schema/osgi
http://activemq.apache.org/camel/schema/osgi/camel-osgi.xsd";>

  <camelContext xmlns="http://activemq.apache.org/camel/schema/osgi";>
    <camel:route>
      <camel:from uri="quartz://groupName/timerName/0,15,30,45/*/*/*/*/$" />
      <camel:to uri="log:ExampleRouter"/>
    </camel:route>
  </camelContext>

</beans>

- aaron

Reply via email to