Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-1698

Changes in DAS Config to support authenticated connection using data source

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Java-DAS-Next
    • Java-DAS-Next
    • Java DAS RDB
    • None

    Description

      in RDB-DAS, when we use external DataSource, we do not pass userName, password. But MySQL (which with InnoDB supports Txn and works well with JOTM) does need id, pwd in ds.getConnection(). This can be case with other DBs as well.

      So, it looks like DAS config.xsd needs to allow passing userName, password in ConnectionInfo too ( and not just for ConnectionProperties).

      Thus below will be the changed DAS config portion:-
      <xsd:complexType name="ConnectionInfo">
      <xsd:sequence>
      <xsd:element maxOccurs="1" minOccurs="0" name="ConnectionProperties" type="config:ConnectionProperties"/>
      </xsd:sequence>
      <xsd:attribute name="dataSource" type="xsd:string"/>
      <xsd:attribute name="managedtx" type="xsd:boolean" default="true"/>
      <xsd:attribute name="userName" type="xsd:string" default=""/>
      <xsd:attribute name="password" type="xsd:string" default=""/>
      </xsd:complexType>

      <xsd:complexType name="ConnectionProperties">
      <xsd:attribute name="driverClass" type="xsd:string"/>
      <xsd:attribute name="databaseURL" type="xsd:string"/>
      <xsd:attribute name="loginTimeout" type="xsd:int" default="0"/>
      </xsd:complexType>

      Attachments

        1. 1698.patch
          82 kB
          Amita Vadhavkar

        Activity

          People

            amitav Amita Vadhavkar
            amitav Amita Vadhavkar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: