Вы находитесь на странице: 1из 5

11/18/2017 Beginning Java & SOA Development: Using GMail as Mail Server for Oracle SOA Suite 11g

for Oracle SOA Suite 11g Notifications

More Next Blog» Create Blog Sign In

Beginning Java & SOA Development


Some pieces of info stumbled along the way to SOA expertise...

FRIDAY, OCTOBER 8, 2010 About Me

Using GMail as Mail Server for Oracle SOA Suite 11g Notifications Rommel Pino
Lucas Jellema has a good post about configuring SOA Suite 11g for sending email notifications with Google Jeddah, Saudi
Mail, but unluckily, as he also noted, it was not working anymore. Nevertheless, that post demonstrated Arabia
that Gmail could work as SMTP server for Oracle SOA and inspired me to dig more. In this post, I will share View my complete
my configuration and the steps that I have made to have a working GMail SMTP server. The following are profile
my suggested steps:
Followers
1. Configure Workflow Notification Properties
2. Configure Email Driver Properties Followers (101) Next
3. Import the GMail's SSL certificate into Java keystore
4. Remove "-Djavax.net.ssl.trustStore=%WL_HOME%\server\lib\DemoTrust.jks" in setDomainEnv.cmd

Configure Workflow Notification Properties

Right-click soa-infra > SOA Administration > Workflow Notification Properties

Follow

Wowzio
grab this · technology blog
Set Workflow Notification to "All" or "Email".
Replace the "admin@javasoadev.com" and "action@javasoadev.com" with your own gmail address. You
could replace both with just a single account. Don't be alarmed with my email address configuration that
doesn't end with "gmail.com" because I have subscribe to Google Apps where I could have a customized
Blog Archive
email address.
► 2014 (1)
Configure Email Driver Properties ► 2013 (4)

Please see my configuration below which is presented as is for your reference. ► 2012 (2)
► 2011 (14)
▼ 2010 (50)
► November (1)
▼ October (5)
ADF Region as Source of Partial
Trigger
Bounded Task Flows as
Components with Exposed
Stat...
ADF Faces RC: Resolving
"'BracketSuffix' returned ...
Looking Up
SOAServiceInvokerBean from
a Different ...

http://soadev.blogspot.in/2010/10/using-gmail-as-mail-server-for-oracle.html 1/5
11/18/2017 Beginning Java & SOA Development: Using GMail as Mail Server for Oracle SOA Suite 11g Notifications
Using GMail as Mail Server for
Oracle SOA Suite 11...

► September (3)
► August (2)
► July (1)
► June (5)
► April (2)
► March (7)
► February (12)
► January (12)

► 2009 (13)

Labels

ADF Faces RC (15) ADF


Model (1) ADF Security (4) ADF UI

Shell (14) Bean Validation (4)


Bounded Task Flows (2) BPEL (1) BPM
(7) Bug (4) Conditional Dialog (1)
Contextual Events (1) Customizing UI Shell (1)
DataProvider (1) Declarative Lightweight
Popup (1) Dynamic Menu (1) EclipseLink (2)
EJB (3) EJB DataControls (1) EJB Security (1)
Formating (1) Gmail (1) Googe Maps API (1)
Google Translate API (1) Human Workflow (1)
Internationalization (1) Java EE6 (2) Java in
General (1) Java Reflection (2) JDeveloper
(1) jsp:include (1) JSR 303 (4) Layout Tips
(2) Localization (2) LOV (1) Oracle SOA
Note that I am not using cleartext password but an encrypted indirect password as follows: Suite (7) Oracle XE (1) Parameter Passing
(1) Patterns (3) Proxy Authentication (1)
Query (1) RichTable (1) Run Code Upon Page
Load (2) SDO (4) SQLAuthenticator (2)
Task flows (1) VirtualBox (3)
Virtualization (3) Weblogic (4)
Windows 7 (1)
Import the GMail's SSL certificate into Java keystore
My Blog List
Follow the instructions on the following site up to the step of importing of the certificate to the keystore.
Needless to say, import the certificate to the same JAVA_HOME that runs your weblogic server instance. Andrejus Baranovskis's Blog
ADF Performance on Docker -
http://confluence.atlassian.com/display/JIRA042/Using+Gmail+as+a+JIRA+Mail+Server
Lighting Fast
22 hours ago
Remove "-Djavax.net.ssl.trustStore=%WL_HOME%\server\lib\DemoTrust.jks" in setDomainEnv.cmd
Baig's Technology Blog
It seems that this command argument is affecting the way Weblogic locates trust as described in the My Slides from Collaborate
following document: How WebLogic Server Locates Trust. With that argument, weblogic is not looking trust 2016
1 year ago
into JDK cacerts keystores.
EE5 Developer
Quick Testing... WebLogic Server: "TOO MANY
OPEN FILES" Exception
Goto SOA Infrastructure>Service Engine>Human Workflow 1 year ago

