Apache Geronimo > Discussion Forums  User List | Dev List | Wiki | Issue Tracker  

Is there anybody using Geronimo and Camel?

View: New views
3 Messages — Rating Filter:   Alert me  

Is there anybody using Geronimo and Camel?

by Antonio Fornié :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello!

Is there anybody using Geronimo and Camel? Is the integration easy? Is it working well?

Thank you very much.

Re: Is there anybody using Geronimo and Camel?

by frapien :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Antonio Fornié wrote:
Is there anybody using Geronimo and Camel? Is the integration easy? Is it working well?
just uncomment the following part in the $GERONIMO_HOME\var\activemq\conf\activemq.xml
    <!--
       Lets deploy some Enterprise Integration Patterns inside the ActiveMQ Message
       Broker. For more details see:
     
       http://activemq.apache.org/enterprise-integration-patterns.html
   
    <camelContext id="camel" xmlns="http://activemq.apache.org/camel/schema/spring">
     -->
     <!--</camelContext>-->

        <!-- 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>

An you cab send a message from queue example.A to queue example.B
see also http://activemq.apache.org/enterprise-integration-patterns.html



Re: Is there anybody using Geronimo and Camel?

by frapien :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

frapien wrote:
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+-+BeanDefinitionStoreException
BeanDefinitionStoreException
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/spring

any help for this