Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions batch-processing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,20 @@
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<!-- specifies that the deployment depends on server module com.h2database.h2 -->
<Dependencies>com.h2database.h2</Dependencies>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
Expand All @@ -208,7 +222,7 @@
<discover-provisioning-info>
<version>${version.server}</version>
<addOns>
<addOn>h2-database:default</addOn>
<addOn>h2-database</addOn>
</addOns>
</discover-provisioning-info>
</configuration>
Expand All @@ -235,7 +249,7 @@
<version>${version.server}</version>
<context>cloud</context>
<addOns>
<addOn>h2-database:default</addOn>
<addOn>h2-database</addOn>
</addOns>
</discover-provisioning-info>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,18 @@
*/
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;

@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"
)
@Entity
public class Contact {

Expand Down

This file was deleted.

Loading