Java Code Examples for org.apache.commons.mail.Email#setMailSessionFromJNDI()

The following examples show how to use org.apache.commons.mail.Email#setMailSessionFromJNDI() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
protected void setEmailSession(Email email, String mailSessionJndi) {
  try {
    email.setMailSessionFromJNDI(mailSessionJndi);
  } catch (NamingException e) {
    throw new ActivitiException("Could not send email: Incorrect JNDI configuration", e);
  }
}
 
Example 2
protected void setEmailSession(Email email, String mailSessionJndi) {
  try {
    email.setMailSessionFromJNDI(mailSessionJndi);
  } catch (NamingException e) {
    throw new ActivitiException("Could not send email: Incorrect JNDI configuration", e);
  }
}
 
Example 3
protected void setEmailSession(Email email, String mailSessionJndi) {
    try {
        email.setMailSessionFromJNDI(mailSessionJndi);
    } catch (NamingException e) {
        throw new FlowableException("Could not send email: Incorrect JNDI configuration", e);
    }
}
 
Example 4
protected void setEmailSession(Email email, String mailSessionJndi) {
    try {
        email.setMailSessionFromJNDI(mailSessionJndi);
    } catch (NamingException e) {
        throw new FlowableException("Could not send email: Incorrect JNDI configuration", e);
    }
}
 
Example 5
protected void setEmailSession(Email email, String mailSessionJndi) {
    try {
        email.setMailSessionFromJNDI(mailSessionJndi);
    } catch (NamingException e) {
        throw new ActivitiException("Could not send email: Incorrect JNDI configuration", e);
    }
}