Hi All,
I have trying to alter the sample 4 (Error handler) to sending the error as
mail.
But unfortunately I could not receive the mail
*I hope my mailto configuration on axis2.xml and my proxy services are fine
.*
*My axis.xml I have un comment these following stuffs .*
<transportReceiver name="mailto"
class="org.apache.axis2.transport.mail.MailTransportListener">
<!-- configure any optional POP3/IMAP properties
check com.sun.mail.pop3 and com.sun.mail.imap package documentation
for more details-->
</transportReceiver>
<transportSender name="mailto"
class="org.apache.axis2.transport.mail.MailTransportSender">
<parameter name="mail.smtp.host">smtp.gmail.com</parameter>
<parameter name="mail.smtp.port">587</parameter>
<parameter name="mail.smtp.starttls.enable">true</parameter>
<parameter name="mail.smtp.auth">true</parameter>
<parameter name="mail.smtp.user">synapse.demo.0</parameter>
<parameter name="mail.smtp.password">mailpassword</parameter>
<parameter name="mail.smtp.from">[email protected]
</parameter>
</transportSender>
*and re run my sample as *
./wso2esb-samples.sh sn 4
*Then I run the sample as with errors on MSFT *
ant stockquote -Daddurl=
http://localhost:9000/services/SimpleStockQuoteService -Dtrpurl=
http://localhost:8280/ -Dsymbol=*MSFT*
*This is my proxy service *
<?xml version="1.0" encoding="UTF-8"?>
<sequence name="main" xmlns="http://ws.apache.org/ns/synapse">
<in>
<switch source="//m0:getQuote/m0:request/m0:symbol"
xmlns:m0="http://services.samples" xmlns:ns="
http://org.apache.synapse/xsd">
<case regex="IBM">
<send>
<endpoint>
<address uri="
http://localhost:9000/services/SimpleStockQuoteService"/>
</endpoint>
</send>
</case>
<case regex="MSFT">
*<send>*
* <endpoint key="bogus"/>*
* </send>*
* <property name="Subject" scope="transport" value="An Error
Occurred in the ESB"/>*
* <property name="OUT_ONLY" value="true"/>*
* <send>*
* <endpoint>*
* <address uri="mailto:[email protected]
<[email protected]>"/>*
* </endpoint>*
* </send>*
</case>
<case regex="SUN">
<sequence key="sunSequence"/>
</case>
</switch>
<drop/>
</in>
<out>
<send/>
</out>
</sequence>
I feel all configurations and settings are fine. But what the thing block
me to deliver the mail.
Thank you
--
Nifras Ismail
Associate Software Engineer
WSO2
Email : [email protected]
Mobile : 0094 77 89 90 300
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev