From 96ce3e9bf9dc2c56c28d309fc127f6ad566cc5e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E7=94=B7?= Date: Wed, 30 Oct 2024 23:54:49 +0800 Subject: [PATCH] update to use wildfly-datasources-galleon-pack for database configuration --- batch-processing/add-h2-ds.cli | 1 + batch-processing/pom.xml | 49 ++++++++++++++++--- .../WEB-INF/jboss-batch-processing-ds.xml | 38 -------------- 3 files changed, 43 insertions(+), 45 deletions(-) create mode 100644 batch-processing/add-h2-ds.cli delete mode 100644 batch-processing/src/main/webapp/WEB-INF/jboss-batch-processing-ds.xml diff --git a/batch-processing/add-h2-ds.cli b/batch-processing/add-h2-ds.cli new file mode 100644 index 0000000000..ef73534f17 --- /dev/null +++ b/batch-processing/add-h2-ds.cli @@ -0,0 +1 @@ +xa-data-source add --name=batch_db --enabled=true --use-java-context=true --use-ccm=true --jndi-name=java:jboss/datasources/batch-processingDS --xa-datasource-properties={"URL"=>"jdbc:h2:mem:batch-processing;DB_CLOSE_ON_EXIT=FALSE;DB_CLOSE_DELAY=-1"} --driver-name=h2 --password=sa --user-name=sa --same-rm-override=false --no-recovery=true \ No newline at end of file diff --git a/batch-processing/pom.xml b/batch-processing/pom.xml index 18a179f0d8..791ecb6d2f 100644 --- a/batch-processing/pom.xml +++ b/batch-processing/pom.xml @@ -51,6 +51,9 @@ ${version.server} 5.0.0.Final + wildfly-ee-galleon-pack + org.wildfly + ${project.basedir}/add-h2-ds.cli @@ -200,12 +203,26 @@ org.wildfly.plugins wildfly-maven-plugin - - ${version.server} - - h2-database:default - - + + + ${server.test.feature.pack.groupId} + ${server.test.feature.pack.artifactId} + ${version.server} + + + org.wildfly:wildfly-datasources-galleon-pack:8.0.1.Final + + + + core-tools + batch-jberet + h2-driver + jaxrs-server + jsf + + + + - - - - - - jdbc:h2:mem:batch-processing;DB_CLOSE_ON_EXIT=FALSE;DB_CLOSE_DELAY=-1 - h2 - - sa - sa - - - -