Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 56974 invoked from network); 20 Apr 2005 23:52:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Apr 2005 23:52:03 -0000 Received: (qmail 71026 invoked by uid 500); 20 Apr 2005 23:52:11 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 70965 invoked by uid 500); 20 Apr 2005 23:52:10 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 70950 invoked by uid 500); 20 Apr 2005 23:52:10 -0000 Delivered-To: apmail-incubator-derby-cvs@incubator.apache.org Received: (qmail 70943 invoked by uid 99); 20 Apr 2005 23:52:10 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 20 Apr 2005 16:52:08 -0700 Received: (qmail 56947 invoked by uid 65534); 20 Apr 2005 23:51:58 -0000 Message-ID: <20050420235158.56944.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: svn commit: r162093 - in /incubator/derby/code/branches/10.0: frameworks/ frameworks/NetworkServer/bin/ frameworks/embedded/ frameworks/embedded/bin/ java/demo/nserverdemo/ Date: Wed, 20 Apr 2005 23:51:54 -0000 To: derby-cvs@incubator.apache.org From: fuzzylogic@apache.org X-Mailer: svnmailer-1.0.0-dev X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: fuzzylogic Date: Wed Apr 20 16:51:52 2005 New Revision: 162093 URL: http://svn.apache.org/viewcvs?rev=3D162093&view=3Drev Log: Merge revisions 161070 and 126495 to 10.0 branch Modified: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/Network= ServerControl.bat (contents, props changed) incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/Network= ServerControl.ksh (contents, props changed) incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/dblook.= bat (contents, props changed) incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/dblook.= ksh (contents, props changed) incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/ij.bat = (contents, props changed) incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/ij.ksh = (contents, props changed) incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/setNetw= orkClientCP.bat (contents, props changed) incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/setNetw= orkClientCP.ksh (contents, props changed) incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/setNetw= orkServerCP.bat (contents, props changed) incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/setNetw= orkServerCP.ksh (contents, props changed) incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/startNe= tworkServer.bat (contents, props changed) incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/startNe= tworkServer.ksh (contents, props changed) incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/stopNet= workServer.bat (contents, props changed) incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/stopNet= workServer.ksh (contents, props changed) incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/sysinfo= .bat (contents, props changed) incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/sysinfo= .ksh (contents, props changed) incubator/derby/code/branches/10.0/frameworks/embedded/bin/dblook.bat = (contents, props changed) incubator/derby/code/branches/10.0/frameworks/embedded/bin/dblook.ksh = (contents, props changed) incubator/derby/code/branches/10.0/frameworks/embedded/bin/ij.bat (co= ntents, props changed) incubator/derby/code/branches/10.0/frameworks/embedded/bin/ij.ksh (co= ntents, props changed) incubator/derby/code/branches/10.0/frameworks/embedded/bin/setEmbeddedC= P=2Ebat (contents, props changed) incubator/derby/code/branches/10.0/frameworks/embedded/bin/setEmbeddedC= P=2Eksh (contents, props changed) incubator/derby/code/branches/10.0/frameworks/embedded/bin/sysinfo.bat = (contents, props changed) incubator/derby/code/branches/10.0/frameworks/embedded/bin/sysinfo.ksh = (contents, props changed) incubator/derby/code/branches/10.0/frameworks/embedded/readme.html (c= ontents, props changed) incubator/derby/code/branches/10.0/frameworks/readme.html (contents, = props changed) incubator/derby/code/branches/10.0/java/demo/nserverdemo/NsSample.java incubator/derby/code/branches/10.0/java/demo/nserverdemo/NsSampleClient= Thread.java incubator/derby/code/branches/10.0/java/demo/nserverdemo/SimpleNetworkC= lientSample.java Modified: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/N= etworkServerControl.bat URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/NetworkServer/bin/NetworkServerControl.bat?rev=3D162093&r1=3D162092&r= 2=3D162093&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/Network= ServerControl.bat (original) +++ incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/Network= ServerControl.bat Wed Apr 20 16:51:52 2005 @@ -1,29 +1,29 @@ -@REM --------------------------------------------------------- -@REM -- This batch file is an example of how to run commands=20 -@REM -- in the Network Server framework -@REM -- -@REM -- REQUIREMENTS:=20 -@REM -- You must have the derby jar files as well as the=20 -@REM -- derby network server class files in your classpath. -@REM -- -@REM -- Check the setNetworkServerCP.bat file for an example of -@REM -- what to set. -@REM --=20 -@REM -- This file for use on Windows systems -@REM --------------------------------------------------------- - -rem set DERBY_INSTALL=3D -=20 -@if !"%CLASSPATH%"=3D=3D! call "%DERBY_INSTALL%"/frameworks/NetworkServer/= bin/setNetworkServerCP.bat -@if "%CLASSPATH%" =3D=3D "" call "%DERBY_INSTALL%"/frameworks/NetworkServe= r/bin/setNetworkServerCP.bat - -@REM --------------------------------------------------------- -@REM -- start Derby as a Network server -@REM --------------------------------------------------------- -java org.apache.derby.drda.NetworkServerControl %* - -@REM --------------------------------------------------------- -@REM -- To use a different JVM with a different syntax, simply edit -@REM -- this file -@REM --------------------------------------------------------- - +@REM --------------------------------------------------------- +@REM -- This batch file is an example of how to run commands=20 +@REM -- in the Network Server framework +@REM -- +@REM -- REQUIREMENTS:=20 +@REM -- You must have the derby jar files as well as the=20 +@REM -- derby network server class files in your classpath. +@REM -- +@REM -- Check the setNetworkServerCP.bat file for an example of +@REM -- what to set. +@REM --=20 +@REM -- This file for use on Windows systems +@REM --------------------------------------------------------- + +rem set DERBY_INSTALL=3D +=20 +@if !"%CLASSPATH%"=3D=3D! call "%DERBY_INSTALL%"/frameworks/NetworkServer/= bin/setNetworkServerCP.bat +@if "%CLASSPATH%" =3D=3D "" call "%DERBY_INSTALL%"/frameworks/NetworkServe= r/bin/setNetworkServerCP.bat + +@REM --------------------------------------------------------- +@REM -- start Derby as a Network server +@REM --------------------------------------------------------- +java org.apache.derby.drda.NetworkServerControl %* + +@REM --------------------------------------------------------- +@REM -- To use a different JVM with a different syntax, simply edit +@REM -- this file +@REM --------------------------------------------------------- + Propchange: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin= /NetworkServerControl.bat ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/N= etworkServerControl.ksh URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/NetworkServer/bin/NetworkServerControl.ksh?rev=3D162093&r1=3D162092&r= 2=3D162093&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/Network= ServerControl.ksh (original) +++ incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/Network= ServerControl.ksh Wed Apr 20 16:51:52 2005 @@ -1,31 +1,31 @@ -## --------------------------------------------------------- -# -- This simple script is an example of how to run commands -# -- for the Network Server framework -# -- -# -- REQUIREMENTS:=20 -# -- You must have the derby and Network Server jar files in your CLASSP= ATH -# -- -# -- Check the setNetworkServerCP.ksh file for an example of -# -- what to set. -# --=20 -# -- This file for use on Unix ksh systems -# --------------------------------------------------------- - -# DERBY_INSTALL=3D - -[ -z "$CLASSPATH" ] && { - . "$DERBY_INSTALL"/frameworks/NetworkServer/bin/setNetworkServerCP.ksh -} - -# --------------------------------------------------------- -# -- start Derby Network Server -# --------------------------------------------------------- - -java org.apache.derby.drda.NetworkServerControl $* - - -# --------------------------------------------------------- -# -- To use a different JVM with a different syntax, simply edit -# -- this file -# --------------------------------------------------------- - +## --------------------------------------------------------- +# -- This simple script is an example of how to run commands +# -- for the Network Server framework +# -- +# -- REQUIREMENTS:=20 +# -- You must have the derby and Network Server jar files in your CLASSP= ATH +# -- +# -- Check the setNetworkServerCP.ksh file for an example of +# -- what to set. +# --=20 +# -- This file for use on Unix ksh systems +# --------------------------------------------------------- + +# DERBY_INSTALL=3D + +[ -z "$CLASSPATH" ] && { + . "$DERBY_INSTALL"/frameworks/NetworkServer/bin/setNetworkServerCP.ksh +} + +# --------------------------------------------------------- +# -- start Derby Network Server +# --------------------------------------------------------- + +java org.apache.derby.drda.NetworkServerControl $* + + +# --------------------------------------------------------- +# -- To use a different JVM with a different syntax, simply edit +# -- this file +# --------------------------------------------------------- + Propchange: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin= /NetworkServerControl.ksh ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/d= blook.bat URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/NetworkServer/bin/dblook.bat?rev=3D162093&r1=3D162092&r2=3D162093&vie= w=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/dblook.= bat (original) +++ incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/dblook.= bat Wed Apr 20 16:51:52 2005 @@ -1,28 +1,28 @@ -@REM --------------------------------------------------------- -@REM -- This batch file is an example of how to start dblook in=20 -@REM -- an NetworkServer environment. -@REM -- -@REM -- REQUIREMENTS:=20 -@REM -- You must have the Derby libraries in your classpath -@REM --=20 -@REM -- See the setNetworkClientCP.bat for an example of -@REM -- how to do this. -@REM -- -@REM -- This file for use on Windows systems -@REM --------------------------------------------------------- - -rem set DERBY_INSTALL=3D -=20 -@if !"%CLASSPATH%"=3D=3D! call "%DERBY_INSTALL%"/frameworks/NetworkServer/= bin/setNetworkClientCP.bat -@if "%CLASSPATH%" =3D=3D "" call "%DERBY_INSTALL%"/frameworks/NetworkServe= r/bin/setNetworkClientCP.bat - -@REM --------------------------------------------------------- -@REM -- start dblook -@REM --------------------------------------------------------- -java org.apache.derby.tools.dblook %* - -@REM --------------------------------------------------------- -@REM -- To use a different JVM with a different syntax, simply edit -@REM -- this file -@REM --------------------------------------------------------- - +@REM --------------------------------------------------------- +@REM -- This batch file is an example of how to start dblook in=20 +@REM -- an NetworkServer environment. +@REM -- +@REM -- REQUIREMENTS:=20 +@REM -- You must have the Derby libraries in your classpath +@REM --=20 +@REM -- See the setNetworkClientCP.bat for an example of +@REM -- how to do this. +@REM -- +@REM -- This file for use on Windows systems +@REM --------------------------------------------------------- + +rem set DERBY_INSTALL=3D +=20 +@if !"%CLASSPATH%"=3D=3D! call "%DERBY_INSTALL%"/frameworks/NetworkServer/= bin/setNetworkClientCP.bat +@if "%CLASSPATH%" =3D=3D "" call "%DERBY_INSTALL%"/frameworks/NetworkServe= r/bin/setNetworkClientCP.bat + +@REM --------------------------------------------------------- +@REM -- start dblook +@REM --------------------------------------------------------- +java org.apache.derby.tools.dblook %* + +@REM --------------------------------------------------------- +@REM -- To use a different JVM with a different syntax, simply edit +@REM -- this file +@REM --------------------------------------------------------- + Propchange: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin= /dblook.bat ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/d= blook.ksh URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/NetworkServer/bin/dblook.ksh?rev=3D162093&r1=3D162092&r2=3D162093&vie= w=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/dblook.= ksh (original) +++ incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/dblook.= ksh Wed Apr 20 16:51:52 2005 @@ -1,29 +1,29 @@ -# --------------------------------------------------------- -# -- This simple script is an example of how to start dblook in=20 -# -- a NetworkServer environment. -# -- -#-- REQUIREMENTS:=20 -# -- You must have the Derby libraries in your classpath -# --=20 -# -- See the setEmbeddedCP.ksh for an example of -# -- how to do this. -# -- -# -- This file for use on Unix ksh systems -# --------------------------------------------------------- - -# DERBY_INSTALL=3D - -[ -z "$CLASSPATH" ] && { - . "$DERBY_INSTALL"/frameworks/NetworkServer/bin/setNetworkClientCP.ksh -} - -# --------------------------------------------------------- -# -- start dblook -# --------------------------------------------------------- -java org.apache.derby.tools.dblook $@ - -# --------------------------------------------------------- -# -- To use a different JVM with a different syntax, simply edit -# -- this file -# --------------------------------------------------------- - +# --------------------------------------------------------- +# -- This simple script is an example of how to start dblook in=20 +# -- a NetworkServer environment. +# -- +#-- REQUIREMENTS:=20 +# -- You must have the Derby libraries in your classpath +# --=20 +# -- See the setEmbeddedCP.ksh for an example of +# -- how to do this. +# -- +# -- This file for use on Unix ksh systems +# --------------------------------------------------------- + +# DERBY_INSTALL=3D + +[ -z "$CLASSPATH" ] && { + . "$DERBY_INSTALL"/frameworks/NetworkServer/bin/setNetworkClientCP.ksh +} + +# --------------------------------------------------------- +# -- start dblook +# --------------------------------------------------------- +java org.apache.derby.tools.dblook $@ + +# --------------------------------------------------------- +# -- To use a different JVM with a different syntax, simply edit +# -- this file +# --------------------------------------------------------- + Propchange: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin= /dblook.ksh ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/i= j=2Ebat URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/NetworkServer/bin/ij.bat?rev=3D162093&r1=3D162092&r2=3D162093&view=3D= diff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/ij.bat = (original) +++ incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/ij.bat = Wed Apr 20 16:51:52 2005 @@ -1,37 +1,37 @@ -@REM --------------------------------------------------------- -@REM -- This batch file is an example of how to start ij in=20 -@REM -- an NetworkServer environment. -@REM -- -@REM -- REQUIREMENTS:=20 -@REM -- You must have the Derby and DB2 JCC libraries in your classpath -@REM --=20 -@REM -- See the setNetworkClientCP.bat for an example of -@REM -- how to do this. -@REM -- -@REM -- You may need to modify the values below for a different -@REM -- host, port, user, or password -@REM -- -@REM -- This file for use on Windows systems -@REM --------------------------------------------------------- - -rem set DERBY_INSTALL=3D -=20 -@if !"%CLASSPATH%"=3D=3D! call "%DERBY_INSTALL%"/frameworks/NetworkServer/= bin/setNetworkClientCP.bat -@if "%CLASSPATH%" =3D=3D "" call "%DERBY_INSTALL%"/frameworks/NetworkServe= r/bin/setNetworkClientCP.bat - -set IJ_HOST=3Dlocalhost -set IJ_PORT=3D1527 -set IJ_USER=3DAPP -set IJ_PASSWORD=3DAPP - -@REM --------------------------------------------------------- -@REM -- start ij -@REM -- host, port, user and password may need to be changed -@REM --------------------------------------------------------- -java -Dij.driver=3Dcom.ibm.db2.jcc.DB2Driver -Dij.protocol=3Djdbc:derby:ne= t://%IJ_HOST%:%IJ_PORT%/ -Dij.user=3D%IJ_USER% -Dij.password=3D%IJ_PASSWORD= % org.apache.derby.tools.ij - -@REM --------------------------------------------------------- -@REM -- To use a different JVM with a different syntax, simply edit -@REM -- this file -@REM --------------------------------------------------------- - +@REM --------------------------------------------------------- +@REM -- This batch file is an example of how to start ij in=20 +@REM -- an NetworkServer environment. +@REM -- +@REM -- REQUIREMENTS:=20 +@REM -- You must have the Derby and DB2 JCC libraries in your classpath +@REM --=20 +@REM -- See the setNetworkClientCP.bat for an example of +@REM -- how to do this. +@REM -- +@REM -- You may need to modify the values below for a different +@REM -- host, port, user, or password +@REM -- +@REM -- This file for use on Windows systems +@REM --------------------------------------------------------- + +rem set DERBY_INSTALL=3D +=20 +@if !"%CLASSPATH%"=3D=3D! call "%DERBY_INSTALL%"/frameworks/NetworkServer/= bin/setNetworkClientCP.bat +@if "%CLASSPATH%" =3D=3D "" call "%DERBY_INSTALL%"/frameworks/NetworkServe= r/bin/setNetworkClientCP.bat + +set IJ_HOST=3Dlocalhost +set IJ_PORT=3D1527 +set IJ_USER=3DAPP +set IJ_PASSWORD=3DAPP + +@REM --------------------------------------------------------- +@REM -- start ij +@REM -- host, port, user and password may need to be changed +@REM --------------------------------------------------------- +java -Dij.driver=3Dcom.ibm.db2.jcc.DB2Driver -Dij.protocol=3Djdbc:derby:ne= t://%IJ_HOST%:%IJ_PORT%/ -Dij.user=3D%IJ_USER% -Dij.password=3D%IJ_PASSWORD= % org.apache.derby.tools.ij + +@REM --------------------------------------------------------- +@REM -- To use a different JVM with a different syntax, simply edit +@REM -- this file +@REM --------------------------------------------------------- + Propchange: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin= /ij.bat ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/i= j=2Eksh URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/NetworkServer/bin/ij.ksh?rev=3D162093&r1=3D162092&r2=3D162093&view=3D= diff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/ij.ksh = (original) +++ incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/ij.ksh = Wed Apr 20 16:51:52 2005 @@ -1,33 +1,33 @@ -# --------------------------------------------------------- -# -- This simple script is an example of how to start ij in=20 -# -- the Derby Network Server environment. -# -- -#-- REQUIREMENTS:=20 -# -- You must have the Derby and DB2 JCC libraries in your classpath -# --=20 -# -- See the setNetworkClientCP.ksh for an example of -# -- how to do this. -# -- -# -- This file for use on Unix ksh systems -# --------------------------------------------------------- - -# DERBY_INSTALL=3D - -[ -z "$CLASSPATH" ] && { - . "$DERBY_INSTALL"/frameworks/NetworkServer/bin/setNetworkClientCP.ksh -} -=20 -export IJ_HOST=3Dlocalhost -export IJ_PORT=3D1527 -export IJ_USER=3DAPP -export IJ_PASSWORD=3DAPP - -# --------------------------------------------------------- -# -- start ij -# --------------------------------------------------------- -java -Dij.driver=3Dcom.ibm.db2.jcc.DB2Driver -Dij.protocol=3Djdbc:derby:ne= t://$IJ_HOST:$IJ_PORT/ -Dij.user=3D$IJ_USER -Dij.password=3D$IJ_PASSWORD o= rg.apache.derby.tools.ij - -# --------------------------------------------------------- -# -- To use a different JVM with a different syntax, simply edit -# -- this file -# --------------------------------------------------------- +# --------------------------------------------------------- +# -- This simple script is an example of how to start ij in=20 +# -- the Derby Network Server environment. +# -- +#-- REQUIREMENTS:=20 +# -- You must have the Derby and DB2 JCC libraries in your classpath +# --=20 +# -- See the setNetworkClientCP.ksh for an example of +# -- how to do this. +# -- +# -- This file for use on Unix ksh systems +# --------------------------------------------------------- + +# DERBY_INSTALL=3D + +[ -z "$CLASSPATH" ] && { + . "$DERBY_INSTALL"/frameworks/NetworkServer/bin/setNetworkClientCP.ksh +} +=20 +export IJ_HOST=3Dlocalhost +export IJ_PORT=3D1527 +export IJ_USER=3DAPP +export IJ_PASSWORD=3DAPP + +# --------------------------------------------------------- +# -- start ij +# --------------------------------------------------------- +java -Dij.driver=3Dcom.ibm.db2.jcc.DB2Driver -Dij.protocol=3Djdbc:derby:ne= t://$IJ_HOST:$IJ_PORT/ -Dij.user=3D$IJ_USER -Dij.password=3D$IJ_PASSWORD o= rg.apache.derby.tools.ij + +# --------------------------------------------------------- +# -- To use a different JVM with a different syntax, simply edit +# -- this file +# --------------------------------------------------------- Propchange: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin= /ij.ksh ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/s= etNetworkClientCP.bat URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/NetworkServer/bin/setNetworkClientCP.bat?rev=3D162093&r1=3D162092&r2= =3D162093&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/setNetw= orkClientCP.bat (original) +++ incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/setNetw= orkClientCP.bat Wed Apr 20 16:51:52 2005 @@ -1,17 +1,17 @@ -@REM --------------------------------------------------------- -@REM -- This batch file sets the CLASSPATH environment variable -@REM -- for use with Derby products in Network Server mode -@REM -- -@REM -- To use this script from other locations, change the=20 -@REM -- value assigned to DERBY_INSTALL to be an absolute path=20 -@REM -- (set DERBY_INSTALL=3DC:\derby) instead of the current relative pat= h -@REM -- -@REM -- This file for use on Windows systems -@REM --=20 -@REM --------------------------------------------------------- - -rem set DERBY_INSTALL=3D - -FOR %%X in ("%DERBY_INSTALL%") DO SET DERBY_INSTALL=3D%%~sX - -set CLASSPATH=3D%DERBY_INSTALL%\lib\derby.jar;%DERBY_INSTALL%\lib\derbytoo= ls.jar;%DERBY_INSTALL%\lib\db2jcc.jar;%DERBY_INSTALL%\lib\db2jcc_license_c.= jar;%CLASSPATH% +@REM --------------------------------------------------------- +@REM -- This batch file sets the CLASSPATH environment variable +@REM -- for use with Derby products in Network Server mode +@REM -- +@REM -- To use this script from other locations, change the=20 +@REM -- value assigned to DERBY_INSTALL to be an absolute path=20 +@REM -- (set DERBY_INSTALL=3DC:\derby) instead of the current relative path +@REM -- +@REM -- This file for use on Windows systems +@REM --=20 +@REM --------------------------------------------------------- + +rem set DERBY_INSTALL=3D + +FOR %%X in ("%DERBY_INSTALL%") DO SET DERBY_INSTALL=3D%%~sX + +set CLASSPATH=3D%DERBY_INSTALL%\lib\derby.jar;%DERBY_INSTALL%\lib\derbytoo= ls.jar;%DERBY_INSTALL%\lib\db2jcc.jar;%DERBY_INSTALL%\lib\db2jcc_license_c.= jar;%CLASSPATH% Propchange: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin= /setNetworkClientCP.bat ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/s= etNetworkClientCP.ksh URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/NetworkServer/bin/setNetworkClientCP.ksh?rev=3D162093&r1=3D162092&r2= =3D162093&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/setNetw= orkClientCP.ksh (original) +++ incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/setNetw= orkClientCP.ksh Wed Apr 20 16:51:52 2005 @@ -1,14 +1,14 @@ -# --------------------------------------------------------- -# -- This script file sets the CLASSPATH environment variable -# -- for use with Derby products in Network Server mode -# -- -# -- To use this script from other locations, change the=20 -# -- value assigned to DERBY_INSTALL to be an absolute path=20 -# -- (export DERBY_INSTALL=3D/opt/derby) instead of the current relative p= ath -# -- -# -- This file for use on Unix ksh systems -# --=20 -# --------------------------------------------------------- -# DERBY_INSTALL=3D - -export CLASSPATH=3D"${DERBY_INSTALL}/lib/derby.jar:${DERBY_INSTALL}/lib/de= rbytools.jar:${DERBY_INSTALL}/lib/db2jcc.jar:${DERBY_INSTALL}/lib/db2jcc_li= cense_c.jar:${CLASSPATH}" +# --------------------------------------------------------- +# -- This script file sets the CLASSPATH environment variable +# -- for use with Derby products in Network Server mode +# -- +# -- To use this script from other locations, change the=20 +# -- value assigned to DERBY_INSTALL to be an absolute path=20 +# -- (export DERBY_INSTALL=3D/opt/derby) instead of the current relative p= ath +# -- +# -- This file for use on Unix ksh systems +# --=20 +# --------------------------------------------------------- +# DERBY_INSTALL=3D + +export CLASSPATH=3D"${DERBY_INSTALL}/lib/derby.jar:${DERBY_INSTALL}/lib/de= rbytools.jar:${DERBY_INSTALL}/lib/db2jcc.jar:${DERBY_INSTALL}/lib/db2jcc_li= cense_c.jar:${CLASSPATH}" Propchange: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin= /setNetworkClientCP.ksh ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/s= etNetworkServerCP.bat URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/NetworkServer/bin/setNetworkServerCP.bat?rev=3D162093&r1=3D162092&r2= =3D162093&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/setNetw= orkServerCP.bat (original) +++ incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/setNetw= orkServerCP.bat Wed Apr 20 16:51:52 2005 @@ -1,17 +1,17 @@ -@REM --------------------------------------------------------- -@REM -- This batch file sets the CLASSPATH environment variable -@REM -- for use with Derby products in NetworkServer mode -@REM -- -@REM -- To use this script from other locations, change the=20 -@REM -- value assigned to DERBY_INSTALL to be an absolute path=20 -@REM -- (set DERBY_INSTALL=3DC:\derby) instead of the current relative pat= h -@REM -- -@REM -- This file for use on Windows systems -@REM --=20 -@REM --------------------------------------------------------- - -rem set DERBY_INSTALL=3D - -FOR %%X in ("%DERBY_INSTALL%") DO SET DERBY_INSTALL=3D%%~sX - -set CLASSPATH=3D%DERBY_INSTALL%\lib\derby.jar;%DERBY_INSTALL%\lib\derbytoo= ls.jar;%DERBY_INSTALL%\lib\derbynet.jar;%CLASSPATH% +@REM --------------------------------------------------------- +@REM -- This batch file sets the CLASSPATH environment variable +@REM -- for use with Derby products in NetworkServer mode +@REM -- +@REM -- To use this script from other locations, change the=20 +@REM -- value assigned to DERBY_INSTALL to be an absolute path=20 +@REM -- (set DERBY_INSTALL=3DC:\derby) instead of the current relative path +@REM -- +@REM -- This file for use on Windows systems +@REM --=20 +@REM --------------------------------------------------------- + +rem set DERBY_INSTALL=3D + +FOR %%X in ("%DERBY_INSTALL%") DO SET DERBY_INSTALL=3D%%~sX + +set CLASSPATH=3D%DERBY_INSTALL%\lib\derby.jar;%DERBY_INSTALL%\lib\derbytoo= ls.jar;%DERBY_INSTALL%\lib\derbynet.jar;%CLASSPATH% Propchange: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin= /setNetworkServerCP.bat ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/s= etNetworkServerCP.ksh URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/NetworkServer/bin/setNetworkServerCP.ksh?rev=3D162093&r1=3D162092&r2= =3D162093&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/setNetw= orkServerCP.ksh (original) +++ incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/setNetw= orkServerCP.ksh Wed Apr 20 16:51:52 2005 @@ -1,14 +1,14 @@ -# --------------------------------------------------------- -# -- This script file sets the CLASSPATH environment variable -# -- for use with Derby products in NetworkServer mode -# -- -# -- To use this script from other locations, change the=20 -# -- value assigned to DERBY_INSTALL to be an absolute path=20 -# -- (export DERBY_INSTALL=3D/opt/derby) instead of the current relative p= ath -# -- -# -- This file for use on Unix ksh systems -# --=20 -# --------------------------------------------------------- -# DERBY_INSTALL=3D - -export CLASSPATH=3D"${DERBY_INSTALL}/lib/derby.jar:${DERBY_INSTALL}/lib/de= rbytools.jar:${DERBY_INSTALL}/lib/derbynet.jar:${CLASSPATH}" +# --------------------------------------------------------- +# -- This script file sets the CLASSPATH environment variable +# -- for use with Derby products in NetworkServer mode +# -- +# -- To use this script from other locations, change the=20 +# -- value assigned to DERBY_INSTALL to be an absolute path=20 +# -- (export DERBY_INSTALL=3D/opt/derby) instead of the current relative p= ath +# -- +# -- This file for use on Unix ksh systems +# --=20 +# --------------------------------------------------------- +# DERBY_INSTALL=3D + +export CLASSPATH=3D"${DERBY_INSTALL}/lib/derby.jar:${DERBY_INSTALL}/lib/de= rbytools.jar:${DERBY_INSTALL}/lib/derbynet.jar:${CLASSPATH}" Propchange: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin= /setNetworkServerCP.ksh ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/s= tartNetworkServer.bat URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/NetworkServer/bin/startNetworkServer.bat?rev=3D162093&r1=3D162092&r2= =3D162093&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/startNe= tworkServer.bat (original) +++ incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/startNe= tworkServer.bat Wed Apr 20 16:51:52 2005 @@ -1,29 +1,61 @@ -@REM --------------------------------------------------------- -@REM -- This batch file is an example of how to start the -@REM -- Derby server in the Network Server framework -@REM -- -@REM -- REQUIREMENTS:=20 -@REM -- You must have the derby jar files as well as the=20 -@REM -- derby network server class files in your classpath. -@REM -- -@REM -- Check the setNetworkServerCP.bat file for an example of -@REM -- what to set. -@REM --=20 -@REM -- This file for use on Windows systems -@REM --------------------------------------------------------- - -rem set DERBY_INSTALL=3D -=20 -@if !"%CLASSPATH%"=3D=3D! call "%DERBY_INSTALL%"/frameworks/NetworkServer/= bin/setNetworkServerCP.bat -@if "%CLASSPATH%" =3D=3D "" call "%DERBY_INSTALL%"/frameworks/NetworkServe= r/bin/setNetworkServerCP.bat - -@REM --------------------------------------------------------- -@REM -- start Derby as a Network server -@REM --------------------------------------------------------- -java org.apache.derby.drda.NetworkServerControl start - -@REM --------------------------------------------------------- -@REM -- To use a different JVM with a different syntax, simply edit -@REM -- this file -@REM --------------------------------------------------------- - +@REM -- This file for use on Windows systems +@REM --------------------------------------------------------- + +@echo off +@rem set DERBY_INSTALL=3D + + +@if !"%CLASSPATH%"=3D=3D! call "%DERBY_INSTALL%"/frameworks/NetworkServer/= bin/setNetworkServerCP.bat +@if "%CLASSPATH%" =3D=3D "" call "%DERBY_INSTALL%"/frameworks/NetworkServe= r/bin/setNetworkServerCP.bat + +if "%JAVA_HOME%" =3D=3D "" goto setjavaMsg + +:set_host + +if "%1" =3D=3D "" goto setServerHost +set derbyHost=3D%1 +goto set_port + +:setServerHost +if not "%DERBY_SERVER_HOST%" =3D=3D "" goto setServerHost2 +set derbyHost=3Dlocalhost +goto set_port + +:setServerHost2 +set derbyHost=3D%DERBY_SERVER_HOST% + + +:set_port +shift +if "%1" =3D=3D "" goto setServerPort +set derbyPort=3D%1 +goto start_server + + +:setServerPort +if not "%DERBY_SERVER_PORT%" =3D=3D "" goto setServerPort2 +set derbyPort=3D1527 +goto start_server + +:setServerPort2 +set derbyPort=3D%DERBY_SERVER_PORT% + +:start_server + +@REM --------------------------------------------------------- +@REM -- start Derby as a Network server +@REM --------------------------------------------------------- +%JAVA_HOME%\bin\java org.apache.derby.drda.NetworkServerControl start -h %= derbyHost% -p %derbyPort% + +goto end +@REM --------------------------------------------------------- +@REM -- To use a different JVM with a different syntax, simply edit +@REM -- this file +@REM --------------------------------------------------------- + +:setJavaMsg +echo Please set JAVA_HOME in order to start the Network Server + +:end +set derbyPort=3D +set derbyHost=3D Propchange: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin= /startNetworkServer.bat ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/s= tartNetworkServer.ksh URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/NetworkServer/bin/startNetworkServer.ksh?rev=3D162093&r1=3D162092&r2= =3D162093&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/startNe= tworkServer.ksh (original) +++ incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/startNe= tworkServer.ksh Wed Apr 20 16:51:52 2005 @@ -1,28 +1,61 @@ -## --------------------------------------------------------- -# -- This simple script is an example of how to start Derby=20 -# -- as a server inside the Network Server framework -# -- -# -- REQUIREMENTS:=20 -# -- You must have the derby and Network Server jar files in your CLASSP= ATH -# -- -# -- Check the setNetworkServerCP.ksh file for an example of -# -- what to set. -# --=20 -# -- This file for use on Unix ksh systems -# --------------------------------------------------------- -# --------------------------------------------------------- -# -- start Derby Network Server -# --------------------------------------------------------- - -# DERBY_INSTALL=3D - -[ -z "$CLASSPATH" ] && { - . "$DERBY_INSTALL"/frameworks/NetworkServer/bin/setNetworkServerCP.ksh -} - -java org.apache.derby.drda.NetworkServerControl start -# --------------------------------------------------------- -# -- To use a different JVM with a different syntax, simply edit -# -- this file -# --------------------------------------------------------- - +## --------------------------------------------------------- +# -- This simple script is an example of how to start Derby +# -- as a server inside the Network Server framework +# -- +# -- REQUIREMENTS: +# -- You must have the derby and Network Server jar files in your CLAS= SPATH +# -- +# -- Check the setNetworkServerCP.ksh file for an example of +# -- what to set. +# -- +# -- This file for use on Unix ksh systems +# --------------------------------------------------------- +# --------------------------------------------------------- +# -- start Derby Network Server +# --------------------------------------------------------- + +# DERBY_INSTALL=3D + +[ -z "$CLASSPATH" ] && { + . "$DERBY_INSTALL"/frameworks/NetworkServer/bin/setNetworkServerCP.ksh +} + +if [ -z "$JAVA_HOME" ] +then + JAVA_HOME=3D/usr/java +fi + +# --------------------------------------------------------- +# -- Determine the host and port to use by: +# -- 1. Check to see if the host and port are set on the command line +# -- 2. Check to see if DERBY_SERVER_HOST and DERBY_SERVER_PORT +# -- 3. Default to localhost/1527 +# --------------------------------------------------------- + +if [ "$1" ] +then + DERBY_SERVER_HOST=3D$1 +fi + +if [ -z "$DERBY_SERVER_HOST" ] +then + DERBY_SERVER_HOST=3Dlocalhost +fi + +if [ "$2" ] +then + DERBY_SERVER_PORT=3D$2 +fi + +if [ -z "$DERBY_SERVER_PORT" ] +then + DERBY_SERVER_PORT=3D1527 +fi + +$JAVA_HOME/bin/java org.apache.derby.drda.NetworkServerControl start -h $D= ERBY_SERVER_HOST -p $DERBY_SERVER_PORT + +# --------------------------------------------------------- +# -- To use a different JVM with a different syntax, simply edit +# -- this file +# --------------------------------------------------------- + Propchange: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin= /startNetworkServer.ksh ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/s= topNetworkServer.bat URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/NetworkServer/bin/stopNetworkServer.bat?rev=3D162093&r1=3D162092&r2= =3D162093&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/stopNet= workServer.bat (original) +++ incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/stopNet= workServer.bat Wed Apr 20 16:51:52 2005 @@ -1,26 +1,68 @@ -@REM --------------------------------------------------------- -@REM -- This batch file is an example of how to shutdown the -@REM -- Derby server in the Network Server framework -@REM -- -@REM -- REQUIREMENTS:=20 -@REM -- You must have the derby jar files as well as the=20 -@REM -- Network Server class files in your classpath. -@REM -- -@REM -- Check the setNetworkServerCP.bat file for an example of -@REM -- what to set. -@REM --=20 -@REM -- This file for use on Windows systems -@REM --------------------------------------------------------- - -rem set DERBY_INSTALL=3D -=20 -@if !"%CLASSPATH%"=3D=3D! call "%DERBY_INSTALL%"/frameworks/NetworkServer/= bin/setNetworkServerCP.bat -@if "%CLASSPATH%" =3D=3D "" call "%DERBY_INSTALL%"/frameworks/NetworkServe= r/bin/setNetworkServerCP.bat - -java org.apache.derby.drda.NetworkServerControl shutdown - -@REM --------------------------------------------------------- -@REM -- To use a different JVM with a different syntax, simply edit -@REM -- this file -@REM --------------------------------------------------------- - +@REM -- +@REM -- REQUIREMENTS: +@REM -- You must have the derby jar files as well as the +@REM -- derby network server class files in your classpath. +@REM -- +@REM -- Check the setNetworkServerCP.bat file for an example of +@REM -- what to set. +@REM -- This file for use on Windows systems +@REM --------------------------------------------------------- + +@echo off +@rem set DERBY_INSTALL=3D + + +@if !"%CLASSPATH%"=3D=3D! call "%DERBY_INSTALL%"/frameworks/NetworkServer/= bin/setNetworkServerCP.bat +@if "%CLASSPATH%" =3D=3D "" call "%DERBY_INSTALL%"/frameworks/NetworkServe= r/bin/setNetworkServerCP.bat + +if "%JAVA_HOME%" =3D=3D "" goto setjavaMsg + +:set_host + +if "%1" =3D=3D "" goto setServerHost +set derbyHost=3D%1 +goto set_port + +:setServerHost +if not "%DERBY_SERVER_HOST%" =3D=3D "" goto setServerHost2 +set derbyHost=3Dlocalhost +goto set_port + +:setServerHost2 +set derbyHost=3D%DERBY_SERVER_HOST% + + +:set_port +shift +if "%1" =3D=3D "" goto setServerPort +set derbyPort=3D%1 +goto stop_server + + +:setServerPort +if not "%DERBY_SERVER_PORT%" =3D=3D "" goto setServerPort2 +set derbyPort=3D1527 +goto stop_server + +:setServerPort2 +set derbyPort=3D%DERBY_SERVER_PORT% + +:stop_server + +@REM --------------------------------------------------------- +@REM -- shutdown Derby as a Network server +@REM --------------------------------------------------------- +%JAVA_HOME%\bin\java org.apache.derby.drda.NetworkServerControl shutdown -= h %derbyHost% -p %derbyPort% + +goto end +@REM --------------------------------------------------------- +@REM -- To use a different JVM with a different syntax, simply edit +@REM -- this file +@REM --------------------------------------------------------- + +:setJavaMsg +echo Please set JAVA_HOME in order to start the Network Server + +:end +set derbyPort=3D +set derbyHost=3D Propchange: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin= /stopNetworkServer.bat ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/s= topNetworkServer.ksh URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/NetworkServer/bin/stopNetworkServer.ksh?rev=3D162093&r1=3D162092&r2= =3D162093&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/stopNet= workServer.ksh (original) +++ incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/stopNet= workServer.ksh Wed Apr 20 16:51:52 2005 @@ -1,25 +1,61 @@ -# --------------------------------------------------------- -# -- This simple script is an example of how to shutdown Derby=20 -# -- running as a server inside the Network Server framework -# -- -# -- REQUIREMENTS:=20 -# -- You must have the derby jar files as well as the=20 -# -- derby network server class files in your classpath. -# -- -# -- Check the setNetworkServerCP.ksh file for an example of -# -- what to set. -# --=20 -# -- This file for use on Unix ksh systems -# --------------------------------------------------------- - -# DERBY_INSTALL=3D - -[ -z "$CLASSPATH" ] && { - . "$DERBY_INSTALL"/frameworks/NetworkServer/bin/setNetworkServerCP.ksh -} - -java org.apache.derby.drda.NetworkServerControl shutdown -# --------------------------------------------------------- -# -- To use a different JVM with a different syntax, simply edit -# -- this file -# --------------------------------------------------------- +## --------------------------------------------------------- +# -- This simple script is an example of how to shutdown Derby +# -- running as a server inside the Network Server framework +# -- +# -- REQUIREMENTS: +# -- You must have the derby and Network Server jar files in your CLAS= SPATH +# -- +# -- Check the setNetworkServerCP.ksh file for an example of +# -- what to set. +# -- +# -- This file for use on Unix ksh systems +# --------------------------------------------------------- +# --------------------------------------------------------- +# -- shutdown Derby Network Server +# --------------------------------------------------------- + +# DERBY_INSTALL=3D + +[ -z "$CLASSPATH" ] && { + . "$DERBY_INSTALL"/frameworks/NetworkServer/bin/setNetworkServerCP.ksh +} + +if [ -z "$JAVA_HOME" ] +then + JAVA_HOME=3D/usr/java +fi + +# --------------------------------------------------------- +# -- Determine the host and port to use by: +# -- 1. Check to see if the host and port are set on the command line +# -- 2. Check to see if DERBY_SERVER_HOST and DERBY_SERVER_PORT +# -- 3. Default to localhost/1527 +# --------------------------------------------------------- + +if [ "$1" ] +then + DERBY_SERVER_HOST=3D$1 +fi + +if [ -z "$DERBY_SERVER_HOST" ] +then + DERBY_SERVER_HOST=3Dlocalhost +fi + +if [ "$2" ] +then + DERBY_SERVER_PORT=3D$2 +fi + +if [ -z "$DERBY_SERVER_PORT" ] +then + DERBY_SERVER_PORT=3D1527 +fi + +$JAVA_HOME/bin/java org.apache.derby.drda.NetworkServerControl shutdown -h= $DERBY_SERVER_HOST -p $DERBY_SERVER_PORT + +# --------------------------------------------------------- +# -- To use a different JVM with a different syntax, simply edit +# -- this file +# --------------------------------------------------------- + Propchange: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin= /stopNetworkServer.ksh ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/s= ysinfo.bat URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/NetworkServer/bin/sysinfo.bat?rev=3D162093&r1=3D162092&r2=3D162093&vi= ew=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/sysinfo= .bat (original) +++ incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/sysinfo= .bat Wed Apr 20 16:51:52 2005 @@ -1,32 +1,32 @@ -@REM --------------------------------------------------------- -@REM -- This batch file is an example of how to use sysinfo to get -@REM -- important system information -@REM -- -@REM -- REQUIREMENTS: -@REM -- -@REM -- This utility will report important system info about=20 -@REM -- jar files which are in your classpath. Jar files which are not -@REM -- if your classpath will not be reported.=20 -@REM -- -@REM -- Check the setNetworkServerCP.bat to see an example of adding the -@REM -- the Derby jars to your classpath. -@REM --=20 -@REM -- This file for use on Windows systems -@REM --------------------------------------------------------- - -rem set DERBY_INSTALL=3D -=20 -@if !"%CLASSPATH%"=3D=3D! call "%DERBY_INSTALL%"/frameworks/NetworkServer/= bin/setNetworkServerCP.bat -@if "%CLASSPATH%" =3D=3D "" call "%DERBY_INSTALL%"/frameworks/NetworkServe= r/bin/setNetworkServerCP.bat - -@REM --------------------------------------------------------- -@REM -- start sysinfo -@REM --------------------------------------------------------- -java org.apache.derby.drda.NetworkServerControl sysinfo %* - -@REM --------------------------------------------------------- -@REM -- To use a different JVM with a different syntax, simply edit -@REM -- this file -@REM --------------------------------------------------------- - - +@REM --------------------------------------------------------- +@REM -- This batch file is an example of how to use sysinfo to get +@REM -- important system information +@REM -- +@REM -- REQUIREMENTS: +@REM -- +@REM -- This utility will report important system info about=20 +@REM -- jar files which are in your classpath. Jar files which are not +@REM -- if your classpath will not be reported.=20 +@REM -- +@REM -- Check the setNetworkServerCP.bat to see an example of adding the +@REM -- the Derby jars to your classpath. +@REM --=20 +@REM -- This file for use on Windows systems +@REM --------------------------------------------------------- + +rem set DERBY_INSTALL=3D +=20 +@if !"%CLASSPATH%"=3D=3D! call "%DERBY_INSTALL%"/frameworks/NetworkServer/= bin/setNetworkServerCP.bat +@if "%CLASSPATH%" =3D=3D "" call "%DERBY_INSTALL%"/frameworks/NetworkServe= r/bin/setNetworkServerCP.bat + +@REM --------------------------------------------------------- +@REM -- start sysinfo +@REM --------------------------------------------------------- +java org.apache.derby.drda.NetworkServerControl sysinfo %* + +@REM --------------------------------------------------------- +@REM -- To use a different JVM with a different syntax, simply edit +@REM -- this file +@REM --------------------------------------------------------- + + Propchange: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin= /sysinfo.bat ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/s= ysinfo.ksh URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/NetworkServer/bin/sysinfo.ksh?rev=3D162093&r1=3D162092&r2=3D162093&vi= ew=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/sysinfo= .ksh (original) +++ incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin/sysinfo= .ksh Wed Apr 20 16:51:52 2005 @@ -1,33 +1,33 @@ -# --------------------------------------------------------- -# -- This script file is an example of how to use sysinfo to get -# -- important system information -# -- -# -- REQUIREMENTS: -# -- -# -- This utility will report important system info about=20 -# -- jar files which are in your classpath and the current setting of -# -- Derby Network Server parameters. Jar files which are not -# -- if your classpath will not be reported.=20 -# -- The Derby Network Server must be running for this utility to work. -# -- -# -- Check the setNetworkServerCP.ksh to see an example of adding the -# -- the Derby jars to your classpath. -# --=20 -# -- -# -- This file for use on Unix korn shell systems -# --------------------------------------------------------- - -# DERBY_INSTALL=3D - -[ -z "$CLASSPATH" ] && { - . "$DERBY_INSTALL"/frameworks/NetworkServer/bin/setNetworkServerCP.ksh -} - -# --------------------------------------------------------- -# -- start sysinfo -# --------------------------------------------------------- -java org.apache.derby.drda.NetworkServerControl sysinfo $* -# --------------------------------------------------------- -# -- To use a different JVM with a different syntax, simply edit -# -- this file -# --------------------------------------------------------- +# --------------------------------------------------------- +# -- This script file is an example of how to use sysinfo to get +# -- important system information +# -- +# -- REQUIREMENTS: +# -- +# -- This utility will report important system info about=20 +# -- jar files which are in your classpath and the current setting of +# -- Derby Network Server parameters. Jar files which are not +# -- if your classpath will not be reported.=20 +# -- The Derby Network Server must be running for this utility to work. +# -- +# -- Check the setNetworkServerCP.ksh to see an example of adding the +# -- the Derby jars to your classpath. +# --=20 +# -- +# -- This file for use on Unix korn shell systems +# --------------------------------------------------------- + +# DERBY_INSTALL=3D + +[ -z "$CLASSPATH" ] && { + . "$DERBY_INSTALL"/frameworks/NetworkServer/bin/setNetworkServerCP.ksh +} + +# --------------------------------------------------------- +# -- start sysinfo +# --------------------------------------------------------- +java org.apache.derby.drda.NetworkServerControl sysinfo $* +# --------------------------------------------------------- +# -- To use a different JVM with a different syntax, simply edit +# -- this file +# --------------------------------------------------------- Propchange: incubator/derby/code/branches/10.0/frameworks/NetworkServer/bin= /sysinfo.ksh ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/embedded/bin/dblook= .bat URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/embedded/bin/dblook.bat?rev=3D162093&r1=3D162092&r2=3D162093&view=3Dd= iff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/embedded/bin/dblook.bat (= original) +++ incubator/derby/code/branches/10.0/frameworks/embedded/bin/dblook.bat W= ed Apr 20 16:51:52 2005 @@ -1,28 +1,28 @@ -@REM --------------------------------------------------------- -@REM -- This batch file is an example of how to start dblook in=20 -@REM -- an embedded environment. -@REM -- -@REM -- REQUIREMENTS:=20 -@REM -- You must have the Derby libraries in your classpath -@REM --=20 -@REM -- See the setEmbeddedCP.bat for an example of -@REM -- how to do this. -@REM -- -@REM -- This file for use on Windows systems -@REM --------------------------------------------------------- - -rem set DERBY_INSTALL=3D -=20 -@if !"%CLASSPATH%"=3D=3D! call "%DERBY_INSTALL%"/frameworks/embedded/bin/s= etEmbeddedCP.bat -@if "%CLASSPATH%" =3D=3D "" call "%DERBY_INSTALL%"/frameworks/embedded/bin= /setEmbeddedCP.bat - -@REM --------------------------------------------------------- -@REM -- start dblook -@REM --------------------------------------------------------- -java org.apache.derby.tools.dblook %* - -@REM --------------------------------------------------------- -@REM -- To use a different JVM with a different syntax, simply edit -@REM -- this file -@REM --------------------------------------------------------- - +@REM --------------------------------------------------------- +@REM -- This batch file is an example of how to start dblook in=20 +@REM -- an embedded environment. +@REM -- +@REM -- REQUIREMENTS:=20 +@REM -- You must have the Derby libraries in your classpath +@REM --=20 +@REM -- See the setEmbeddedCP.bat for an example of +@REM -- how to do this. +@REM -- +@REM -- This file for use on Windows systems +@REM --------------------------------------------------------- + +rem set DERBY_INSTALL=3D +=20 +@if !"%CLASSPATH%"=3D=3D! call "%DERBY_INSTALL%"/frameworks/embedded/bin/s= etEmbeddedCP.bat +@if "%CLASSPATH%" =3D=3D "" call "%DERBY_INSTALL%"/frameworks/embedded/bin= /setEmbeddedCP.bat + +@REM --------------------------------------------------------- +@REM -- start dblook +@REM --------------------------------------------------------- +java org.apache.derby.tools.dblook %* + +@REM --------------------------------------------------------- +@REM -- To use a different JVM with a different syntax, simply edit +@REM -- this file +@REM --------------------------------------------------------- + Propchange: incubator/derby/code/branches/10.0/frameworks/embedded/bin/dblo= ok.bat ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/embedded/bin/dblook= .ksh URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/embedded/bin/dblook.ksh?rev=3D162093&r1=3D162092&r2=3D162093&view=3Dd= iff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/embedded/bin/dblook.ksh (= original) +++ incubator/derby/code/branches/10.0/frameworks/embedded/bin/dblook.ksh W= ed Apr 20 16:51:52 2005 @@ -1,29 +1,29 @@ -# --------------------------------------------------------- -# -- This simple script is an example of how to start dblook in=20 -# -- an embedded environment. -# -- -#-- REQUIREMENTS:=20 -# -- You must have the Derby libraries in your classpath -# --=20 -# -- See the setEmbeddedCP.ksh for an example of -# -- how to do this. -# -- -# -- This file for use on Unix ksh systems -# --------------------------------------------------------- - -# DERBY_INSTALL=3D - -[ -z "$CLASSPATH" ] && { - . "$DERBY_INSTALL"/frameworks/embedded/bin/setEmbeddedCP.ksh -} -=20 -# --------------------------------------------------------- -# -- start dblook -# --------------------------------------------------------- -java org.apache.derby.tools.dblook $@ - -# --------------------------------------------------------- -# -- To use a different JVM with a different syntax, simply edit -# -- this file -# --------------------------------------------------------- - +# --------------------------------------------------------- +# -- This simple script is an example of how to start dblook in=20 +# -- an embedded environment. +# -- +#-- REQUIREMENTS:=20 +# -- You must have the Derby libraries in your classpath +# --=20 +# -- See the setEmbeddedCP.ksh for an example of +# -- how to do this. +# -- +# -- This file for use on Unix ksh systems +# --------------------------------------------------------- + +# DERBY_INSTALL=3D + +[ -z "$CLASSPATH" ] && { + . "$DERBY_INSTALL"/frameworks/embedded/bin/setEmbeddedCP.ksh +} +=20 +# --------------------------------------------------------- +# -- start dblook +# --------------------------------------------------------- +java org.apache.derby.tools.dblook $@ + +# --------------------------------------------------------- +# -- To use a different JVM with a different syntax, simply edit +# -- this file +# --------------------------------------------------------- + Propchange: incubator/derby/code/branches/10.0/frameworks/embedded/bin/dblo= ok.ksh ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/embedded/bin/ij.bat URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/embedded/bin/ij.bat?rev=3D162093&r1=3D162092&r2=3D162093&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/embedded/bin/ij.bat (orig= inal) +++ incubator/derby/code/branches/10.0/frameworks/embedded/bin/ij.bat Wed A= pr 20 16:51:52 2005 @@ -1,29 +1,29 @@ -@REM --------------------------------------------------------- -@REM -- This batch file is an example of how to start ij in=20 -@REM -- an embedded environment. -@REM -- -@REM -- REQUIREMENTS:=20 -@REM -- You must have the Derby libraries in your classpath -@REM --=20 -@REM -- See the setEmbeddedCP.bat for an example of -@REM -- how to do this. -@REM -- -@REM -- This file for use on Windows systems -@REM --------------------------------------------------------- - -rem set DERBY_INSTALL=3D -=20 -@if !"%CLASSPATH%"=3D=3D! call "%DERBY_INSTALL%"/frameworks/embedded/bin/s= etEmbeddedCP.bat -@if "%CLASSPATH%" =3D=3D "" call "%DERBY_INSTALL%"/frameworks/embedded/bin= /setEmbeddedCP.bat - -@REM --------------------------------------------------------- -@REM -- start ij -@REM --------------------------------------------------------- -java -Dij.protocol=3Djdbc:derby: org.apache.derby.tools.ij - - -@REM --------------------------------------------------------- -@REM -- To use a different JVM with a different syntax, simply edit -@REM -- this file -@REM --------------------------------------------------------- - +@REM --------------------------------------------------------- +@REM -- This batch file is an example of how to start ij in=20 +@REM -- an embedded environment. +@REM -- +@REM -- REQUIREMENTS:=20 +@REM -- You must have the Derby libraries in your classpath +@REM --=20 +@REM -- See the setEmbeddedCP.bat for an example of +@REM -- how to do this. +@REM -- +@REM -- This file for use on Windows systems +@REM --------------------------------------------------------- + +rem set DERBY_INSTALL=3D +=20 +@if !"%CLASSPATH%"=3D=3D! call "%DERBY_INSTALL%"/frameworks/embedded/bin/s= etEmbeddedCP.bat +@if "%CLASSPATH%" =3D=3D "" call "%DERBY_INSTALL%"/frameworks/embedded/bin= /setEmbeddedCP.bat + +@REM --------------------------------------------------------- +@REM -- start ij +@REM --------------------------------------------------------- +java -Dij.protocol=3Djdbc:derby: org.apache.derby.tools.ij + + +@REM --------------------------------------------------------- +@REM -- To use a different JVM with a different syntax, simply edit +@REM -- this file +@REM --------------------------------------------------------- + Propchange: incubator/derby/code/branches/10.0/frameworks/embedded/bin/ij.b= at ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/embedded/bin/ij.ksh URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/embedded/bin/ij.ksh?rev=3D162093&r1=3D162092&r2=3D162093&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/embedded/bin/ij.ksh (orig= inal) +++ incubator/derby/code/branches/10.0/frameworks/embedded/bin/ij.ksh Wed A= pr 20 16:51:52 2005 @@ -1,29 +1,29 @@ -# --------------------------------------------------------- -# -- This simple script is an example of how to start ij in=20 -# -- and embedded environment. -# -- -#-- REQUIREMENTS:=20 -# -- You must have the Derby libraries in your classpath -# --=20 -# -- See the setEmbeddedCP.ksh for an example of -# -- how to do this. -# -- -# -- This file for use on Unix ksh systems -# --------------------------------------------------------- - -# DERBY_INSTALL=3D - -[ -z "$CLASSPATH" ] && { - . "$DERBY_INSTALL"/frameworks/embedded/bin/setEmbeddedCP.ksh -} -=20 -# --------------------------------------------------------- -# -- start ij -# --------------------------------------------------------- -java -Dij.protocol=3Djdbc:derby: org.apache.derby.tools.ij - -# --------------------------------------------------------- -# -- To use a different JVM with a different syntax, simply edit -# -- this file -# --------------------------------------------------------- - +# --------------------------------------------------------- +# -- This simple script is an example of how to start ij in=20 +# -- and embedded environment. +# -- +#-- REQUIREMENTS:=20 +# -- You must have the Derby libraries in your classpath +# --=20 +# -- See the setEmbeddedCP.ksh for an example of +# -- how to do this. +# -- +# -- This file for use on Unix ksh systems +# --------------------------------------------------------- + +# DERBY_INSTALL=3D + +[ -z "$CLASSPATH" ] && { + . "$DERBY_INSTALL"/frameworks/embedded/bin/setEmbeddedCP.ksh +} +=20 +# --------------------------------------------------------- +# -- start ij +# --------------------------------------------------------- +java -Dij.protocol=3Djdbc:derby: org.apache.derby.tools.ij + +# --------------------------------------------------------- +# -- To use a different JVM with a different syntax, simply edit +# -- this file +# --------------------------------------------------------- + Propchange: incubator/derby/code/branches/10.0/frameworks/embedded/bin/ij.k= sh ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/embedded/bin/setEmb= eddedCP.bat URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/embedded/bin/setEmbeddedCP.bat?rev=3D162093&r1=3D162092&r2=3D162093&v= iew=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/embedded/bin/setEmbeddedC= P=2Ebat (original) +++ incubator/derby/code/branches/10.0/frameworks/embedded/bin/setEmbeddedC= P=2Ebat Wed Apr 20 16:51:52 2005 @@ -1,17 +1,17 @@ -@REM --------------------------------------------------------- -@REM -- This batch file sets the CLASSPATH environment variable -@REM -- for use with Derby products in embedded mode -@REM -- -@REM -- To use this script from other locations, change the=20 -@REM -- value assigned to DERBY_INSTALL to be an absolute path=20 -@REM -- (set DERBY_INSTALL=3DC:\derby) instead of the current relative pat= h -@REM -- -@REM -- This file for use on Windows systems -@REM --=20 -@REM --------------------------------------------------------- - -rem set DERBY_INSTALL=3D - -FOR %%X in ("%DERBY_INSTALL%") DO SET DERBY_INSTALL=3D%%~sX - -set CLASSPATH=3D%DERBY_INSTALL%\lib\derby.jar;%DERBY_INSTALL%\lib\derbytoo= ls.jar;%CLASSPATH% +@REM --------------------------------------------------------- +@REM -- This batch file sets the CLASSPATH environment variable +@REM -- for use with Derby products in embedded mode +@REM -- +@REM -- To use this script from other locations, change the=20 +@REM -- value assigned to DERBY_INSTALL to be an absolute path=20 +@REM -- (set DERBY_INSTALL=3DC:\derby) instead of the current relative path +@REM -- +@REM -- This file for use on Windows systems +@REM --=20 +@REM --------------------------------------------------------- + +rem set DERBY_INSTALL=3D + +FOR %%X in ("%DERBY_INSTALL%") DO SET DERBY_INSTALL=3D%%~sX + +set CLASSPATH=3D%DERBY_INSTALL%\lib\derby.jar;%DERBY_INSTALL%\lib\derbytoo= ls.jar;%CLASSPATH% Propchange: incubator/derby/code/branches/10.0/frameworks/embedded/bin/setE= mbeddedCP.bat ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/embedded/bin/setEmb= eddedCP.ksh URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/embedded/bin/setEmbeddedCP.ksh?rev=3D162093&r1=3D162092&r2=3D162093&v= iew=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/embedded/bin/setEmbeddedC= P=2Eksh (original) +++ incubator/derby/code/branches/10.0/frameworks/embedded/bin/setEmbeddedC= P=2Eksh Wed Apr 20 16:51:52 2005 @@ -1,15 +1,15 @@ -# --------------------------------------------------------- -# -- This script file sets the CLASSPATH environment variable -# -- for use with Derby products in embedded mode -# -- -# -- To use this script from other locations, change the=20 -# -- value assigned to DERBY_INSTALL to be an absolute path=20 -# -- (export DERBY_INSTALL=3D/opt/derby) instead of the current relative p= ath -# -- -# -- This file for use on Unix ksh systems -# --=20 -# --------------------------------------------------------- - -# DERBY_INSTALL=3D - -export CLASSPATH=3D"${DERBY_INSTALL}/lib/derby.jar:${DERBY_INSTALL}/lib/de= rbytools.jar:${CLASSPATH}" +# --------------------------------------------------------- +# -- This script file sets the CLASSPATH environment variable +# -- for use with Derby products in embedded mode +# -- +# -- To use this script from other locations, change the=20 +# -- value assigned to DERBY_INSTALL to be an absolute path=20 +# -- (export DERBY_INSTALL=3D/opt/derby) instead of the current relative p= ath +# -- +# -- This file for use on Unix ksh systems +# --=20 +# --------------------------------------------------------- + +# DERBY_INSTALL=3D + +export CLASSPATH=3D"${DERBY_INSTALL}/lib/derby.jar:${DERBY_INSTALL}/lib/de= rbytools.jar:${CLASSPATH}" Propchange: incubator/derby/code/branches/10.0/frameworks/embedded/bin/setE= mbeddedCP.ksh ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/embedded/bin/sysinf= o=2Ebat URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/embedded/bin/sysinfo.bat?rev=3D162093&r1=3D162092&r2=3D162093&view=3D= diff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/embedded/bin/sysinfo.bat = (original) +++ incubator/derby/code/branches/10.0/frameworks/embedded/bin/sysinfo.bat = Wed Apr 20 16:51:52 2005 @@ -1,37 +1,37 @@ -@REM --------------------------------------------------------- -@REM -- This batch file is an example of how to use sysinfo to get -@REM -- important system information -@REM -- -@REM -- REQUIREMENTS: -@REM -- -@REM -- This utility will report important system info about=20 -@REM -- jar files which are in your classpath. Jar files which are not -@REM -- if your classpath will not be reported.=20 -@REM -- -@REM -- Check the setCP.bat to see an example of adding the -@REM -- the Derby jars to your classpath. -@REM --=20 -@REM -- This file for use on Windows systems -@REM --------------------------------------------------------- - -rem set DERBY_INSTALL=3D -=20 -@if !"%CLASSPATH%"=3D=3D! call "%DERBY_INSTALL%"/frameworks/embedded/bin/s= etEmbeddedCP.bat -@if "%CLASSPATH%" =3D=3D "" call "%DERBY_INSTALL%"/frameworks/embedded/bin= /setEmbeddedCP.bat - -@REM --------------------------------------------------------- -@REM -- start sysinfo -@REM --------------------------------------------------------- -java org.apache.derby.tools.sysinfo - -@REM --------------------------------------------------------- -@REM -- To use Microsoft's JView JVM, use the following command -@REM --------------------------------------------------------- -@REM -- jview org.apache.derby.tools.sysinfo - -@REM --------------------------------------------------------- -@REM -- To use a different JVM with a different syntax, simply edit -@REM -- this file -@REM --------------------------------------------------------- - - +@REM --------------------------------------------------------- +@REM -- This batch file is an example of how to use sysinfo to get +@REM -- important system information +@REM -- +@REM -- REQUIREMENTS: +@REM -- +@REM -- This utility will report important system info about=20 +@REM -- jar files which are in your classpath. Jar files which are not +@REM -- if your classpath will not be reported.=20 +@REM -- +@REM -- Check the setCP.bat to see an example of adding the +@REM -- the Derby jars to your classpath. +@REM --=20 +@REM -- This file for use on Windows systems +@REM --------------------------------------------------------- + +rem set DERBY_INSTALL=3D +=20 +@if !"%CLASSPATH%"=3D=3D! call "%DERBY_INSTALL%"/frameworks/embedded/bin/s= etEmbeddedCP.bat +@if "%CLASSPATH%" =3D=3D "" call "%DERBY_INSTALL%"/frameworks/embedded/bin= /setEmbeddedCP.bat + +@REM --------------------------------------------------------- +@REM -- start sysinfo +@REM --------------------------------------------------------- +java org.apache.derby.tools.sysinfo + +@REM --------------------------------------------------------- +@REM -- To use Microsoft's JView JVM, use the following command +@REM --------------------------------------------------------- +@REM -- jview org.apache.derby.tools.sysinfo + +@REM --------------------------------------------------------- +@REM -- To use a different JVM with a different syntax, simply edit +@REM -- this file +@REM --------------------------------------------------------- + + Propchange: incubator/derby/code/branches/10.0/frameworks/embedded/bin/sysi= nfo.bat ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/embedded/bin/sysinf= o=2Eksh URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/embedded/bin/sysinfo.ksh?rev=3D162093&r1=3D162092&r2=3D162093&view=3D= diff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/embedded/bin/sysinfo.ksh = (original) +++ incubator/derby/code/branches/10.0/frameworks/embedded/bin/sysinfo.ksh = Wed Apr 20 16:51:52 2005 @@ -1,34 +1,34 @@ -# --------------------------------------------------------- -# -- This script file is an example of how to use sysinfo to get -# -- important system information -# -- -# -- REQUIREMENTS: -# -- -# -- This utility will report important system info about=20 -# -- jar files which are in your classpath. Jar files which are not -# -- if your classpath will not be reported.=20 -# -- -# -- Check the setCP.ksh to see an example of adding the -# -- the Derby jars to your classpath. -# --=20 -# -- -# -- This file for use on Unix korn shell systems -# --------------------------------------------------------- - -# DERBY_INSTALL=3D - -[ -z "$CLASSPATH" ] && { - . "$DERBY_INSTALL"/frameworks/embedded/bin/setEmbeddedCP.ksh -} -=20 -# --------------------------------------------------------- -# -- start sysinfo -# --------------------------------------------------------- -java org.apache.derby.tools.sysinfo - -# --------------------------------------------------------- -# -- To use a different JVM with a different syntax, simply edit -# -- this file -# --------------------------------------------------------- - - +# --------------------------------------------------------- +# -- This script file is an example of how to use sysinfo to get +# -- important system information +# -- +# -- REQUIREMENTS: +# -- +# -- This utility will report important system info about=20 +# -- jar files which are in your classpath. Jar files which are not +# -- if your classpath will not be reported.=20 +# -- +# -- Check the setCP.ksh to see an example of adding the +# -- the Derby jars to your classpath. +# --=20 +# -- +# -- This file for use on Unix korn shell systems +# --------------------------------------------------------- + +# DERBY_INSTALL=3D + +[ -z "$CLASSPATH" ] && { + . "$DERBY_INSTALL"/frameworks/embedded/bin/setEmbeddedCP.ksh +} +=20 +# --------------------------------------------------------- +# -- start sysinfo +# --------------------------------------------------------- +java org.apache.derby.tools.sysinfo + +# --------------------------------------------------------- +# -- To use a different JVM with a different syntax, simply edit +# -- this file +# --------------------------------------------------------- + + Propchange: incubator/derby/code/branches/10.0/frameworks/embedded/bin/sysi= nfo.ksh ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/embedded/readme.html URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/embedded/readme.html?rev=3D162093&r1=3D162092&r2=3D162093&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/embedded/readme.html (ori= ginal) +++ incubator/derby/code/branches/10.0/frameworks/embedded/readme.html Wed = Apr 20 16:51:52 2005 @@ -1,20 +1,20 @@ - - - - - -Derby's Embedded Framework - - - -

