SwitchYard - Mail component
srini8881 Sep 4, 2013 8:17 AMHi,
I am using a camel route which in turn routes the request to a SY bean service. This bean service is being referenced with SY Mail component whose configuration details are something like below:
<?xml version="1.0" encoding="UTF-8"?>
<switchyard xmlns="urn:switchyard-config:switchyard:1.0" xmlns:bean="urn:switchyard-component-bean:config:1.0" xmlns:camel="urn:switchyard-component-camel:config:1.0" xmlns:file="urn:switchyard-component-camel-file:config:1.0" xmlns:ftp="urn:switchyard-component-camel-ftp:config:1.0" xmlns:mail="urn:switchyard-component-camel-mail:config:1.0" xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912" xmlns:sql="urn:switchyard-component-camel-sql:config:1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="SOAIntegrationServices" targetNamespace="urn:my.soa:SOAIntegrationServices:1.0">
<sca:composite name="SOAIntegrationServices" targetNamespace="urn:my.soa:SOAIntegrationServices:1.0">
<sca:component name="FileInboundRouter-route">
------
<sca:reference name="ErrorNotificationPublisher" multiplicity="0..1" promote="NotificationPublisherBean/ErrorNotificationPublisher">
<sca:interface.java interface="my.soa.publisher.NotificationPublisher"/>
<mail:binding.mail secure="true">
<mail:contextMapper/>
<mail:host>smtp.gmail.com</mail:host>
<mail:port>587</mail:port>
<mail:username>test@gmail.com</mail:username>
<mail:password>password</mail:password>
<mail:connectionTimeout>2000</mail:connectionTimeout>
<mail:produce>
<mail:subject>SOA Error</mail:subject>
<mail:from>test@gmail.com</mail:from>
<mail:to>user@gmail.com</mail:to>
</mail:produce>
</mail:binding.mail>
</sca:reference>
-----
-----
</sca:component>
</sca:composite>
</switchyard>
The issue is for some reasons the email is not being sent. There is no exception. The bean service is being called properly. But there is service invocation. The bean service which I have created here is on the lines of the quick start mail component example.
Any help would definitely help.
NOTE: For the purpose of testing, I am using gmail as smtp. Also tried to connect to local SMTP server in my work environment. No change in the behavior. Still does not work.
Thanks
Srini.