[jboss-svn-commits] JBL Code SVN: r6643 - in labs/jbosstm/trunk/ArjunaJTA/jdbc: . classes/com/arjuna/ats/internal/jdbc tests/classes/com/hp/mwtests/ts/jdbc/basic
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Oct 6 07:46:15 EDT 2006
Author: jhalliday
Date: 2006-10-06 07:46:11 -0400 (Fri, 06 Oct 2006)
New Revision: 6643
Added:
labs/jbosstm/trunk/ArjunaJTA/jdbc/classes/com/arjuna/ats/internal/jdbc/ConnectionImpleJDBC3.java
labs/jbosstm/trunk/ArjunaJTA/jdbc/tests/classes/com/hp/mwtests/ts/jdbc/basic/JDBC3Test.java
Modified:
labs/jbosstm/trunk/ArjunaJTA/jdbc/build.xml
labs/jbosstm/trunk/ArjunaJTA/jdbc/classes/com/arjuna/ats/internal/jdbc/ConnectionImple.java
labs/jbosstm/trunk/ArjunaJTA/jdbc/classes/com/arjuna/ats/internal/jdbc/ConnectionManager.java
labs/jbosstm/trunk/ArjunaJTA/jdbc/tests/classes/com/hp/mwtests/ts/jdbc/basic/JDBC2Test.java
Log:
Preliminary support for JDBC3.0 when built and running on Java 1.5.
Modified: labs/jbosstm/trunk/ArjunaJTA/jdbc/build.xml
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/jdbc/build.xml 2006-10-06 11:36:15 UTC (rev 6642)
+++ labs/jbosstm/trunk/ArjunaJTA/jdbc/build.xml 2006-10-06 11:46:11 UTC (rev 6643)
@@ -1,20 +1,20 @@
<!--
JBoss, Home of Professional Open Source
- Copyright 2006, JBoss Inc., and others contributors as indicated
- by the @authors tag. All rights reserved.
+ Copyright 2006, JBoss Inc., and others contributors as indicated
+ by the @authors tag. All rights reserved.
See the copyright.txt in the distribution for a
- full listing of individual contributors.
+ full listing of individual contributors.
This copyrighted material is made available to anyone wishing to use,
modify, copy, or redistribute it subject to the terms and conditions
of the GNU Lesser General Public License, v. 2.1.
- This program is distributed in the hope that it will be useful, but WITHOUT A
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ This program is distributed in the hope that it will be useful, but WITHOUT A
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License,
v.2.1 along with this distribution; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA.
-
+
(C) 2005-2006,
@author JBoss Inc.
-->
@@ -55,8 +55,14 @@
<property name="com.hp.mwlabs.ts.jdbc.tests.dest" location="${com.hp.mwlabs.ts.jdbc.buildroot}/tests"/>
<property name="com.hp.mwlabs.ts.jdbc.jar.dest" location="lib"/>
<property name="com.hp.mwlabs.ts.jdbc.tests.destdir" location="${com.hp.mwlabs.ts.jdbc.jar.dest}/tests/"/>
+
+ <!-- don't try and build JDBC3 support if we are on jdk 1.4 -->
+ <condition property="com.hp.mwlabs.ts.jdbc.compile.excludes.jdbc3" value="**/*JDBC3*.java" else="">
+ <equals arg1="${java.specification.version}" arg2="1.4"/>
+ </condition>
+
<!-- Relative path for files to exclude in main compile -->
- <property name="com.hp.mwlabs.ts.jdbc.compile.excludes" value="**/oracle_8*.java, **/oracle_9*.java, **/sequelink*.java, **/cloudscape*.java"/>
+ <property name="com.hp.mwlabs.ts.jdbc.compile.excludes" value="**/oracle_8*.java, **/oracle_9*.java, **/sequelink*.java, **/cloudscape*.java, ${com.hp.mwlabs.ts.jdbc.compile.excludes.jdbc3}"/>
<property name="com.hp.mwlabs.ts.jdbc.resourcebundle"
value="jdbc_msg_en_US.properties"/>
@@ -346,6 +352,7 @@
<javac
srcdir="${com.hp.mwlabs.ts.jdbc.tests.src}"
destdir="${com.hp.mwlabs.ts.jdbc.tests.dest}"
+ excludes="${com.hp.mwlabs.ts.jdbc.compile.excludes}"
debug="${com.hp.mwlabs.debug}"
deprecation="${com.hp.mwlabs.deprecation}"
>
Modified: labs/jbosstm/trunk/ArjunaJTA/jdbc/classes/com/arjuna/ats/internal/jdbc/ConnectionImple.java
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/jdbc/classes/com/arjuna/ats/internal/jdbc/ConnectionImple.java 2006-10-06 11:36:15 UTC (rev 6642)
+++ labs/jbosstm/trunk/ArjunaJTA/jdbc/classes/com/arjuna/ats/internal/jdbc/ConnectionImple.java 2006-10-06 11:46:11 UTC (rev 6643)
@@ -1,20 +1,20 @@
/*
* JBoss, Home of Professional Open Source
- * Copyright 2006, JBoss Inc., and others contributors as indicated
- * by the @authors tag. All rights reserved.
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
- * full listing of individual contributors.
+ * full listing of individual contributors.
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* of the GNU Lesser General Public License, v. 2.1.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public License,
* v.2.1 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
- *
+ *
* (C) 2005-2006,
* @author JBoss Inc.
*/
@@ -434,7 +434,7 @@
public void setTransactionIsolation (int iso) throws SQLException
{
checkTransaction();
-
+
/*
if (iso != Connection.TRANSACTION_SERIALIZABLE)
throw new SQLException(jdbcLogger.logMesg.getString("com.arjuna.ats.internal.jdbc.stateerror")+"Connection.TRANSACTION_SERIALIZABLE");
@@ -622,7 +622,7 @@
return (ConnectionControl) _recoveryConnection;
}
- private final boolean transactionRunning () throws SQLException
+ protected final boolean transactionRunning () throws SQLException
{
try
{
@@ -657,7 +657,7 @@
* @message com.arjuna.ats.internal.jdbc.alreadyassociated Connection is already associated with a different transaction! Obtain a new connection for this transaction.
*/
- private final synchronized void registerDatabase () throws SQLException
+ protected final synchronized void registerDatabase () throws SQLException
{
if (jdbcLogger.logger.isDebugEnabled())
{
@@ -757,7 +757,7 @@
* @message com.arjuna.ats.internal.jdbc.infoerror Could not get transaction information.
*/
- private final void checkTransaction () throws SQLException
+ protected final void checkTransaction () throws SQLException
{
if (jdbcLogger.logger.isDebugEnabled())
{
@@ -858,6 +858,6 @@
}
}
}
-
+
}
Added: labs/jbosstm/trunk/ArjunaJTA/jdbc/classes/com/arjuna/ats/internal/jdbc/ConnectionImpleJDBC3.java
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/jdbc/classes/com/arjuna/ats/internal/jdbc/ConnectionImpleJDBC3.java 2006-10-06 11:36:15 UTC (rev 6642)
+++ labs/jbosstm/trunk/ArjunaJTA/jdbc/classes/com/arjuna/ats/internal/jdbc/ConnectionImpleJDBC3.java 2006-10-06 11:46:11 UTC (rev 6643)
@@ -0,0 +1,174 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2006,
+ * @author JBoss Inc.
+ *
+ * $Id$
+ */
+
+package com.arjuna.ats.internal.jdbc;
+
+import com.arjuna.ats.jdbc.logging.jdbcLogger;
+
+import java.sql.*;
+import java.util.Properties;
+
+/**
+ * JDBC 3.0 extention to the JDBC 2.0 Connection wrapper
+ */
+public class ConnectionImpleJDBC3 extends ConnectionImple implements Connection
+{
+ public ConnectionImpleJDBC3(String dbName, Properties info) throws SQLException {
+ super(dbName, info);
+ }
+
+ public void setHoldability(int holdability) throws SQLException
+ {
+ checkTransaction();
+
+ registerDatabase();
+
+ getConnection().setHoldability(holdability);
+ }
+
+ public int getHoldability() throws SQLException
+ {
+ return getConnection().getHoldability();
+ }
+
+ // The JDBC 3.0 spec (section 12.4) prohibits calling setSavepoint indide an XA tx.
+ // It does not explicitly disallow calling rollback(savepoint) or releaseSavepoint(savepoint)
+ // but allowing them does not make a whole lot of sense, so we don't:
+
+ /**
+ * @message com.arjuna.ats.internal.jdbc.setsavepointerror setSavepoint not allowed inside distributed tx.
+ */
+ public Savepoint setSavepoint() throws SQLException
+ {
+ if (transactionRunning())
+ {
+ throw new SQLException(jdbcLogger.logMesg.getString("com.arjuna.ats.internal.jdbc.setsavepointerror"));
+ }
+ else
+ {
+ return getConnection().setSavepoint();
+ }
+ }
+
+ public Savepoint setSavepoint(String name) throws SQLException
+ {
+ if (transactionRunning())
+ {
+ throw new SQLException(jdbcLogger.logMesg.getString("com.arjuna.ats.internal.jdbc.setsavepointerror"));
+ }
+ else
+ {
+ return getConnection().setSavepoint(name);
+ }
+ }
+
+ /**
+ * @message com.arjuna.ats.internal.jdbc.rollbacksavepointerror rollback(Savepoint) not allowed inside distributed tx.
+ */
+ public void rollback(Savepoint savepoint) throws SQLException
+ {
+ if (transactionRunning())
+ {
+ throw new SQLException(jdbcLogger.logMesg.getString("com.arjuna.ats.internal.jdbc.rollbacksavepointerror"));
+ }
+ else
+ {
+ getConnection().rollback(savepoint);
+ }
+ }
+
+ /**
+ * @message com.arjuna.ats.internal.jdbc.releasesavepointerror rollback(Savepoint) not allowed inside distributed tx.
+ */
+ public void releaseSavepoint(Savepoint savepoint) throws SQLException
+ {
+ if (transactionRunning())
+ {
+ throw new SQLException(jdbcLogger.logMesg.getString("com.arjuna.ats.internal.jdbc.releasesavepointerror"));
+ }
+ else
+ {
+ getConnection().releaseSavepoint(savepoint);
+ }
+ }
+
+ public Statement createStatement(int resultSetType, int resultSetConcurrency,
+ int resultSetHoldability) throws SQLException
+ {
+ checkTransaction();
+
+ registerDatabase();
+
+ return getConnection().createStatement(resultSetType, resultSetConcurrency, resultSetHoldability);
+ }
+
+ public PreparedStatement prepareStatement(String sql, int resultSetType,
+ int resultSetConcurrency, int resultSetHoldability) throws SQLException
+ {
+ checkTransaction();
+
+ registerDatabase();
+
+ return getConnection().prepareStatement(sql, resultSetType, resultSetConcurrency, resultSetHoldability);
+ }
+
+ public CallableStatement prepareCall(String sql, int resultSetType,
+ int resultSetConcurrency, int resultSetHoldability) throws SQLException
+ {
+ checkTransaction();
+
+ registerDatabase();
+
+ return getConnection().prepareCall(sql, resultSetType, resultSetConcurrency, resultSetHoldability);
+ }
+
+ public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys)
+ throws SQLException
+ {
+ checkTransaction();
+
+ registerDatabase();
+
+ return getConnection().prepareStatement(sql, autoGeneratedKeys);
+ }
+
+ public PreparedStatement prepareStatement(String sql, int columnIndexes[])
+ throws SQLException
+ {
+ checkTransaction();
+
+ registerDatabase();
+
+ return getConnection().prepareStatement(sql, columnIndexes);
+ }
+
+ public PreparedStatement prepareStatement(String sql, String columnNames[])
+ throws SQLException
+ {
+ checkTransaction();
+
+ registerDatabase();
+
+ return getConnection().prepareStatement(sql, columnNames);
+ }
+}
Modified: labs/jbosstm/trunk/ArjunaJTA/jdbc/classes/com/arjuna/ats/internal/jdbc/ConnectionManager.java
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/jdbc/classes/com/arjuna/ats/internal/jdbc/ConnectionManager.java 2006-10-06 11:36:15 UTC (rev 6642)
+++ labs/jbosstm/trunk/ArjunaJTA/jdbc/classes/com/arjuna/ats/internal/jdbc/ConnectionManager.java 2006-10-06 11:46:11 UTC (rev 6643)
@@ -1,20 +1,20 @@
/*
* JBoss, Home of Professional Open Source
- * Copyright 2006, JBoss Inc., and others contributors as indicated
- * by the @authors tag. All rights reserved.
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
- * full listing of individual contributors.
+ * full listing of individual contributors.
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* of the GNU Lesser General Public License, v. 2.1.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public License,
* v.2.1 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
- *
+ *
* (C) 2005-2006,
* @author JBoss Inc.
*/
@@ -24,7 +24,7 @@
* Arjuna Solutions Limited,
* Newcastle upon Tyne,
* Tyne and Wear,
- * UK.
+ * UK.
*
* $Id: ConnectionManager.java 2342 2006-03-30 13:06:17Z $
*/
@@ -32,10 +32,12 @@
package com.arjuna.ats.internal.jdbc;
import com.arjuna.ats.jdbc.TransactionalDriver;
+import com.arjuna.ats.jdbc.logging.jdbcLogger;
import java.util.*;
import java.sql.SQLException;
+import java.lang.reflect.Constructor;
import javax.transaction.Transaction;
import javax.transaction.TransactionManager;
@@ -52,7 +54,10 @@
* Connections are pooled for the duration of a transaction.
*/
- public static synchronized ConnectionImple create (String dbUrl, Properties info) throws SQLException
+ /**
+ * @message com.arjuna.ats.internal.jdbc.nojdbc3 Can't load JDBC 3.0 wrapper, falling back to JDBC 2.0
+ */
+ public static synchronized ConnectionImple create (String dbUrl, Properties info) throws SQLException
{
String user = info.getProperty(TransactionalDriver.userName);
String passwd = info.getProperty(TransactionalDriver.password);
@@ -62,7 +67,7 @@
if (dynamic == null)
dynamic = "";
-
+
while (e.hasMoreElements())
{
conn = (ConnectionImple) e.nextElement();
@@ -80,7 +85,7 @@
{
/* Ignore: tx2 is null already */
}
-
+
/* Check transaction and database connection. */
if ((tx1 != null && tx1.equals(tx2))
&& connControl.url().equals(dbUrl)
@@ -107,15 +112,43 @@
}
}
- conn = new ConnectionImple(dbUrl, info);
-
+ conn = null;
+ if(System.getProperty("java.specification.version").equals("1.5"))
+ {
+ // the 1.5 (JDBC3) wrapper version is loaded dynamically because classloading
+ // it on earlier versions of the platform is not possible.
+ try
+ {
+ Class clazz = Class.forName("com.arjuna.ats.internal.jdbc.ConnectionImpleJDBC3");
+ Constructor ctor = clazz.getConstructor(new Class[] { String.class, Properties.class} );
+ conn = (ConnectionImple)ctor.newInstance(new Object[] { dbUrl, info });
+ }
+ catch(Exception exception)
+ {
+ // not necessarily an errror - maybe we are running the 1.4 build on 1.5 vm.
+ if (jdbcLogger.logger.isDebugEnabled())
+ {
+ jdbcLogger.logger.warn(jdbcLogger.logMesg.getString("com.arjuna.ats.internal.jdbc.nojdbc3")+": "+e.toString());
+ }
+ }
+ }
+
+ if(conn == null)
+ {
+ // we are probably either on Java < 1.5 or running a build that was
+ // done on Java 1.5 and thus does not have the JDBC3 wrapper.
+ // Either way we use the default JDBC 2.0 implementation
+ conn = new ConnectionImple(dbUrl, info);
+ }
+
+
/*
* Will replace any old (closed) connection which had the
* same connection information.
*/
_connections.put(conn, conn);
-
+
return conn;
}
@@ -125,5 +158,5 @@
}
private static Hashtable _connections = new Hashtable();
-
+
}
Modified: labs/jbosstm/trunk/ArjunaJTA/jdbc/tests/classes/com/hp/mwtests/ts/jdbc/basic/JDBC2Test.java
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/jdbc/tests/classes/com/hp/mwtests/ts/jdbc/basic/JDBC2Test.java 2006-10-06 11:36:15 UTC (rev 6642)
+++ labs/jbosstm/trunk/ArjunaJTA/jdbc/tests/classes/com/hp/mwtests/ts/jdbc/basic/JDBC2Test.java 2006-10-06 11:46:11 UTC (rev 6643)
@@ -1,20 +1,20 @@
/*
* JBoss, Home of Professional Open Source
- * Copyright 2006, JBoss Inc., and others contributors as indicated
- * by the @authors tag. All rights reserved.
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
- * full listing of individual contributors.
+ * full listing of individual contributors.
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* of the GNU Lesser General Public License, v. 2.1.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public License,
* v.2.1 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
- *
+ *
* (C) 2005-2006,
* @author JBoss Inc.
*/
@@ -45,19 +45,23 @@
public static final int SEQUELINK = 2;
public static final int JNDI = 3;
- public void run(String[] args)
+ protected Connection conn = null;
+ protected Connection conn2 = null;
+ protected boolean commit = false;
+ protected boolean nested = false;
+ protected boolean reuseconn = false;
+ protected Properties dbProperties = null;
+ protected String url = null;
+
+ protected void setup(String[] args)
{
int dbType = JNDI;
- boolean commit = false;
- boolean nested = false;
- boolean reuseconn = false;
- String url = null;
String user = null;//"test";
String password = null;//"test";
String dynamicClass = null; //"com.arjuna.ats.internal.jdbc.drivers.jndi";
String host = null;
String port = null;
-
+
for (int i = 0; i < args.length; i++)
{
if (args[i].compareTo("-oracle") == 0)
@@ -96,7 +100,7 @@
if (args[i].equalsIgnoreCase("-user"))
user = args[i+1];
if (args[i].equalsIgnoreCase("-password"))
- password = args[i+1];
+ password = args[i+1];
if (args[i].compareTo("-help") == 0)
{
System.out.println("Usage: JDBCTest2 [-commit] [-nested] [-reuseconn] [-oracle] [-sequelink] [-cloudscape] [-url] [-dynamicClass]");
@@ -164,14 +168,8 @@
assertFailure();
}
- Connection conn = null;
- Connection conn2 = null;
- Statement stmt = null; // non-tx statement
- Statement stmtx = null; // will be a tx-statement
- Properties dbProperties = new Properties();
+ dbProperties = new Properties();
- try
- {
System.out.println("\nCreating connection to database: " + url);
if ( user != null )
@@ -183,15 +181,36 @@
if ( dynamicClass != null )
dbProperties.put(TransactionalDriver.dynamicClass, dynamicClass);
- conn = DriverManager.getConnection(url, dbProperties);
+ try
+ {
+ conn = DriverManager.getConnection(url, dbProperties);
conn2 = DriverManager.getConnection(url, dbProperties);
- stmt = conn.createStatement(); // non-tx statement
+ } catch(SQLException e) {
+ e.printStackTrace();
+ assertFailure();
+ }
+ }
+ public void run(String[] args)
+ {
+ setup(args);
+
+ Statement stmt = null; // non-tx statement
+ Statement stmtx = null; // will be a tx-statement
+
+ if(conn == null || conn2 == null) {
+ return;
+ }
+
+ try
+ {
+ stmt = conn.createStatement(); // non-tx statement
+
try
{
stmt.executeUpdate("DROP TABLE test_table");
stmt.executeUpdate("DROP TABLE test_table2");
- }
+ }
catch (Exception e)
{
// Ignore
@@ -363,11 +382,11 @@
System.out.println("\nNow checking state of table 1.");
- tx.begin();
+ tx.begin();
if (!reuseconn)
{
- conn = DriverManager.getConnection(url, dbProperties);
+ conn = DriverManager.getConnection(url, dbProperties);
}
stmtx = conn.createStatement();
Added: labs/jbosstm/trunk/ArjunaJTA/jdbc/tests/classes/com/hp/mwtests/ts/jdbc/basic/JDBC3Test.java
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/jdbc/tests/classes/com/hp/mwtests/ts/jdbc/basic/JDBC3Test.java 2006-10-06 11:36:15 UTC (rev 6642)
+++ labs/jbosstm/trunk/ArjunaJTA/jdbc/tests/classes/com/hp/mwtests/ts/jdbc/basic/JDBC3Test.java 2006-10-06 11:46:11 UTC (rev 6643)
@@ -0,0 +1,47 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2006,
+ * @author JBoss Inc.
+ *
+ * $Id$
+ */
+
+package com.hp.mwtests.ts.jdbc.basic;
+
+import com.arjuna.mwlabs.testframework.unittest.LocalHarness;
+
+/**
+ * Exercises the JDBC3.0 specific methods on the transactional JDBC wrapper.
+ */
+public class JDBC3Test extends JDBC2Test
+{
+ public void run(String[] args) {
+ setup(args);
+
+
+ // TODO: exercise JDBC3.0 specific methods here
+
+ }
+
+ public static void main(String[] args)
+ {
+ JDBC3Test test = new JDBC3Test();
+ test.initialise(null,null,args,new LocalHarness());
+ test.runTest();
+ }
+}
More information about the jboss-svn-commits
mailing list