8.3.1 Create JavaMail Session

This topic explains the systematic instructions to create JavaMail session.

To configure the JavaMail session, follow the steps below.

  1. Login to WebLogic Remote Console of the WebLogic application server.
  2. In the Edit Tree, go to Services, then Mail Sessions.
  3. Click New.
  4. Specify a Name and a JNDI Name for the mail session.
    Applications use the JNDI Name to look up the mail session. For example, if you enter myMailSession as the JNDI name, applications perform the following look up: InitialContext ic = new InitialContext();Session session = (Session) ic.lookup("myMailSession");
  5. Click Create.
  6. In the Session Username field, specify the user account to use to create an authenticated JavaMail session. Then, in the Session Password field, enter he password for the user account.
  7. On the Targets tab, move the servers or clusters that you want this mail session to target over to Chosen.
  8. On the Java Mail Properties tab, in the Java Mail Properties table, click + to add a new row. Add the properties listed in below table
    • Double-click the cell under Properties Name and specify a name for the property.
    • Double-click the cell under Properties Value and specify a value for the property.
  9. Click Save.

    Table 8-2 Create a New Mail Session

    Field Description
    Name Specify the name as FCUBSMailSession.
    JNDI Name Specify the JNDI Name as mail/FCUBSMail.

    Note:

    This JNDI name needs to be maintained in fcubs.properties file with encrypted format.
    Java Mail Properties Specify the following mail properties.
    • mail.host=<HOST_MAIL_SERVER>
    • mail.smtps.port=<SMTPS_SERVER_PORT> (For example: 1010)
    • mail.transport.protocol=<MAIL_TRANSFER_PROTOCOL>(For Example: smtps)
    • mail.smtps.auth=true
    • mail.smtps.host==<HOST_SMTPS_MAIL_SERVER>
  10. fcubs.properties file needs to be updated with the encrypted values of
    • SMTP_HOST
    • SMTP_USER
    • SMTP_PASSWORD
    • SMTP_JNDI

    This can be achieved using the Oracle Banking UBS Installer.