1 Reply Latest reply on Feb 17, 2017 1:39 PM by Donato Marrazzo

    Registering the Email Service Task

    Fernando Pena Cantu Newbie

      Hello, I am trying to use the Email service task. I register the email task by following https://access.redhat.com/webassets/avalon/d/Red_Hat_JBoss_BPM_Suite-6.4-User_Guide-en-US/Red_Hat_JBoss_BPM_Suite-6.4-Us… page 227.

      I created a simple project which just sends an email. However when I try to run it I get the following error:

      java.lang.RuntimeException: Connection failure

      org.jbpm.process.workitem.email.SendHtml.sendHtml(SendHtml.java:81) [jbpm-workitems-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2] .....

       

       

      I believe the problem must be in a configuration between the parameters in the EmailWorkItemHandler : new org.jbpm.process.workitem.email.EmailWorkItemHandler("localhost", "25","me@localhost","password")

      and the configuration of the standalone.xml file:

      <system-properties>    
        <property name="org.kie.mail.session" value="java:jboss/mail/mail/jbpmMailSession"/>
      </system-properties>
      ....
       <subsystem xmlns="urn:jboss:domain:mail:1.2">
                  <mail-session name="default" jndi-name="java:jboss/mail/Default">
                      <smtp-server outbound-socket-binding-ref="mail-smtp" tls="true">
                            <login name="email@gmail.com" password="1234"/>
                      </smtp-server>
                  </mail-session>
        </subsystem>
      ....
      <outbound-socket-binding name="mail-smtp">
        <remote-destination host="smtp.gmail.com" port="587"/>
      </outbound-socket-binding>
      

       

       

      I have attached my project, Standalone.xml file and my server log file.