Antonio Fornié wrote:
Is there anybody using Geronimo and Camel? Is the integration easy? Is it working well?
unfortunately Geronimo 2.2 is using ActiveMQ 5.3, but with the wrong namespaces for camel 2.0
and do not include activemq-all-5.3.0.jar only activemq-core-5.3.0.jar
example should be
<camelContext id="camel" xmlns="
http://camel.apache.org/schema/spring">
<!-- You can use a <package> element for each root package to search for Java routes -->
<package>org.foo.bar</package>
<!-- You can use Spring XML syntax to define the routes here using the <route> element -->
<route>
<from uri="activemq:example.A"/>
<to uri="activemq:example.B"/>
</route>
</camelContext>
and namespaces shpuld be replaced activemq.apache.org/camel to camel.apache.org
http://cwiki.apache.org/confluence/display/CAMEL/Exception+-+BeanDefinitionStoreExceptionBeanDefinitionStoreException
If you use ActiveMQ 5.x that ships with Camel 1.x and you upgrade it to use Camel 2.0 you can get an exception while starting.
ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: org.springframework.beans.factory.BeanDefinitionStoreException: Unrecognized xbean namespace mapping:
http://activemq.apache.org/camel/schema/spring
The reason is basically that the XML namespace changed in Camel 2.0 as explained below.
When Camel went from an activemq subproject to a top level apache project, they changed the URIs for their xml schemas to reflect this in Camel 2.0.
To fix this, in activemq.xml change all occurrences of:
http://activemq.apache.org/camel/schema/spring
to
http://camel.apache.org/schema/spring
and
http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
to
http://camel.apache.org/schema/spring/camel-spring.xsd
These will probably occur in the xsi:schemaLocation attribute of the top level beans tag (both) and in the xmlns attribute in the camelContext element (just the first).
got error
now in the FAILED state: abstractName="org.apache.geronimo.configs/activemq-bro
ker/2.2-SNAPSHOT/car?ServiceModule=org.apache.geronimo.configs/activemq-broker/2
.2-SNAPSHOT/car,j2eeType=JMSServer,name=DefaultActiveMQBroker"
org.springframework.beans.factory.BeanDefinitionStoreException: Unrecognized xbe
an namespace mapping:
http://camel.apache.org/schema/springany help for this