[jboss-user] [jBPM] - Re: About MailSessionImpl

Michael Wohlfart do-not-reply at jboss.com
Wed Sep 15 06:10:20 EDT 2010

Michael Wohlfart [http://community.jboss.org/people/mwohlf] created the discussion

"Re: About MailSessionImpl"

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

You can use your own mail session by implementing the org.jbpm.pvm.internal.email.spi.MailSession interface and leaving out the <mail-session /> tag in your jbpm.cfg.xml, instead provide a <object class="your.own.MailSessionImpl"> each time a mail needs to be send the MailSession.send(Collection<Message> emails) method will be called and you can do whatever you want with the emails. Extending jBPM4's MailSessionImpl is a bit more tricky, you somehow need to inject the mailServers as far as i can tell, best take a look at the MailSessionBinding to check how this can be done.

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100915/6c703d27/attachment.html 

More information about the jboss-user mailing list