Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 77844 invoked from network); 9 Dec 2009 08:17:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Dec 2009 08:17:41 -0000 Received: (qmail 92712 invoked by uid 500); 9 Dec 2009 08:17:40 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 92670 invoked by uid 500); 9 Dec 2009 08:17:40 -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 92662 invoked by uid 99); 9 Dec 2009 08:17:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2009 08:17:40 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2009 08:17:38 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 345A629A001D for ; Wed, 9 Dec 2009 00:17:18 -0800 (PST) Message-ID: <1770090747.1260346638213.JavaMail.jira@brutus> Date: Wed, 9 Dec 2009 08:17:18 +0000 (UTC) From: "Shazin Sadakath (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4467) Non Java Stored Routines Using Java Scripting API In-Reply-To: <1706460196.1260346518100.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-4467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shazin Sadakath updated DERBY-4467: ----------------------------------- Description: 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. There are two approaches for this enhancement. 1. Having this as an external utility component such as ij, dblooks 2. Having this as a built in feature. I have done this in the former method for demonstration purpose. was: 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. > Non Java Stored Routines Using Java Scripting API > ------------------------------------------------- > > Key: DERBY-4467 > URL: https://issues.apache.org/jira/browse/DERBY-4467 > Project: Derby > Issue Type: Improvement > Components: Network Server > Environment: Windows XP, Java 1.6 > Reporter: Shazin Sadakath > Priority: Minor > > 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. > There are two approaches for this enhancement. > 1. Having this as an external utility component such as ij, dblooks > 2. Having this as a built in feature. > I have done this in the former method for demonstration purpose. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.