<!-- 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.1">
    <resource-adapters>
        <resource-adapter id="salesforce">
            <module slot="main" id="org.jboss.teiid.resource-adapter.salesforce"/>
            <transaction-support>NoTransaction</transaction-support>
            <connection-definitions>
                <connection-definition class-name="org.teiid.resource.adapter.salesforce.SalesForceManagedConnectionFactory" 
                        jndi-name="java:/sfDS" 
                        enabled="true" 
                        use-java-context="true" 
                        pool-name="teiid-sf-ds">
                        
                    <!-- URL; the below is test; replace with actual URL you need to connect to -->
                    <config-property name="URL">https://www.salesforce.com/services/Soap/u/22.0</config-property>
                    
                    <config-property name="username">user</config-property>
                    <config-property name="password">pass</config-property>
                    
                    <!-- 
                      optional properties to set timeouts, which can also be done through the CXF config
                      <config-property name="requestTimeout">long value</config-property>
                      <config-property name="connectTimeout">long value</config-property>
                     -->
                    
                    <!-- 
                        Uncomment this property to supply specific configuration for SalesForce service. This configuration
                        must contain config for "SforceService" service with namespace "urn:partner.soap.sforce.com"
                    <config-property name="configFile">path/to/jbossws-cxf.xml</config-property>
                    -->
                </connection-definition>
            </connection-definitions>
        </resource-adapter>
    </resource-adapters>
</subsystem>

