Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 33846 invoked from network); 8 Dec 2009 14:27:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Dec 2009 14:27:02 -0000 Received: (qmail 11864 invoked by uid 500); 8 Dec 2009 14:27:02 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 11821 invoked by uid 500); 8 Dec 2009 14:27:01 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 11813 invoked by uid 99); 8 Dec 2009 14:27:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 14:27:01 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.18.43.132] (HELO sca-es-mail-1.sun.com) (192.18.43.132) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 14:26:50 +0000 Received: from fe-sfbay-09.sun.com ([192.18.43.129]) by sca-es-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id nB8EQS5D015506 for ; Tue, 8 Dec 2009 06:26:28 -0800 (PST) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from conversion-daemon.fe-sfbay-09.sun.com by fe-sfbay-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0KUC0050080QC100@fe-sfbay-09.sun.com> for derby-dev@db.apache.org; Tue, 08 Dec 2009 06:26:28 -0800 (PST) Received: from richard-hillegas-computer.local ([unknown] [129.150.243.14]) by fe-sfbay-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0KUC0012K83XG720@fe-sfbay-09.sun.com> for derby-dev@db.apache.org; Tue, 08 Dec 2009 06:26:21 -0800 (PST) Date: Tue, 08 Dec 2009 06:26:20 -0800 From: Rick Hillegas Subject: Re: Regarding Stored Procedures In-reply-to: <22b99aa10912072136h15e3ca92gc37e069a7b9e68d1@mail.gmail.com> Sender: Richard.Hillegas@Sun.COM To: derby-dev@db.apache.org Message-id: <4B1E620C.5060200@sun.com> References: <22b99aa10912072136h15e3ca92gc37e069a7b9e68d1@mail.gmail.com> User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) X-Virus-Checked: Checked by ClamAV on apache.org Hi Shazin, This sounds interesting. If you have a prototype that you are ready to share, feel free to attach it to a JIRA. It would be helpful if you could fill out a Contributor License Agreement, allowing the community to use your contribution. See http://www.apache.org/licenses/#clas Thanks, -Rick Shazin Sadakath wrote: > Hi All, > > I have been working on an idea that lets you create Stored Procedures > using languages other than Java with a perspective of Apache Derby as > a Network Server. I tried this by using Sun Java Scripting API for JRE > 1.6+ and Apache BSF http://jakarta.apache.org/bsf/ for JRE 1.4+. > > This has certain advantages when it comes to compiled java stored > routines. > > 1. It is dynamic. > 2. Requires no configuration of classpath. > 3. Requires no use of SQLJ.INSTALL_JAR and SQLJ.REPLACE_JAR. > 4. Very easy to maintain > 5. Allows the use of Sun Java Runtime Library via Object Binding. > 6. Supports JavaScript, Jython, Dynamic Java and many more scripting > languages. https://scripting.dev.java.net/ > 7. No need of introducing a new SQL/PSM grammar to the current SQLParser. > > Just an idea in its very early stage. Would like to hear your responses. > > Thanks, > Shazin >