Configure
Multiple Email accounts in SOA 11g.
In SOA 10g we can configure multiple email accounts
under ns_emails.xml and it was simple.
But in 11g its completely different, for every email account you need deploy email driver.here are the complete steps you need to follow to achieve this.
But in 11g its completely different, for every email account you need deploy email driver.here are the complete steps you need to follow to achieve this.
1. Edit the deployment plan for
email driver application (for example: ORACLE_SOA_HOME/communications/plans/usermessagingdriver-email_Plan.xml)
- Backup the original plan (ORACLE_SOA_HOME/communications/plans/usermessagingdriver-email_Plan.xml)
- Copy the plan to a location of your choice (to the same directory or any other directory), rename it to usermessagingdriver-email_Plan2.xml
- Open usermessagingdriver-email_Plan2.xml in any text editor, search an replace @DriverDeploymentName@ with whichever name you want to use (ensure you replace all instances of the name).
- Search and replace @DriverShortName@ with any name you like(ensure you replace all instances of the name).
e.g.
REPLACE WITH
@DriverDeploymentName@ -> usermessagingdriver-email2
@DriverShortName@ -> email2
REPLACE WITH
@DriverDeploymentName@ -> usermessagingdriver-email2
@DriverShortName@ -> email2
@RunAsPrincipalName@ ->
OracleSystemUser
- Save this file.
2. Start Oracle Enterprise Manager
Fusion Middleware Control. Navigate to WebLogic Domain > >
3. Right click on , then select Application Deployment > Deploy...
3. Right click on , then select Application Deployment > Deploy...
4. The Deploy Java EE Application
Window appears, in the step1 of 4, enter the location of the .ear file and
Deployment Plan
e.g.
EAR location: ORACLE_SOA_HOME/communications/applications/sdpmessagingdriver-email.ear
Deployment Plan: ORACLE_SOA_HOME/communications/plans/usermessagingdriver-email_Plan2.xml
EAR location: ORACLE_SOA_HOME/communications/applications/sdpmessagingdriver-email.ear
Deployment Plan: ORACLE_SOA_HOME/communications/plans/usermessagingdriver-email_Plan2.xml
5. In Select Target, select , click Next.
6. In Step 3 of 4, Application Attributes page,
- Enter an application name. The application name must exactly match the string used in the Deployment Plan. If it does not, the deployment and activation fails.
- Modify the context root for email-mbeanlifecycle.war web module, the default is sdpmessagingdriver/email-mbeanlifecycle. You have to change it to a different value as this one is already used by the existing email drive
e.g.
Application Name: sdpmessagingdriver-email2
Context root for email-mbeanlifecycle.war : sdpmessagingdriver2/email-mbeanlifecycle
Application Name: sdpmessagingdriver-email2
Context root for email-mbeanlifecycle.war : sdpmessagingdriver2/email-mbeanlifecycle
7. Click Next, then Deploy
Restart SOA server and open em
console, you find new email driver that you deployed under
User messaging service.
select usermessagingdriver-email2
driver properties ,configure your email account.