[jboss-user] [jBPM] - Unable to set the mail configuration properties in JBPM 4.3

virendra agarwal do-not-reply at jboss.com
Wed Jun 23 01:14:30 EDT 2010


virendra agarwal [http://community.jboss.org/people/viren_agarwal_rsg] replied to the discussion

"Unable to set the mail configuration properties in JBPM 4.3"

To view the discussion, visit: http://community.jboss.org/message/549221#549221

--------------------------------------------------------------
Hi Maciej,
Thanks for your effort. I tried your approach but it didnt work for me i got the same response.
Here it is what i did.
jbpm.mail.properties

mail.transport.protocol=smtp
mail.smtp.auth=true
mail.smtp.host=smtp.rsgsystems.com
mail.smtp.port=25
 mailto:mail.from=virendag at rsgsystems.com mail.from=virendag at rsgsystems.com
mail.smtp.quitwait=false
mail.debug=true

jbpm.cfg.xml

<?xml version="1.0" encoding="UTF-8"?>

<jbpm-configuration>

  <import resource="jbpm.default.cfg.xml" />
  <import resource="jbpm.businesscalendar.cfg.xml" />
  <import resource="jbpm.tx.hibernate.cfg.xml" />
  <import resource="jbpm.jpdl.cfg.xml" />
  <import resource="jbpm.bpmn.cfg.xml" />
  <import resource="jbpm.identity.cfg.xml" />
  <!-- Job executor is excluded for running the example test cases. -->
  <!-- To enable timers and messages in production use, this should be included. -->
  <!--
  <import resource="jbpm.jobexecutor.cfg.xml" />
  -->
  <import resource="jbpm.mail.templates.examples.xml" />
  <mail-session>
      <mail-server>
        <session-properties resource="jbpm.mail.properties" />
        <authenticator auto-wire="true"/>
      </mail-server>
    </mail-session>
</jbpm-configuration>

And my authenticator class
package org.jbpm.examples;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class MyAuthenticator extends Authenticator {
     
    protected PasswordAuthentication getPasswordAuthentication() {
        System.err.println("Testing working");
      return new PasswordAuthentication("xxxx", "xxxx");

    }

}

Other things are same.
But wjhen i run this code it didnt work i saw that it is not calling MyAuthenticator

Please suggest me how can i make this working using this code.
Thanks and Regards
Virendra

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/549221#549221]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100623/4a78f04b/attachment-0001.html 


More information about the jboss-user mailing list