-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "simplify ds and jdbc driver setup"
This reverts commit 65f4d8a.
- Loading branch information
Showing
18 changed files
with
505 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright OmniFaces | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
https://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations under the License. | ||
--> | ||
<!-- | ||
H2 data source configuration for GlassFish/Payara. | ||
--> | ||
<!DOCTYPE resources PUBLIC | ||
"-//GlassFish.org//DTD GlassFish Application Server 3.1 Resource Definitions//EN" | ||
"http://glassfish.org/dtds/glassfish-resources_1_5.dtd"> | ||
<resources> | ||
<jdbc-resource jndi-name="java:app/OptimusFacesIT" pool-name="OptimusFacesIT" /> | ||
<jdbc-connection-pool name="OptimusFacesIT" res-type="javax.sql.DataSource" datasource-classname="org.h2.jdbcx.JdbcDataSource"> | ||
<property name="url" value="jdbc:h2:mem:test;MODE=LEGACY" /> | ||
<property name="user" value="sa" /> | ||
<property name="password" value="sa" /> | ||
</jdbc-connection-pool> | ||
</resources> |
30 changes: 30 additions & 0 deletions
30
src/test/resources/WEB-INF/glassfish-resources.xml/mysql.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright OmniFaces | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
https://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations under the License. | ||
--> | ||
<!-- | ||
MySQL data source configuration for GlassFish/Payara. | ||
--> | ||
<!DOCTYPE resources PUBLIC | ||
"-//GlassFish.org//DTD GlassFish Application Server 3.1 Resource Definitions//EN" | ||
"http://glassfish.org/dtds/glassfish-resources_1_5.dtd"> | ||
<resources> | ||
<jdbc-resource jndi-name="java:app/OptimusFacesIT" pool-name="OptimusFacesIT" /> | ||
<jdbc-connection-pool name="OptimusFacesIT" res-type="javax.sql.DataSource" datasource-classname="com.mysql.cj.jdbc.MysqlConnectionPoolDataSource"> | ||
<property name="url" value="jdbc:mysql://localhost:3306/test" /> | ||
<property name="user" value="root" /> | ||
<property name="password" value="root" /> | ||
<property name="useSSL" value="false" /> | ||
</jdbc-connection-pool> | ||
</resources> |
29 changes: 29 additions & 0 deletions
29
src/test/resources/WEB-INF/glassfish-resources.xml/postgresql.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright OmniFaces | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
https://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations under the License. | ||
--> | ||
<!-- | ||
PostgreSQL data source configuration for GlassFish/Payara. | ||
--> | ||
<!DOCTYPE resources PUBLIC | ||
"-//GlassFish.org//DTD GlassFish Application Server 3.1 Resource Definitions//EN" | ||
"http://glassfish.org/dtds/glassfish-resources_1_5.dtd"> | ||
<resources> | ||
<jdbc-resource jndi-name="java:app/OptimusFacesIT" pool-name="OptimusFacesIT" /> | ||
<jdbc-connection-pool name="OptimusFacesIT" res-type="javax.sql.DataSource" datasource-classname="org.postgresql.ds.PGPoolingDataSource"> | ||
<property name="url" value="jdbc:postgresql:test" /> | ||
<property name="user" value="test" /> | ||
<property name="password" value="test" /> | ||
</jdbc-connection-pool> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright OmniFaces | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
https://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations under the License. | ||
--> | ||
<!-- | ||
H2 data source configuration for TomEE. | ||
--> | ||
<resources> | ||
<Resource id="OptimusFacesIT" type="javax.sql.DataSource"> | ||
JdbcDriver org.h2.Driver | ||
JdbcUrl jdbc:h2:mem:test;MODE=LEGACY | ||
UserName sa | ||
Password sa | ||
jtaManaged = true | ||
</Resource> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright OmniFaces | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
https://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations under the License. | ||
--> | ||
<!-- | ||
MySQL data source configuration for TomEE. | ||
--> | ||
<resources> | ||
<Resource id="OptimusFacesIT" type="javax.sql.DataSource"> | ||
JdbcDriver com.mysql.jdbc.Driver | ||
JdbcUrl jdbc:mysql://localhost:3306/test | ||
UserName root | ||
Password root | ||
jtaManaged = true | ||
</Resource> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright OmniFaces | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
https://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations under the License. | ||
--> | ||
<!-- | ||
PostgreSQL data source configurations for TomEE. | ||
--> | ||
<resources> | ||
<Resource id="OptimusFacesIT" type="javax.sql.DataSource"> | ||
JdbcDriver org.postgresql.Driver | ||
JdbcUrl jdbc:postgresql:test | ||
UserName test | ||
Password test | ||
jtaManaged = true | ||
</Resource> | ||
</resources> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright OmniFaces | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
https://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations under the License. | ||
--> | ||
<!-- | ||
H2 data source configuration for WildFly. | ||
--> | ||
<datasources> | ||
<datasource jta="true" jndi-name="java:/OptimusFacesIT" pool-name="OptimusFacesIT" enabled="true" use-java-context="true"> | ||
<connection-url>jdbc:h2:mem:test;MODE=LEGACY</connection-url> | ||
<driver>h2</driver> | ||
<security> | ||
<user-name>sa</user-name> | ||
<password>sa</password> | ||
</security> | ||
</datasource> | ||
</datasources> |
Oops, something went wrong.