Java / Oracle SOA blog


Test your WebLogic 12.1.3
enviroment with Robot
3 years ago

One size doesn't fit all


Solar Adventures & Saving
Money - Win win win win!
10 months ago

Oracle .. Java ..
OpenSource .. SOA
Oracle Database adapter,
invalid customization
9 months ago

http://soadev.blogspot.in/2010/10/using-gmail-as-mail-server-for-oracle.html 2/5
11/18/2017 Beginning Java & SOA Development: Using GMail as Mail Server for Oracle SOA Suite 11g Notifications

Click "Notification Management" tab then click "Send Test Notification"... Enter something like the
following values. Ensure that you gave a valid "Send To" email address.

Voila! Email is received accordingly...

http://soadev.blogspot.in/2010/10/using-gmail-as-mail-server-for-oracle.html 3/5
11/18/2017 Beginning Java & SOA Development: Using GMail as Mail Server for Oracle SOA Suite 11g Notifications

Cheers and Thanks to Lucas!

Posted by Rommel Pino at 10:54 PM


Labels: Gmail, Human Workflow, Oracle SOA Suite

5 comments:

Baig October 9, 2010 at 9:34 AM

Great post.

Reply

Asish February 26, 2011 at 6:46 AM

Hi ,
To begin , this is a great post, Thanks,

I did not have to remove "-Djavax.net.ssl.trustStore=%WL_HOME%\server\lib\DemoTrust.jks" in


setDomainEnv.cmd . This was because i added gmail.cert to DemoTrust.jks too. The password for adding is
DemoTrustKeyStorePassPhrase.

Reply

Rommel Pino February 26, 2011 at 9:33 AM

Hi Asish!

That info is valuable.

Thanks for the feedback,


Rommel Pino

Reply

Rommel Pino July 21, 2011 at 1:00 PM

Updated the link on importing Gmail SSL certificate.


http://confluence.atlassian.com/display/JIRA042/Using+Gmail+as+a+JIRA+Mail+Server

Reply

Prash November 23, 2011 at 2:54 PM

Its very helpful.

I have done all the above mentioned steps. But i am getting following error. Please let me know how to
resolve the issue?
------------------------------------------------
Error while sending notification. Error while sending notification to email. Check the underlying exception
and fix it. ; Error while sending notification. Error while sending notification to email. Check the
underlying exception and fix it. ; EJB Exception: : java.lang.NullPointerException at
oracle.bpel.services.notification.impl.asns.ASNSInteractionBean.send(ASNSInteractionBean.java:219) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at

http://soadev.blogspot.in/2010/10/using-gmail-as-mail-server-for-oracle.html 4/5
11/18/2017 Beginning Java & SOA Development: Using GMail as Mail Server for Oracle SOA Suite 11g Notifications
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at
java.lang.reflect.Method.invoke(Method.java:597) at
com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils
.java:310) at
com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(R
eflectiveMethodInvocation.java:182) at
com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflectiv
eMethodInvocation.java:149) at
com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(Del
egatingIntroductionInterceptor.java:131) at
com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(Delegat
ingIntroductionInterceptor.java:119) at
com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflectiv
eMethodInvocation.java:171) at
com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVis
itorImpl.java:37) at
weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCal
lbackImpl.java:54) at
com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentIntercepto
r.java:50) at
com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflectiv
eMethodInvocation.java:171) at com.bea.core.repacka

Reply

Add comment

Enter your comment...

Comment as: Select profile...

Publish Preview

Links to this post

Create a Link

Newer Post Home Older Post

Subscribe to: Post Comments (Atom)

http://soadev.blogspot.in/2010/10/using-gmail-as-mail-server-for-oracle.html 5/5

Вам также может понравиться