<?xml version="1.0" encoding="UTF-8"?>

<connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.1">
    <dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1">
        <dep:moduleId>
            <dep:groupId>liferay</dep:groupId>
            <dep:artifactId>liferay-pool</dep:artifactId>
            <dep:version>5.2.0</dep:version>
            <dep:type>car</dep:type>
        </dep:moduleId>
        <dep:dependencies>
            <dep:dependency>
                <dep:groupId>org.apache.derby</dep:groupId>
                <dep:artifactId>derby</dep:artifactId>
                <dep:version>10.4.1.3</dep:version>
                <dep:type>jar</dep:type>
            </dep:dependency>
			<dep:dependency>
				<dep:groupId>org.apache.geronimo.configs</dep:groupId>
				<dep:artifactId>system-database</dep:artifactId>
				<dep:type>car</dep:type>
			</dep:dependency>
		</dep:dependencies>
    </dep:environment>
    <resourceadapter>
        <outbound-resourceadapter>
            <connection-definition>
                <connectionfactory-interface>javax.sql.DataSource</connectionfactory-interface>
                <connectiondefinition-instance>
                    <name>LiferayPool</name>
                    <config-property-setting name="DatabaseName">lportal</config-property-setting>
                    <connectionmanager>
                        <local-transaction />
                        <single-pool>
                            <max-size>10</max-size>
                            <min-size>0</min-size>
                            <match-one />
                        </single-pool>
                    </connectionmanager>
                </connectiondefinition-instance>
            </connection-definition>
        </outbound-resourceadapter>
    </resourceadapter>
    <gbean name="LiferayPoolInstaller" class="org.apache.geronimo.system.util.DirectoryInitializationGBean">
        <attribute name="prefix">geronimo</attribute>
        <attribute name="path">var/derby/lportal</attribute>
        <reference name="ServerInfo">
            <name>ServerInfo</name>
        </reference>
    </gbean>
</connector>