Derby's embedded framework

- - - + + + + + +Derby's Embedded Framework + + + +

Derby's embedded framework

+ + + Propchange: incubator/derby/code/branches/10.0/frameworks/embedded/readme.h= tml ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/frameworks/readme.html URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/frame= works/readme.html?rev=3D162093&r1=3D162092&r2=3D162093&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/frameworks/readme.html (original) +++ incubator/derby/code/branches/10.0/frameworks/readme.html Wed Apr 20 16= :51:52 2005 @@ -1,34 +1,34 @@ - - - -About Derby's Frameworks - - - - -

About Derby's Frameworks

-

A framework is the environment in w= hich Derby runs. The framework in which you run Derby affects how you run a= pplications against Derby.

-

The frameworks directory contains subdirectories for each fram= ework with supporting files. Depending on the framework, the subdirectory i= ncludes: -

    -
  • bin Subdirectory
    - All subdirectories in this directory contain a bin subdirectory = that has scripts that serve as examples of how to run some of the basic Der= by tools and utilities tailored for the particular framework. For server fr= ameworks, start and stop scripts are also provided. -
    To use the scripts for a particular framework, modify the scripts as n= ecessary and put that framework's bin subdirectory first in your p= ath.

  • -
-

For an easy-to-follow example of how to run an application in the two f= rameworks, see the simple = example.

