Oracle SOA Suite 11g supports a number of different notification channels through the User Messaging Service (UMS). This blog provides a step-by-step guide for configuring and testing email notification. Once email notification has been configured, emails can be sent from SOA Suite components such as BPEL processes and Human Tasks. For this example, Gmail will be used as the mail server.
To support email notification from SOA Suite 11g the UMS email driver and workflow notification properties to be configured with the mail server details. This can be done through the Enterprise Manager Fusion Middleware Control console (e.g. http://localhost:7001/em) as follows:
OutgoingMailServer - The SMTP hostname
OutgoingMailServerPort - The SMTP port
OutgoingMailServerSecurity - The type of security (e.g. SSL)
OutgoingUsername - The mail user account
OutgoingPassword - The mail user password
Before SOA Suite can send emails with Gmail there are some SSL certificates that will need to be imported. This step can be ignored if sending from an alternative mail server that does not require SSL.
openssl s_client -connect host:port
keytool -import -alias AliasName -keystore KeystoreLocation -file CertificateLocation
This can be done in Arguments field available under the Server Start tab for the SOA Server (e.g. soa_server1) in the WebLogic Administration Console (e.g. http://localhost:7001/console) or by adding the properties to the DOMAIN_HOME/bin/setDomainEnv.cmd (or setDomainEnv.sh). For example:
set EXTRA_JAVA_PROPERTIES=%EXTRA_JAVA_PROPERTIES% -Djavax.net.ssl.trustStore=%WL_HOME%\server\lib\gmail-keystore.jks -Djavax.net.ssl.trustStorePassword=changeit
Now that we have configured outbound email notification, we want to test our configuration easily without having to create a BPEL process or human task to do this. Fortuntately, we can do this from Enterprise Manager Fusion Middleware Control.
If you encounter an issue with the outgoing email notification, it is a good idea to check the SOA server log for error messages. There are log files available at:
Furthermore, it is a good idea to tick the UMS email driver debug flag.
Listed below are some common errors with their solution:
thanks a lot
Great writeup. It helped us to configuring the email notification.
Thanks a lot
i want to subscribe
Due to your explanation, I am able to send an email from both of my environments. So thank you!
My question is if each of the environments has it's own mail account- how can I spare myself the process of going to the bpel mail activity and redefining the From account every time I want to publish to a different environment?
Your blog very consistent!!!! Thank Yuo!
Gr8 article. It worked for us. Thanks
openssl x509 -outform der -in imap.txt -out output.der
...where imap.txt is the certificate you downloaded within -- BEGIN CERTIFICATE -- and -- END CERTIFICATE --.
Then use the DER-encoded output certificate (output.der) in the keytool.
Your blog very good sir, I need a help while configure Key store which password I have to give . I am getting following Error msg :
keytool error: java.lang.Exception: Input not an X.509 certificate.
Thanks in Advance .
|Subscribe to the Rubicon Red Blog|