Camel has only been integrated in to the the up coming ActiveMQ 5.x
version.. If you want, try a snapshot build from here:

http://people.apache.org/repo/m2-snapshot-repository/org/apache/activemq/apache-activemq/5.0-SNAPSHOT/

On 8/13/07, DominicTulley <[EMAIL PROTECTED]> wrote:
>
> Hi, I'm hoping someone can point me in the right direction here.
>
> I'm trying to write my own RouteBuilder (java class, extends RouteBuilder)
> and then use it within a CamelContext hosted in ActiveMQ 4.1.1.  I've had
> "static routing" working using camelcontext elements in activemq.xml but I
> can't persuade it to load and configure a RouteBuilder implementation.
>
> So far I have a dead simple RouteBuilder:
>
> =====================================
> package org.dominic
>
> import org.apache.camel.builder.RouteBuilder;
>
> public class DomsRouteBuilder extends RouteBuilder  {
>    public DomsRouteBuilder()   {
>       System.out.println("\n*\n*\n*\n*\n*\n*\nDomsRouter instantiated");
>    }
>
>    public void configure()   {
>       System.out.println("*\n*\n*\n*\nConfiguring Route Builder");
>    };
> }
>
> ==========================
>
> I compile this and put it in a jar file which I dump in ActiveMQ's lib
> directory.
>
> Next I modify activemq.xml and add
>
> =====================
>   <camelContext id="camel"
> xmlns="http://activemq.apache.org/camel/schema/spring";
> packages="org.dominic">
> </camelContext>
> =====================
>
> After this, I hope to start ActiveMQ and see my strings get printed out but
> I see nothing...
>
> I have gone further than this (putting in a proper route that forwards from
> one queue to another) but I have cut the example right down for this post
> since I believe I have a deployment problem.   Turning on full debugging in
> ActiveMQ gives no mention of my class name at all - I'm guessing it just
> isn't being picked up for some reason.
>
> I'm using what was the latest 1.1 build (built on 10 August) although I
> think a nightly build from today has appeared now.  I could drop down to the
> 1.0 release if this looks like an issue with 1.1 (I realise it's early days
> for 1.1 still) but I do need one of the bug fixes which is in 1.1
> ultimately.
>
> Any suggestions gratefully received!
>
> Thanks,
>
> -Dominic
> --
> View this message in context: 
> http://www.nabble.com/Struggling-to-deploy-custom-RouteBuilder-in-ActiveMQ-4.1.1-tf4261073s22882.html#a12125795
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>


-- 
Regards,
Hiram

Blog: http://hiramchirino.com

Reply via email to