Sunday, 30 November 2014

Create Cutom FromAddress Drivers in SOA 11g

In Most of the Outbound Email Notification scenarios we Configure the Default FromAddress Account which we set it up in EM Console-> Workflow Properties. but in some scenarios we would need different FromAddress Email Accounts to be used in addition to the Default ones like Do not Reply EmailIds etc.

We had a scenario in our project where we had the configured Default From address used by many other projects but we required a new From Address for ours.Hence we created new FromAddress Email Account by following these steps:

1. Login to EM Console and select SOA -> soa-infra(Right Click) -> SOA Administration -> Workflow Properties.
2. Click on: More Workflow Notification Configuration Properties
3. System MBean Browser is shown with human-workflow selected.
4. Under Application Defined MBeans: HWFMailerConfig:human-workflow, select the Operations tab and click on setASNSDriver.
Please enter the following:

propertyName : EmailFromAddress
propertyValue : <From Email Address>
driverName : <Any Driver/Account Name required>

Click on Invoke and then Return.

5. Click on Attributes tab. For ASNSDrivers you should be able to see the following values:Default and the new Driver Name.
6. Login to Oracle WebLogic Server Administration Console.Click on Deployments in LHS, Select the check box for usermessagingdriver-email and click on update and click Finish in the next screen.

This Newly created FromAddress Account can be used in Notification service or Human workflow Notifications.