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
mail.from=virendag@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