Skip to content

Commit 626cce3

Browse files
committed
WFLY-19790 Remove batch-processing DS file
1 parent 769134f commit 626cce3

4 files changed

Lines changed: 33 additions & 40 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Batch script to configure the datasource
2+
batch
3+
4+
# Start by creating the JDBC datasource
5+
/subsystem=datasources/data-source=batch-processingDS:add(connection-url="jdbc:h2:mem:batch-processingDS;DB_CLOSE_ON_EXIT=FALSE;DB_CLOSE_DELAY=-1", jndi-name="java:jboss/datasources/batch-processingDS", driver-name=h2, user-name="sa", password="sa", enabled="true", use-java-context=true)
6+
/subsystem=batch-jberet/jdbc-job-repository=jdbc:add(data-source=batch-processingDS)
7+
/subsystem=batch-jberet:write-attribute(name=default-job-repository,value=jdbc)
8+
9+
# Run the batch commands
10+
run-batch
11+
12+
# Reload the server configuration
13+
#reload
14+
15+

batch-processing/pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,15 @@
209209
application is deployed in the root web context.
210210
-->
211211
<name>ROOT.war</name>
212+
<packaging-scripts>
213+
<packaging-script>
214+
<scripts>
215+
<script>${basedir}/configure-server.cli</script>
216+
</scripts>
217+
<!-- Expressions resolved during server execution -->
218+
<resolve-expressions>false</resolve-expressions>
219+
</packaging-script>
220+
</packaging-scripts>
212221
</configuration>
213222
<executions>
214223
<execution>
@@ -241,6 +250,15 @@
241250
application is deployed in the root web context. Add ROOT.war to the server.
242251
-->
243252
<filename>ROOT.war</filename>
253+
<packaging-scripts>
254+
<packaging-script>
255+
<scripts>
256+
<script>${basedir}/configure-server.cli</script>
257+
</scripts>
258+
<!-- Expressions resolved during server execution -->
259+
<resolve-expressions>false</resolve-expressions>
260+
</packaging-script>
261+
</packaging-scripts>
244262
</configuration>
245263
<executions>
246264
<execution>

batch-processing/src/main/resources/META-INF/persistence.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
<persistence-unit name="primary" transaction-type="JTA">
2626
<!-- If you are running in a production environment, add a managed
2727
data source, this example data source is just for development and testing! -->
28-
<!-- The datasource is deployed as WEB-INF/jboss-batch-processing-ds.xml, you
29-
can find it in the source at src/main/webapp/WEB-INF/jboss-batch-processing-ds.xml -->
3028
<jta-data-source>java:jboss/datasources/batch-processingDS</jta-data-source>
3129
<properties>
3230
<!-- Properties for Hibernate -->

batch-processing/src/main/webapp/WEB-INF/jboss-batch-processing-ds.xml

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)