-

For more information about frameworks, see Getting Started with Derby.

-

Embedded Framework

-

An embedded framework is the most b= asic framework. Derby runs embedded in a Java application. When the applica= tion loads the local JDBC driver, it starts up the Derby engine. When the a= pplication shuts down, it shuts down the Derby engine. Only a single applic= ation can access a database at one time. -

The bin subdirectory in frameworks/embedded contains = scripts for running some of the Derby tools in an embedded environment. For= working in an embedded environment, put the frameworks/embedded/bin subdirectory first in your path.

-

Server Framework

-

A server framework is a continuously running= Java application that allows multiple, remote JDBC applications to connect= to Derby. -

-

Derby Network Server

-

The Derby Network Server is a server framework = that comes with Derby. The Derby Network Server works with the DB2 JCC JDBC= driver; please read the Derby documentation on the differences between thi= s driver and the embedded driver. -

    -
  • The subdirectories in this directory contain scripts that serve as ex= amples for how to run Derby tools and utilities as client applications to D= erby running inside the Derby Network Server framework. It also contains sc= ripts for starting up the framework.
  • -
- - - + + + +About Derby's Frameworks + + + + +

About Derby's Frameworks

+

A framework is the environment in w= hich Derby runs. The framework in which you run Derby affects how you run a= pplications against Derby.

+

The frameworks directory contains subdirectories for each fram= ework with supporting files. Depending on the framework, the subdirectory i= ncludes: +

    +
  • bin Subdirectory
    + All subdirectories in this directory contain a bin subdirectory = that has scripts that serve as examples of how to run some of the basic Der= by tools and utilities tailored for the particular framework. For server fr= ameworks, start and stop scripts are also provided. +
    To use the scripts for a particular framework, modify the scripts as n= ecessary and put that framework's bin subdirectory first in your p= ath.

  • +
+

For an easy-to-follow example of how to run an application in the two f= rameworks, see the simple = example.

+

For more information about frameworks, see Getting Started with Derby.

+

Embedded Framework

+

An embedded framework is the most b= asic framework. Derby runs embedded in a Java application. When the applica= tion loads the local JDBC driver, it starts up the Derby engine. When the a= pplication shuts down, it shuts down the Derby engine. Only a single applic= ation can access a database at one time. +

The bin subdirectory in frameworks/embedded contains = scripts for running some of the Derby tools in an embedded environment. For= working in an embedded environment, put the frameworks/embedded/bin subdirectory first in your path.

+

Server Framework

+

A server framework is a continuously running= Java application that allows multiple, remote JDBC applications to connect= to Derby. +

+

Derby Network Server

+

The Derby Network Server is a server framework = that comes with Derby. The Derby Network Server works with the DB2 JCC JDBC= driver; please read the Derby documentation on the differences between thi= s driver and the embedded driver. +

    +
  • The subdirectories in this directory contain scripts that serve as ex= amples for how to run Derby tools and utilities as client applications to D= erby running inside the Derby Network Server framework. It also contains sc= ripts for starting up the framework.
  • +
+ + + Propchange: incubator/derby/code/branches/10.0/frameworks/readme.html ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/code/branches/10.0/java/demo/nserverdemo/NsSample= .java URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/java/= demo/nserverdemo/NsSample.java?rev=3D162093&r1=3D162092&r2=3D162093&view=3D= diff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/java/demo/nserverdemo/NsSample.java = (original) +++ incubator/derby/code/branches/10.0/java/demo/nserverdemo/NsSample.java = Wed Apr 20 16:51:52 2005 @@ -12,6 +12,7 @@ import java.sql.SQLException; import java.sql.DriverManager; import java.io.IOException; +import java.sql.Connection; import java.sql.Statement; import java.sql.ResultSet; import java.sql.SQLException; @@ -70,7 +71,7 @@ // To connect to Derby Network Server // This URL describes the target database for type 4 connectivity // Notice that the properties may be established via the URL syntax - private static final String CS_NS_DBURL=3D "jdbc:derby:net://localhost:"+= NETWORKSERVER_PORT+"/NSSampledb;create=3Dtrue:retrieveMessagesFromServerOnG= etMessage=3Dtrue;deferPrepares=3Dtrue;"; + private static final String CS_NS_DBURL=3D "jdbc:derby:net://localhost:"+= NETWORKSERVER_PORT+"/NSSampledb;create=3Dtrue;retrieveMessagesFromServerOnG= etMessage=3Dtrue;deferPrepares=3Dtrue;"; =20 public static void main(String[] args) throws Exception { =20 @@ -78,7 +79,7 @@ =20 // DB2Connection provides additional functionality than java.sql.Connec= tion // One can use either depending on the requirements - com.ibm.db2.jcc.DB2Connection conn =3D null; + Connection conn =3D null; =20 PrintWriter pw =3D null; =20 @@ -149,7 +150,8 @@ =20 // Get database connection using the JCC client via DriverManager api try { - conn =3D (com.ibm.db2.jcc.DB2Connection) DriverManager.getConnection(C= S_NS_DBURL, properties); + =09 + conn =3D (Connection) DriverManager.getConnection(CS_NS_DBURL, propert= ies); } catch(Exception e) { pw.println("[NsSample] Connection request unsuccessful, exception throw= n was: "); pw.println("[NsSample] Please check if all the jar files are in the cla= sspath and the dbUrl is set correctly."); Modified: incubator/derby/code/branches/10.0/java/demo/nserverdemo/NsSample= ClientThread.java URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/java/= demo/nserverdemo/NsSampleClientThread.java?rev=3D162093&r1=3D162092&r2=3D16= 2093&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/java/demo/nserverdemo/NsSampleClient= Thread.java (original) +++ incubator/derby/code/branches/10.0/java/demo/nserverdemo/NsSampleClient= Thread.java Wed Apr 20 16:51:52 2005 @@ -319,7 +319,7 @@ /** * Create necessary schema if schema not already created */ - public static void checkAndCreateSchema(com.ibm.db2.jcc.DB2Connection co= nn,PrintWriter pw) { + public static void checkAndCreateSchema(Connection conn,PrintWriter pw) = { Statement stmt =3D null; ResultSet rs =3D null; =20 @@ -378,7 +378,7 @@ /** * Loads schema , inserts 'rowsToInsert' number of rows into the table */ - public static void loadSchema(com.ibm.db2.jcc.DB2Connection conn,int row= sToInsert,PrintWriter pw) { + public static void loadSchema(Connection conn,int rowsToInsert,PrintWrit= er pw) { int insertsRemaining =3D rowsToInsert; PreparedStatement ps=3Dnull; =20 Modified: incubator/derby/code/branches/10.0/java/demo/nserverdemo/SimpleNe= tworkClientSample.java URL: http://svn.apache.org/viewcvs/incubator/derby/code/branches/10.0/java/= demo/nserverdemo/SimpleNetworkClientSample.java?rev=3D162093&r1=3D162092&r2= =3D162093&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/code/branches/10.0/java/demo/nserverdemo/SimpleNetworkC= lientSample.java (original) +++ incubator/derby/code/branches/10.0/java/demo/nserverdemo/SimpleNetworkC= lientSample.java Wed Apr 20 16:51:52 2005 @@ -7,6 +7,7 @@ */ =20 import java.sql.*; +import java.lang.reflect.*; import javax.sql.DataSource; import java.util.Properties; import java.io.BufferedReader; @@ -49,9 +50,10 @@ private static int NETWORKSERVER_PORT=3D1527; =20 /** - * DB2 JDBC UNIVERSAL DRIVER class name + * DB2 JDBC UNIVERSAL DRIVER class names */ private static final String DB2_JDBC_UNIVERSAL_DRIVER =3D "com.ibm.db2.jc= c=2EDB2Driver"; + private static final String DB2_JCC_DS =3D "com.ibm.db2.jcc.DB2SimpleData= Source"; =20 /** * This URL is used to connect to Derby Network Server using the DriverMa= nager. @@ -138,27 +140,42 @@ * @throws Exception if there is any error */ public static javax.sql.DataSource getClientDataSource(String database, S= tring user, String - password) throws SQLException + password) throws SQLException, ClassNotFoundException, Instanti= ationException, IllegalAccessException, NoSuchMethodException, InvocationTa= rgetException { - - com.ibm.db2.jcc.DB2SimpleDataSource ds =3D new com.ibm.db2.jcc.DB2Simple= DataSource(); + Class nsDataSource =3D Class.forName(DB2_JCC_DS); + DataSource ds =3D (DataSource) nsDataSource.newInstance(); =20 // can also include Derby URL attributes along with the database name - ds.setDatabaseName(database); - - if (user !=3D null) - ds.setUser(user); - if (password !=3D null) - ds.setPassword(password); - + Class[] methodParams =3D new Class[] {String.class}; + Method dbname =3D nsDataSource.getMethod("setDatabaseName", methodParams= ); + Object[] args =3D new Object[] {database}; + dbname.invoke(ds, args); + + if (user !=3D null) { + Method setuser =3D nsDataSource.getMethod("setUser", methodParams); + args =3D new Object[] {user}; + setuser.invoke(ds, args); + } + if (password !=3D null) { + Method setpw =3D nsDataSource.getMethod("setPassword", methodParams); + args =3D new Object[] {password}; + setpw.invoke(ds, args); + } // host on which network server is running - ds.setServerName("localhost"); + Method servername =3D nsDataSource.getMethod("setServerName", methodPara= ms); + args =3D new Object[] {"localhost"}; + servername.invoke(ds, args); =20 // port on which Network Server is listening - ds.setPortNumber(1527); + methodParams =3D new Class[] {int.class}; + Method portnumber =3D nsDataSource.getMethod("setPortNumber", methodPara= ms); + args =3D new Object[] {new Integer(1527)}; + portnumber.invoke(ds, args); =20 // driver type must be 4 to access Derby Network Server - ds.setDriverType(4); + Method drivertype =3D nsDataSource.getMethod("setDriverType", methodPara= ms); + args =3D new Object[] {new Integer(4)}; + drivertype.invoke(ds, args); =20 return ds; =20 @@ -193,7 +210,7 @@ properties.setProperty("password","scape"); =20 // Get database connection using the JCC client via DriverManager api - Connection conn =3D (com.ibm.db2.jcc.DB2Connection) DriverManager.getCo= nnection(CS_NS_DBURL, properties); + Connection conn =3D DriverManager.getConnection(CS_NS_DBURL,properties);= =20 =20 return conn; }