<!-- If susbsytem is already defined, only copy the contents under it and edit to suit your needs -->
<subsystem xmlns="urn:jboss:domain:resource-adapters:1.0">
    <resource-adapters>
        <resource-adapter>
            <archive>teiid-connector-file.rar</archive>
            <transaction-support>NoTransaction</transaction-support>
            <connection-definitions>
                <connection-definition class-name="org.teiid.resource.adapter.file.FileManagedConnectionFactory" 
                        jndi-name="java:/marketdata-file" 
                        enabled="true" 
                        use-java-context="true" 
                        pool-name="marketdata-file">
                        
                       <!-- Directory where the data files are stored -->
                      <config-property name="ParentDirectory" type="java.lang.String">../docs/teiid/examples/dynamicvdb-portfolio/data</config-property>
                      
                      <!-- Set AllowParentPaths to false to disallow .. in paths.
                           This prevent requesting files that are not contained in the parent directory -->
                      <config-property name="AllowParentPaths">true</config-property>
                </connection-definition>
            </connection-definitions>
        </resource-adapter>
    </resource-adapters>
</subsystem>
