cancel
Showing results for 
Search instead for 
Did you mean: 

JNDI mail/Session

campa
Champ in-the-making
Champ in-the-making
Hi,

I'd like to use a Mail Session via JNDI, there is a way for using it in activiti ?

I have searched, but seems that in the
ProcessEngineConfigurationImpl
is not possible , do you confirm ?

There are another way, or I need to extend activiti ?

Bye
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
Nothing out of the box… Looks like you should extend the MailActivityBehaviour, which has a method that sets the needed info on the Email-objects (commons-email). You're implementation should, instead of using the properties in the configuration, ask MailSession from JNDI.

Work case, you should write you own class (if MailActivitybehaviour) isn't flexible enough (not sure how the MailSession is plugged).