You should use & instead of & if you are specify an URI in Spring configuration file.

On Wed Jul 18 17:57:54 2012, cmland wrote:
my route config like this :

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xmlns:camel="http://camel.apache.org/schema/spring";
        xsi:schemaLocation="
         http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
         http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd";>

<camelContext trace="false" xmlns="http://camel.apache.org/schema/spring"; >
                <route >
                        <from uri="direct:start" />
                        <camel:to
uri=&quot;smtp://&lt;hostname>?username=<user>&password=<pw>&from=<senderEmail>&to=<receiverEmail>"
/>
                </route>
        </camelContext>
</beans>

     there is a tip like this :The reference to entity "password" must end
with the ';' delimiter.
     If i replace '&' with ';', the tip disappear.but when i  send email ,
there is a org.springframework.mail.MailAuthenticationException, because
finally the username value :<user>&password.... ,the paassword value:null
i think the url config is wrong,any suggesttion ?

by the way camel-versrion :2.8.4

--
View this message in context: 
http://camel.465427.n5.nabble.com/the-stmp-url-error-tp5716192.html
Sent from the Camel - Users mailing list archive at Nabble.com.




--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
        http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Reply via email to