1 Reply Latest reply on Sep 6, 2013 2:45 PM by Keith Babo

    SwitchYard - Mail component

    Srinivasan Rengan Newbie



      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:subject>SOA Error</mail:subject>












      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.




        • 1. Re: SwitchYard - Mail component
          Keith Babo Master

          What do you see in the log - errors, stack traces?  If you don't see anything helpful in the log, then:


          1) Enable message tracing to see monitor the messages as they move across the bus.  Take note if the processing stops short of your reference binding or if there are exceptions reported in the trace output.


          2) Turn on DEBUG logging for org.switchyard and org.apache.camel and look for activity around when the reference mail binding is invoked.


          3) Attach an application which can be used to reproduce the issue to the thread.