>this causes the following exception: >Exception in thread "main" >org.springframework.beans.factory.BeanDefinitionStoreException: Unrecognized >xbean namespace mapping: http://activemq.apache.org/camel/schema/spring
Assuming you run a maven project, have you added camel-spring as a dependency?