Sorry if this appears twice, my first attempt got rejected as spam :)

Claus,
Do you have to put the template inside the context?  Is this a 2.0
change?  I've always placed it outside.  As you can't define a context
ref it seemed effectively singleton and so didn't matter where you
created it.  This is also how I wrote it in the Camel Spring tutorial on
the wiki.  If it is considereed incorrect then I can update it.

Thanks,
Martin


----- Original message -----
From: "Claus Ibsen" <claus.ib...@gmail.com>
To: users@camel.apache.org
Date: Wed, 3 Jun 2009 06:22:30 +0200
Subject: Re: using ProducerTemplate for JMS with Spring


Hi welcome on board the Camel ride.

You almost got it. The camel:template XML tag should be inside the
camel:context XML tag. So it should be:

        <camel:camelContext id="camel">
            <camel:template id="camelTemplate"/>
        </camel:camelContext>

Reply via email to