-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
priority:majorMajor loss of functionMajor loss of function
Description
Joeren Haag opened MEAR-282 and commented
Since Version 6 and up to the latest Version of Java/Jakarta EE the data-source element is defined in the Schema of the application.xml ([#1]). So it would be nice to support the data-source element also in the configuration of the maven-ear-plugin. Here is my actual workaround:
- enable the generation of
application.xml - move the generated
application.xmlto the source foldersrc/main/application - disable the generation of
application.xml - add the data-source configuration to
application.xm
Here is a "simple example" of the data-source element (the example is based on Version 8 of Java EE), like it's look in the application.xml:
<data-source>
<description><!-- string, optional --></description>
<name><!-- jndi-name, required --></name>
<class-name><!-- fqn, optional --></class-name>
<server-name><!-- string, optional --></server-name>
<port-number><!-- int, optional --></port-number>
<database-name><!-- string, optional --></database-name>
<url><!-- JDBC-url, optional --></url>
<user><!-- string, optional --></user>
<password><!-- string, optional --></password>
<property><!-- optional, multiple -->
<name><!-- string --></name>
<value><!-- value --></value>
</property>
<login-timeout><!-- integer, optional --></login-timeout>
<transactional><!-- boolean, optional --></transactional>
<isolation-level><!-- TRANSACTION_READ_UNCOMMITTED|TRANSACTION_READ_COMMITTED|TRANSACTION_REPEATABLE_READ|TRANSACTION_SERIALIZABLE, optional--></isolation-level>
<initial-pool-size><!-- integer, optional --></initial-pool-size>
<max-pool-size><!-- integer, optional --></max-pool-size>
<min-pool-size><!-- integer, optional --></min-pool-size>
<max-idle-time><!-- integer, optional --></max-idle-time>
<max-statements><!-- integer, optional --></max-statements>
</data-source>—
- {anchor:1} 1: application-schema for Java EE version 6 - https://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/application_6.xsd
1 votes, 3 watchers
Metadata
Metadata
Assignees
Labels
priority:majorMajor loss of functionMajor loss of function