On 06/02/2008, Er1c <[EMAIL PROTECTED]> wrote:
>
> Going back to a java version I think I got something working:
>
> from("activemq:queue:OutgoingEmail").
>
> recipientList(el("smtp://localhost#${in.headers.deliver_to}"));
>
> Tailing the mail.log it looks like the delivery is being sent to the correct
> locations!
Awesome! :)
> I'd love to figure out howto do this in Spring XML - but I think I figured
> out the growing pains of compiling this with Maven/adding the
> dependencies/getting JUEL/etc.
Yeah - I think classpaths are probably the biggest issue of working
with Camel...
I've not tried it, but would the following work...
<camelContext xmlns="http://activemq.apache.org/camel/schema/spring">
<route>
<from uri="activemq:queue:OutgoingEmail"/>
<recipientList>
<el>smtp://localhost#${in.headers.deliver_to}</el>
</recipientList>
</route>
</camelContext>
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://open.iona.com