0 Replies Latest reply on Jan 29, 2016 8:35 AM by praksah

    Wildfly 9.0 server - Resource Adapter for File accessing parent directory from remote machine

    praksah

      I configuring resource adapter for file type, When I provide a parent directory of same machine where wildfly 9.0 server install, I am able to access files under specified location with the JNDI name. resource adaptor info from standalone xml file as

       

      <resource-adapter id="file1">

                          <module slot="main" id="org.jboss.teiid.resource-adapter.file"/>

                          <transaction-support>NoTransaction</transaction-support>

                          <connection-definitions>

                              <connection-definition class-name="org.teiid.resource.adapter.file.FileManagedConnectionFactory" jndi-name="java:/fileDS" enabled="true" use-java-context="true" pool-name="teiid-file-ds">

                                  <config-property name="AllowParentPaths">

                                      true

                                  </config-property>

                                 <config-property name="ParentDirectory">

                                      C:/Users/examples/data

                                  </config-property>

                              </connection-definition>

                          </connection-definitions>

                      </resource-adapter>

       

      Could you please let me know, how do I access file from remote location(parent directory located on different machine).