diff --git a/batch-processing/pom.xml b/batch-processing/pom.xml
index 7045419b84..9e62901139 100644
--- a/batch-processing/pom.xml
+++ b/batch-processing/pom.xml
@@ -191,6 +191,19 @@
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+
+
+
+ com.h2database.h2
+
+
+
+
+
@@ -205,8 +218,9 @@
${version.server}
- h2-database:default
+ h2-database
+ false
@@ -232,8 +246,9 @@
${version.server}
cloud
- h2-database:default
+ h2-database
+ false
diff --git a/batch-processing/src/main/java/org/jboss/as/quickstarts/batch/model/Contact.java b/batch-processing/src/main/java/org/jboss/as/quickstarts/batch/model/Contact.java
index 41efad1b0c..1ab2b6b166 100644
--- a/batch-processing/src/main/java/org/jboss/as/quickstarts/batch/model/Contact.java
+++ b/batch-processing/src/main/java/org/jboss/as/quickstarts/batch/model/Contact.java
@@ -16,12 +16,20 @@
*/
package org.jboss.as.quickstarts.batch.model;
+import jakarta.annotation.sql.DataSourceDefinition;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.validation.constraints.NotNull;
+
@Entity
+@DataSourceDefinition(name="java:jboss/datasources/batch-processingDS",
+ className="org.h2.jdbcx.JdbcDataSource",
+ url="jdbc:h2:mem:batch-processing;DB_CLOSE_ON_EXIT=FALSE;DB_CLOSE_DELAY=-1",
+ user="sa",
+ password="sa"
+)
public class Contact {
@Id
diff --git a/batch-processing/src/main/webapp/WEB-INF/jboss-batch-processing-ds.xml b/batch-processing/src/main/webapp/WEB-INF/jboss-batch-processing-ds.xml
deleted file mode 100644
index fb23f37023..0000000000
--- a/batch-processing/src/main/webapp/WEB-INF/jboss-batch-processing-ds.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
-
-
-
- jdbc:h2:mem:batch-processing;DB_CLOSE_ON_EXIT=FALSE;DB_CLOSE_DELAY=-1
- h2
-
- sa
- sa
-
-
-
-
diff --git a/bmt/README-source.adoc b/bmt/README-source.adoc
index a884f8da42..0a0e116288 100644
--- a/bmt/README-source.adoc
+++ b/bmt/README-source.adoc
@@ -12,7 +12,6 @@ The `bmt` quickstart demonstrates Bean-Managed Transactions (BMT), showing how t
:standalone-server-type: default
:archiveType: war
:uses-h2:
-:uses-ds-xml:
:performance-scalability:
== What is it?
@@ -53,17 +52,6 @@ You are presented with a simple form for adding key/value pairs, and a checkbox
. To add or update the value of a key, fill in the *Key* and *Value* input fields.
. Click the *Submit* button to see the results.
-== Server Log: Expected Warnings and Errors
-
-You will see the following warnings in the server log. You can ignore these warnings.
-
-[source,options="nowrap"]
-----
-WFLYJCA0091: -ds.xml file deployments are deprecated. Support may be removed in a future version.
-
-HHH000431: Unable to determine H2 database version, certain features may not work
-----
-
// Server Distribution Testing
include::../shared-doc/run-integration-tests-with-server-distribution.adoc[leveloffset=+1]
// Undeploy the Quickstart