Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 76756 invoked from network); 19 Jul 2010 09:00:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Jul 2010 09:00:38 -0000 Received: (qmail 32074 invoked by uid 500); 19 Jul 2010 09:00:38 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 31684 invoked by uid 500); 19 Jul 2010 09:00:35 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 31669 invoked by uid 99); 19 Jul 2010 09:00:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jul 2010 09:00:34 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gcaddu-derby-user@m.gmane.org designates 80.91.229.12 as permitted sender) Received: from [80.91.229.12] (HELO lo.gmane.org) (80.91.229.12) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jul 2010 09:00:25 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OamCi-0007SZ-6q for derby-user@db.apache.org; Mon, 19 Jul 2010 11:00:04 +0200 Received: from cop60-2-88-163-134-117.fbx.proxad.net ([88.163.134.117]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Jul 2010 11:00:04 +0200 Received: from nmset by cop60-2-88-163-134-117.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Jul 2010 11:00:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: derby-user@db.apache.org From: SET Subject: Re: Database-side programming Date: Mon, 19 Jul 2010 08:56:07 +0000 (UTC) Lines: 32 Message-ID: References: <201007181815.08998.nmset@netcourrier.com> <4C44059B.7080807@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 88.163.134.117 (Mozilla/5.0 (compatible; Konqueror/4.4) KHTML/4.4.3 (like Gecko)) X-Virus-Checked: Checked by ClamAV on apache.org Kristian Waagan writes: > > On 18.07.10 18:15, Saleem EDAH-TALLY wrote: > > Hello, > > > > This concerns getting information from 'inside' Derby through JAVA code called > > by a procedure. > > > > The nested connection can be obtained with jdbc:default:connection. However > > the URL attributes cannot be retrieved in any way. > > Hi, > > Maybe it would help if you tell why you want to do this, so people can > suggest a different mechanism if appropriate? ... ... >From a stored procedure, I have to open a connection to another database. The main unknown is the ssl mode parameter with the client driver. This parameter is meaningless in embedded mode. I could not find a way to determine this parameter from a stored procedure. There is the derby.drda.sslMode property which can be retrieved from a NetworkServerControl instance, but I could not find a way to access the current instance. CURRENT_USER does give the desired parameter. Thank you for your reply.