From 151dd7219ca70e3e9db70a6c03c32922a738eb20 Mon Sep 17 00:00:00 2001 From: Alwin Joseph Date: Wed, 18 Dec 2024 22:52:21 +0530 Subject: [PATCH 1/3] trial commit to execute sql statements - issue1716 --- .../persistence-platform-tck/pom.xml | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/glassfish-runner/persistence-platform-tck/pom.xml b/glassfish-runner/persistence-platform-tck/pom.xml index 037f1f40c7..db7d60e4da 100644 --- a/glassfish-runner/persistence-platform-tck/pom.xml +++ b/glassfish-runner/persistence-platform-tck/pom.xml @@ -35,8 +35,10 @@ glassfish8 - 8.0.0-SNAPSHOT + 8.0.0-JDK17-M5 11.0.0-M2 + ${project.build.directory}/${glassfish.toplevel.dir}/javadb/lib/derbyclient.jar:${project.build.directory}/${glassfish.toplevel.dir}/javadb/lib/derbyshared.jar:${project.build.directory}/${glassfish.toplevel.dir}/javadb/lib/derbytools.jar + jdbc:derby://localhost:1527/derbyDB;create=true 5.11.3 persistence-platform-tck-tests @@ -379,7 +381,7 @@ pre-integration-test - target/glassfish8/glassfish/bin/asadmin + ${project.build.directory}/${glassfish.toplevel.dir}/glassfish/bin/asadmin start-database @@ -393,7 +395,7 @@ post-integration-test - target/glassfish8/glassfish/bin/asadmin + ${project.build.directory}/${glassfish.toplevel.dir}/glassfish/bin/asadmin stop-database @@ -418,17 +420,18 @@ pre-integration-test - + + + + @@ -440,11 +443,11 @@ jakarta.tck:persistence-platform-tck-tests - true + ${project.build.directory}/${glassfish.toplevel.dir} set server-config.network-config.protocols.protocol.http-listener-1.http.trace-enabled=true From 46d102f02066b48281f2f15fd669d76ac682e06d Mon Sep 17 00:00:00 2001 From: Alwin Joseph Date: Wed, 18 Dec 2024 23:04:24 +0530 Subject: [PATCH 2/3] update cts-derby-pool creation command --- glassfish-runner/persistence-platform-tck/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glassfish-runner/persistence-platform-tck/pom.xml b/glassfish-runner/persistence-platform-tck/pom.xml index db7d60e4da..1f638ab8cb 100644 --- a/glassfish-runner/persistence-platform-tck/pom.xml +++ b/glassfish-runner/persistence-platform-tck/pom.xml @@ -453,9 +453,9 @@ set server-config.network-config.protocols.protocol.http-listener-1.http.trace-enabled=true create-file-user --groups guest --passwordfile ${project.basedir}/javajoe.pass javajoe create-file-user --groups staff:mgr --passwordfile ${project.basedir}/j2ee.pass j2ee - create-jdbc-connection-pool --restype javax.sql.DataSource --datasourceclassname org.apache.derby.jdbc.ClientDataSource --property DatabaseName=${glassfish.home}/glassfish/domains/domain1/config/derbyDB:serverName=localhost:portNumber=1527:user=cts1:password=cts1 --steadypoolsize 32 --maxpoolsize 64 cts-derby-pool - create-jdbc-connection-pool --restype javax.sql.DataSource --datasourceclassname org.apache.derby.jdbc.ClientDataSource --property DatabaseName=${glassfish.home}/glassfish/domains/domain1/config/derbyDB:serverName=localhost:PortNumber=1527:User=cts1:Password=cts1 --steadypoolsize 32 --maxpoolsize 64 cts-derby-pool_no_tx + create-jdbc-connection-pool --restype javax.sql.DataSource --datasourceclassname org.apache.derby.jdbc.ClientDataSource --property DatabaseName=derbyDB:serverName=localhost:PortNumber=1527:User=cts1:Password=cts1 --steadypoolsize 32 --maxpoolsize 64 cts-derby-pool create-jdbc-resource --connectionpoolid cts-derby-pool jdbc/DB1 + create-jdbc-connection-pool --restype javax.sql.DataSource --datasourceclassname org.apache.derby.jdbc.ClientDataSource --property DatabaseName=derbyDB:serverName=localhost:PortNumber=1527:User=cts1:Password=cts1 --steadypoolsize 32 --maxpoolsize 64 cts-derby-pool_no_tx create-jdbc-resource --connectionpoolid cts-derby-pool_no_tx jdbc/DB_no_tx list-jdbc-connection-pools list-jdbc-resources From 6beae9cb54c1c3b438cd631e8a57eb1b01c2fbb3 Mon Sep 17 00:00:00 2001 From: Alwin Joseph Date: Wed, 18 Dec 2024 23:53:36 +0530 Subject: [PATCH 3/3] add java procedures --- .../persistence-platform-tck/pom.xml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/glassfish-runner/persistence-platform-tck/pom.xml b/glassfish-runner/persistence-platform-tck/pom.xml index 1f638ab8cb..12e9389ffd 100644 --- a/glassfish-runner/persistence-platform-tck/pom.xml +++ b/glassfish-runner/persistence-platform-tck/pom.xml @@ -36,8 +36,15 @@ glassfish8 8.0.0-JDK17-M5 + org.apache.derby.jdbc.ClientDriver + cts1 + jdbc:derby://localhost:1527/derbyDB;create=true + cts1 + org.eclipse.persistence.jpa.PersistenceProvider 11.0.0-M2 + ${glassfish.home}/javadb/lib ${project.build.directory}/${glassfish.toplevel.dir}/javadb/lib/derbyclient.jar:${project.build.directory}/${glassfish.toplevel.dir}/javadb/lib/derbyshared.jar:${project.build.directory}/${glassfish.toplevel.dir}/javadb/lib/derbytools.jar + ${javadb.lib}/derbyclient.jar:${javadb.lib}/derbyshared.jar:${javadb.lib}/derbytools.jar jdbc:derby://localhost:1527/derbyDB;create=true 5.11.3 @@ -364,6 +371,13 @@ ${project.build.directory}/lib arquillian-protocol-lib.jar + + jakarta.tck + dbprocedures + true + ${project.build.directory} + dbprocedures.jar + @@ -432,6 +446,25 @@ + + install_java_procedures + + run + + pre-integration-test + + + + + + + CALL sqlj.remove_jar('APP.dbprocedures', 0); + CALL sqlj.install_jar('${project.build.directory}/dbprocedures.jar', 'APP.dbprocedures', 0); + CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.database.classpath', 'APP.dbprocedures'); + + + +