Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1452

Resource Adapter config-property value passed incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 7.1.0.Alpha1
    • 7.0.0.Beta1
    • JCA
    • None
    • Hide

      See forum thread

      Show
      See forum thread
    • Workaround Exists
    • Hide

      Don't set config properties in the standalone.xml file, hard code them into the ra.xml inside the rar file.

      Show
      Don't set config properties in the standalone.xml file, hard code them into the ra.xml inside the rar file.

      Possibly related to AS-1304

      See the forum (link below) for details on how to reproduce.

      In the resource-adapter connection definition when you specify properties for the adapter like so:

      <connection-definition class-name="org.apache.jackrabbit.jca.JCAManagedConnectionFactory"
      jndi-name="java:/jca/DocumentStore" enabled="true" use-java-context="true"
      pool-name="jackrabbit-jca-2_2_7_rar-Pool" use-ccm="true">
      <config-property name="HomeDir">
      /Users/bwallis/InfoMedix/JBoss/jboss-as-7.1.0.Alpha1-SNAPSHOT/repository
      </config-property>
      <config-property name="ConfigFile">
      /Users/bwallis/InfoMedix/JBoss/jboss-as-7.1.0.Alpha1-SNAPSHOT/repository/repository.xml
      </config-property>
      ...

      The values passed through to the resource adapter seems to come through as the strings

      ("HomeDir" => "/Users/bwallis/InfoMedix/JBoss/jboss-as-7.1.0.Alpha1-SNAPSHOT/repository")
      ("ConfigFile" => "/Users/bwallis/InfoMedix/JBoss/jboss-as-7.1.0.Alpha1-SNAPSHOT/repository/repository.xml")

      ie: not just the path as required. Result in the jackrabbit adapter case is that a directory called '("HomeDir" => "' is created.

              smaestri@redhat.com Stefano Maestri
              bwallis42_jira Brian Wallis (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: