THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
You can use Java Code to define your RouteBuilder implementations, then in your spring.xml you can specify the Java package names to search for (recursively) to find your routes such as in the following example.
Wiki Markup |
---|
{snippet:id=example|lang=xml|url=activemq/camel/trunk/camel-spring/src/test/resources/org/apache/camel/spring/camel_context_factory_bean_testcamelContextFactoryBeanTest.xml} |
Or if you prefer you can use the Spring 2.0 XML Namespaces approach
Wiki Markup |
---|
{snippet:id=example3|lang=xml|url=activemq/camel/trunk/camel-spring/src/test/resources/org/apache/camel/spring/camel_context_factory_bean_testcamelContextFactoryBeanTest.xml} |
Using Spring XML
You can use Spring 2.0 XML configuration to specify your Xml Configuration for Routes such as in the following example.
Wiki Markup |
---|
{snippet:id=example|lang=xml|url=activemq/camel/trunk/camel-spring/src/test/resources/org/apache/camel/spring/routingUsingCamelContextFactoryWithNamespacesTestroutingUsingCamelContextFactory.xml} |