#  If susbsytem is already defined, only copy the contents under resource-adapters and edit to suit your needs
#
#  the properties are pre-filled based on using teiid jdg-local-cache quickstart, and as an example of what the content should look like
#
#  for the complete details on the format for each property, see the ra.xml file for the resource adapter: connector-infinispan.6 

<subsystem xmlns="urn:jboss:domain:resource-adapters:1.1">
    <resource-adapters>
                <resource-adapter id="infinispanLocalMatQS">
                    <module slot="main" id="org.jboss.teiid.resource-adapter.infinispan.libmode"/>
                    <transaction-support>NoTransaction</transaction-support>
                    <connection-definitions>
                        <connection-definition class-name="org.teiid.resource.adapter.infinispan.libmode.InfinispanManagedConnectionFactory" jndi-name="java:/infinispanLocalMat" enabled="true" use-java-context="true" pool-name="infinispanLocalMat">
                            <config-property name="StagingCacheName">
                                local-quickstart-mat-staging-cache
                            </config-property>
                            <config-property name="CacheTypeMap">
                                local-quickstart-mat-cache:com.client.quickstart.pojo.Stock;productId
                            </config-property>
                   <config-property name="ConfigurationFileNameForLocalCache">
                        ${jboss.home.dir}/standalone/configuration/infinispan_persistent_mat_config.xml
                    </config-property>	
                            <!--config-property name="CacheJndiName">
                                java:jboss/teiid/jdg-quickstart
                            </config-property-->
                            <config-property name="AliasCacheName">
                                aliasCache
                            </config-property>
                        </connection-definition>
                    </connection-definitions>
                </resource-adapter>
    
    </resource-adapters>
</subsystem>
