You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by Arin <ar...@gmail.com> on 2009/05/28 18:12:35 UTC

Need to setup vm template dynamically

Hi,

Currently,I have two different Mail Queue for two different types of
notification and two corresponding velocity template to create the mail
template.  Now my question is:

1. How Can we select different velocity template based on the notification
type?
2. How we set from, subject,to and body dynamically to the velocity
template, so that based to the notification I can change the values.

Kindly suggest.

Regards,
Arin
-- 
View this message in context: http://www.nabble.com/Need-to-setup-vm-template-dynamically-tp23764960p23764960.html
Sent from the Camel Development mailing list archive at Nabble.com.


Re: Need to setup vm template dynamically

Posted by Claus Ibsen <cl...@gmail.com>.
On Thu, May 28, 2009 at 6:12 PM, Arin <ar...@gmail.com> wrote:
>
> Hi,
>
> Currently,I have two different Mail Queue for two different types of
> notification and two corresponding velocity template to create the mail
> template.  Now my question is:
>
> 1. How Can we select different velocity template based on the notification
> type?
You can use the Content Based Router EIP pattern:
http://camel.apache.org/content-based-router.html



> 2. How we set from, subject,to and body dynamically to the velocity
> template, so that based to the notification I can change the values.
See the email sample in the velocity page:
http://camel.apache.org/velocity.html


>
> Kindly suggest.
>
> Regards,
> Arin
> --
> View this message in context: http://www.nabble.com/Need-to-setup-vm-template-dynamically-tp23764960p23764960.html
> Sent from the Camel Development mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus