From: Jorg J. <jj...@us...> - 2003-01-18 04:43:16
|
Update of /cvsroot/compiere/dbPort/src/org/compiere/db In directory sc8-pr-cvs1:/tmp/cvs-serv6260/src/org/compiere/db Modified Files: TestConnection.java Log Message: . Index: TestConnection.java =================================================================== RCS file: /cvsroot/compiere/dbPort/src/org/compiere/db/TestConnection.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TestConnection.java 17 Jan 2003 05:46:34 -0000 1.1 --- TestConnection.java 18 Jan 2003 04:43:13 -0000 1.2 *************** *** 187,206 **** /** ! * Test Connection ! * @param args arguments: ignored */ public static void main(String[] args) { ! TestConnection test; ! System.out.println(""); ! System.out.println("------ On Box -------"); ! test = new TestConnection("jdbc:oracle:thin:@dev:1521:dev", "compiere", "compiere"); ! System.out.println(""); ! System.out.println("------ On LAN -------"); ! test = new TestConnection("jdbc:oracle:thin:@prod1:1521:prod1", "compiere", "compiere"); System.out.println(""); ! System.out.println("------ On WAN -------"); ! test = new TestConnection("jdbc:oracle:thin:@fdbnt01:1521:fdb", "compiere", "compiere"); ! } } // TestConnection --- 187,217 ---- /** ! * Test Connection. ! * java -cp dbPort.jar;oracle.jar org.compiere.db.TestConnection ! * @param args arguments optional <jdbcURL> <uid> <pwd> ! * Example: jdbc:oracle:thin:@dev:1521:dev compiere compiere */ public static void main(String[] args) { ! String url = "jdbc:oracle:thin:@24.151.26.64:1521:lap11"; ! String uid = "compiere"; ! String pwd = "compiere"; ! // ! if (args.length == 0) ! { ! System.out.println("TestConnection <jdbcUrl> <uid> <pwd>"); ! System.out.println("Example: jdbc:oracle:thin:@dev:1521:dev compiere compiere"); ! System.out.println("Example: jdbc:oracle:oci8:@dev compiere compiere"); ! } ! else if (args.length > 0) ! url = args[0]; ! else if (args.length > 1) ! url = args[1]; ! else if (args.length > 2) ! url = args[2]; ! System.out.println(""); ! TestConnection test = new TestConnection(url, uid, pwd); ! } // main } // TestConnection |