[ 
https://issues.apache.org/jira/browse/MEAR-282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Slawomir Jaranowski updated MEAR-282:
-------------------------------------
    Labels: up-for-grabs  (was: )

> Support data-source element
> ---------------------------
>
>                 Key: MEAR-282
>                 URL: https://issues.apache.org/jira/browse/MEAR-282
>             Project: Maven EAR Plugin
>          Issue Type: Wish
>            Reporter: Joeren Haag
>            Priority: Major
>              Labels: up-for-grabs
>
> 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.xml}} to the source folder 
> {{src/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}}:
> {code: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>
> {code}
> ---
> * {anchor:1} 1: application-schema for Java EE version 6 - 
> https://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/application_6.xsd



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to