blob: c658a07a04e8f03dcc6bb2aa11502040cf47f58a [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE resources PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Resource Definitions //EN" "http://glassfish.org/dtds/glassfish-resources_1_5.dtd">
<!--
Copyright (c) 2004, 2018 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0, which is available at
http://www.eclipse.org/legal/epl-2.0.
This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the
Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
version 2 with the GNU Classpath Exception, which is available at
https://www.gnu.org/software/classpath/license.html.
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
-->
<!--
Oracle Thin Type 4 Driver for Oracle 9i and 10g Databases
The JAR file for the Oracle driver is ojdbc14.jar/ojdbc14_g.jar
To learn more on JDBC resources, pl. refer to JDBC resources chapter of admin guide.
Administration Guide >> JDBC Resources >> Configurations for Specific JDBC Drivers
http://docs.sun.com/app/docs/doc/819-3658/6n5s5nklk?a=view
For detailed explanation of attributes and elements of this resources xml
pl. refer to sun-resources_1_3.dtd
=========================================================================================
| res-type datasource-classname |
=========================================================================================
| javax.sql.DataSource oracle.jdbc.pool.OracleDataSource |
| javax.sql.ConnectionPoolDataSource oracle.jdbc.pool.OracleConnectionPoolDataSource |
| javax.sql.XADataSource oracle.jdbc.xa.client.OracleXADataSource |
=========================================================================================
-->
<resources>
<jdbc-connection-pool datasource-classname="org.apache.derby.jdbc.ClientXADataSource" res-type="javax.sql.XADataSource" name="java:module/jdbc/web-level-pool">
<property name="User" value="dbuser" />
<property name="Password" value="dbpassword" />
<property name="driverType" value="4" />
<property name="portNumber" value="1527" />
<property name="dataBaseName" value="testdb" />
<property name="retrieveMessagesFromServerOnGetMessage" value="true" />
<property name="create" value="true" />
<property name="connectionAttributes" value=";create=true" />
<property name="serverName" value="localhost" />
</jdbc-connection-pool>
<jdbc-resource enabled="true" jndi-name="java:module/jdbc/web-level-ds" object-type="user" pool-name="java:module/jdbc/web-level-pool"/>
</resources>