Skip to content

Commit

Permalink
[WFLY-19790] Replaces -ds.xml deprecated filed with Jakarta's DataSou…
Browse files Browse the repository at this point in the history
…rceDefinition
  • Loading branch information
emmartins committed Oct 30, 2024
1 parent de97aa6 commit 486da5a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 40 deletions.
19 changes: 17 additions & 2 deletions batch-processing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,19 @@
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Dependencies>com.h2database.h2</Dependencies>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
Expand All @@ -205,8 +218,9 @@
<discover-provisioning-info>
<version>${version.server}</version>
<addOns>
<addOn>h2-database:default</addOn>
<addOn>h2-database</addOn>
</addOns>
<failsOnError>false</failsOnError>
</discover-provisioning-info>
</configuration>
<executions>
Expand All @@ -232,8 +246,9 @@
<version>${version.server}</version>
<context>cloud</context>
<addOns>
<addOn>h2-database:default</addOn>
<addOn>h2-database</addOn>
</addOns>
<failsOnError>false</failsOnError>
</discover-provisioning-info>
</configuration>
<executions>
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.

0 comments on commit 486da5a

Please sign in to comment.