You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by sprabu <sa...@gmail.com> on 2013/06/20 13:33:23 UTC

Dynamic uri not working

Hi,
When i try to construct dynamic URI. Its not working here, i'm trying
configure gmail USER NAME and PASSWORD details dynamically from header. Buts
its not working for me. Please help me to come out of it. Also i referred
the following link to do this, even then its not working.

http://camel.465427.n5.nabble.com/Dynamic-URI-creation-in-apache-camel-td5055155.html

		
This is the code i used,

 <to 
uri="smtp://{{SMTP_ADDRESS}}:{{PORT_NUMBER}}?username=${header.USER_EMAIL_ID}&amp;password=${header.MAIL_PWD}&amp;subject=${header.BILLING_EMAIL_SUBJECT}&amp;mail.smtp.starttls.enable=true"
/>





--
View this message in context: http://camel.465427.n5.nabble.com/Dynamic-uri-not-working-tp5734434.html
Sent from the Camel - Users mailing list archive at Nabble.com.

RE: Dynamic uri not working

Posted by Diether <di...@optis.be>.
Have you looked at the link Claus send?
http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html

You cannot use dynamic uri in a <to>. You have to us reciepientlist for it.

________________________________
Van: sprabu [via Camel] [ml-node+s465427n5734623h60@n5.nabble.com]
Verzonden: maandag 24 juni 2013 9:50
Aan: Wuyts Diether
Onderwerp: Re: Dynamic uri not working

Hi,
Though i'm using the provided uri, its not getting the values from header. I don't know, why? Please help me to come out of it. Its highly impacting the progress of my task. Also validate the given URI, where i'm doing mistake??

<to  uri="smtp://{{SMTP_ADDRESS}}:{{PORT_NUMBER}}?username=${header.USER_EMAIL_ID}&amp;password=${header.MAIL_PWD}&amp;subject=${header.BILLING_EMAIL_SUBJECT}&amp;mail.smtp.starttls.enable=true"
/>

Thanks
Prabu

________________________________
If you reply to this email, your message will be added to the discussion below:
http://camel.465427.n5.nabble.com/Dynamic-uri-not-working-tp5734434p5734623.html
To start a new topic under Camel - Users, email ml-node+s465427n465428h15@n5.nabble.com
To unsubscribe from Camel - Users, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=ZGlldGhlci53dXl0c0BvcHRpcy5iZXw0NjU0Mjh8OTE4NjI3OTg5>.
NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: http://camel.465427.n5.nabble.com/Dynamic-uri-not-working-tp5734434p5734632.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Dynamic uri not working

Posted by Christian Müller <ch...@gmail.com>.
Hello Prabu!

To make it clear, it's not designed to work in the way you use it.
To fulfill your requirement, you should use it in the way described at
http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html

Best,
Christian
-----------------

Software Integration Specialist

Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Mon, Jun 24, 2013 at 9:50 AM, sprabu <sa...@gmail.com> wrote:

> Hi,
> Though i'm using the provided uri, its not getting the values from header.
> I
> don't know, why? Please help me to come out of it. Its highly impacting the
> progress of my task. Also validate the given URI, where i'm doing mistake??
>
> <to
>
> uri="smtp://{{SMTP_ADDRESS}}:{{PORT_NUMBER}}?username=${header.USER_EMAIL_ID}&amp;password=${header.MAIL_PWD}&amp;subject=${header.BILLING_EMAIL_SUBJECT}&amp;mail.smtp.starttls.enable=true"
> />
>
> Thanks
> Prabu
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Dynamic-uri-not-working-tp5734434p5734623.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: Dynamic uri not working

Posted by sprabu <sa...@gmail.com>.
Hi,
Though i'm using the provided uri, its not getting the values from header. I
don't know, why? Please help me to come out of it. Its highly impacting the
progress of my task. Also validate the given URI, where i'm doing mistake??

<to 
uri="smtp://{{SMTP_ADDRESS}}:{{PORT_NUMBER}}?username=${header.USER_EMAIL_ID}&amp;password=${header.MAIL_PWD}&amp;subject=${header.BILLING_EMAIL_SUBJECT}&amp;mail.smtp.starttls.enable=true"
/> 

Thanks
Prabu



--
View this message in context: http://camel.465427.n5.nabble.com/Dynamic-uri-not-working-tp5734434p5734623.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Dynamic uri not working

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

See this FAQ
http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html

On Thu, Jun 20, 2013 at 1:33 PM, sprabu <sa...@gmail.com> wrote:
> Hi,
> When i try to construct dynamic URI. Its not working here, i'm trying
> configure gmail USER NAME and PASSWORD details dynamically from header. Buts
> its not working for me. Please help me to come out of it. Also i referred
> the following link to do this, even then its not working.
>
> http://camel.465427.n5.nabble.com/Dynamic-URI-creation-in-apache-camel-td5055155.html
>
>
> This is the code i used,
>
>  <to
> uri="smtp://{{SMTP_ADDRESS}}:{{PORT_NUMBER}}?username=${header.USER_EMAIL_ID}&amp;password=${header.MAIL_PWD}&amp;subject=${header.BILLING_EMAIL_SUBJECT}&amp;mail.smtp.starttls.enable=true"
> />
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Dynamic-uri-not-working-tp5734434.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
www.camelone.org: The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen