Solved

How can i send email from stored procedure in db2

Posted on 2002-05-14
5
496 Views
Last Modified: 2012-08-13
Hi I am on a project where we have to migrate database from oracle to db2. There is a java stored procedure written for oracle that sends email to the users after picking up their email id from database. It uses java mail api to send the mail. I have been trying to port the java stored procedure from oracle to db2 but I am not able to set the jar files of javamail on db2 from where the java stored procedure can pick up the classes. I would like to know if there is any way to set to jar packages from where the java stored procedure can pick up the classes. If that i not possible i would like to know how to send mail from normal stored procedure.
0
Comment
Question by:prasoonkc
5 Comments
 
LVL 7

Accepted Solution

by:
waynezhu earned 50 total points
Comment Utility
Use UDF (user defined function). Take a look at this
article:
http://www.db2mag.com/db_area/archives/2000/q4/cutlip.shtml
0
 
LVL 1

Expert Comment

by:aaronkempf
Comment Utility
now why would you move from one obsolete db to another???

0
 
LVL 1

Expert Comment

by:AAMFK
Comment Utility
i was just kidding.. sorry..

0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

November 2009 Recently, a question came up in the DB2 forum regarding the date format in DB2 UDB for AS/400.  Apparently in UDB LUW (Linux/Unix/Windows), the date format is a system-wide setting, and is not controlled at the session level.  I'm n…
Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now