Tuesday, April 13, 2010

Email notification in SOA Suite 11g

AIM
=======
This article will help us to understand and design how to use email notification in SOA Suite 11g with your email account like gmail,yahoo or your official email account.


Pre-requisite
=============
You should have installed SOA suite 11g preferably the latest 11.1.1.2 and the Jdeveloper 11.1.1.2.You can follow my previous post for all these set ups.

Configuration
=============

Log in to the em console

http://host:port/em

Now expand Farm_SOA_domain

and expand User Messaging service

right click on usermessagingdriver-email as shown below




Now in the next screen which will come up with all the properties



Now here we need to change following parameters for email notification

* OutgoingMailServer –
* OutgoingMailServerPort –
* OutgoingMailServerSecurity –
* OutgoingDefaultFromAddress (optional) –the emailaddress that is indicated as the sender of the email message
* OutgoingUsername – the user account from which the email is sent
* OutgoingPassword – the user account’s password (stored in encrypted format)

I am using gmail as the outgoing mail server so i will specify the properties as per my gmail settings

for gmail smtp.gmail.com is the OutgoingMailServer,465 is the OutgoingMailServerPort

and security is SSL.

Once these changes are made apply those changes and now again

expand Soa and select soa-infra

Go to SOA-infrastructure

select soa-administration and click on workflow notification properties.



now following screen will come up

There change the notification mode to email,other properties need not be changed.



apply the changes and restart the server for these changes to take place.

Once server restarted just create a simple bpel process drag a email activity and in the to field give address of the email where you want to send the mail.

This information should probably work for gmail however i am not able to get the output in case of gmail some extra settings are required which i am looking for and will update as soon as i will get more information on this.

2 comments:

Anonymous said...

Hi I´m trying to do an example using an actionable email notification over SOA Suite 11g, I configure the email actionable address, the account receives the email response but does not do anything. In theory it must continue with workflow, please help me !!

Mikku said...

Please refer to the documentation for this issue.You might have missed some configurations

29.7 Creating an Email Notifications

http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10224/bp_workflow.htm#BABBHDGF