WebSphere Application Server Traditional 및 Liberty 간의 구성 차이점: dataSource 및 jdbcDriver 요소

Liberty의 dataSourceWebSphere® Application Server Traditional의 데이터 소스 간의 구성에 일부 차이점이 있습니다.

  • 이름이 다른 데이터 소스 특성
    • ifxIFX_LOCK_MODE_WAIT이며 WebSphere Application Server TraditionalinformixLockModeWait입니다.
    • supplementalJDBCTrace이며 WebSphere Application Server TraditionalsupplementalTrace입니다.
    • transactional이며 WebSphere Application Server TraditionalnonTransactionalDataSource입니다.
    • isolationLevel이며 WebSphere Application Server TraditionalwebSphereDefaultIsolationLevel입니다.
    • queryTimeout이며 WebSphere Application Server TraditionalwebSphereDefaultQueryTimeout입니다.
    • id이며 WebSphere Application Server Traditionalname입니다.
  • 값이 다른 데이터 소스 특성
    • beginTranForResultSetScrollingAPIs: Liberty에서 기본적으로 true
    • beginTranForVendorAPIs: Liberty에서 기본적으로 true
    • connectionSharing: Liberty에서 기본적으로 MatchOriginalRequest
    • statementCacheSize: WebSphere Application Server Traditional의 JDBC 제공자 특성이며 Liberty의 dataSource 특성임(기본값: 10)
  • 동일한 Liberty가 없는 WebSphere Application Server Traditional의 데이터 소스 특성
    • category
    • supportsDynamicUpdates
  • 데이터 소스의 connectionSharing 특성
    • Liberty는 connectionSharingMatchOriginalRequest 또는 MatchCurrentState로 구성될 수 있도록 허용합니다. 기본적으로, MatchOriginalRequest입니다.
    • WebSphere Application Server TraditionalconnectionSharing을 미세한 방식으로 구성할 수 있으며, 여기서 개별 연결 특성은 원래 연결 요청 또는 현재 연결 상태를 기반으로 일치될 수 있습니다. WebSphere Application Server Traditional, connectionSharing은 현재 연결 상태를 기반으로 일치되는 연결 특성을 표시하는 비트 조합입니다. WebSphere Application Server Traditional에서 값 0은 원래 연결 요청을 기반으로 하는 모든 특성과 일치함을 의미합니다. 값 -1은 현재 연결 상태를 기반으로 하는 모든 특성과 일치함을 의미합니다. WebSphere Application Server Traditional의 기본값이 1이면 현재 연결 상태를 기반으로 격리 레벨이 일치함을 의미합니다. 원래 연결 요청을 기반으로 모든 기타 특성이 일치합니다.
  • 데이터 소스의 지속 기간 특성
    지속 기간 특성은 Liberty의 단위로 선택적으로 지정될 수 있습니다. 예를 들면 다음과 같습니다.
    <dataSource id="informix" jndiName="jdbc/informix" queryTimeout="5m"  ...>
            <properties.informix ifxIFX_LOCK_MODE_WAIT="120s" .../>
        </dataSource>
    dataSource 요소의 허용된 시간 단위와 형식은 Java Database Connectivity 4.1의 내용을 참조하십시오. Liberty의 단위 생략은 WebSphere Application Server Traditional에 사용되는 기본 단위와 동등합니다.
  • JDBC 드라이버의 구성
    • Liberty에서는 XA 사용 가능 및 비-XA 사용 가능 데이터 소스 구현 클래스에 대해 서로 다른 jdbcDriver 요소를 구성하는 동일 접근 방법을 사용할 수 있습니다. 모두에 대해 단일 jdbcDriver 요소를 사용할 수 있습니다. 다중 jdbcDriver 요소를 정의해도 다른 클래스 로더가 사용되지 않습니다. Liberty에서 jdbcDriver 요소는 항상 자신이 구성된 공유 라이브러리의 클래스 로더를 사용합니다.
    • WebSphere Application Server Traditional에서, JDBC 제공자는 파일과 원시 파일로 압축되는 JDBC 드라이버 JAR을 가리키도록 정의됩니다. 별도의 JDBC 제공자는 XA 사용 가능 및 비-XA 사용 가능 데이터 소스 구현 클래스에 대해 정의되어야 합니다.
    공통으로 사용되는 일부 JDBC 드라이버의 경우, Liberty는 드라이버 JAR의 이름을 기반으로 하여 데이터 소스 구현 클래스 이름을 추론합니다. 이 경우, 구현 클래스 이름을 생략할 수 있습니다. 예를 들어 다음과 같습니다.
    <jdbcDriver id="Derby" libraryRef="DerbyLib"/>
    <library id="DerbyLib">
           <fileset dir="C:/Drivers/derby" includes="derby.jar" />
        </library>

    javax.sql.DataSource, javax.sql.ConnectionPoolDataSource, javax.sql.XADataSource와 같이 기본 구현 클래스를 대체하려는 경우, 선택적 특성을 사용할 수 있습니다.

    Liberty가 선택하는 기본 javax.sql.XADataSourcejavax.sql.ConnectionPoolDataSource 구현을 대체하려면:
    <jdbcDriver id="Derby" libraryRef="DerbyLib" javax.sql.XADataSource="org.apache.derby.jdbc.EmbeddedXADataSource" javax.sql.ConnectionPoolDataSource="org.apache.derby.jdbc.EmbeddedConnectionPoolDataSource"/>
       <library id="DerbyLib">
          <fileset dir="C:/Drivers/derby" includes="derby.jar" />
       </library>
    jdbcDriver 요소에 대한 자세한 정보는 Java Database Connectivity 4.1의 내용을 참조하십시오.

주제의 유형을 표시하는 아이콘 참조 주제



시간소인 아이콘 마지막 업데이트 날짜: Monday, 5 December 2016
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-libcore-mp&topic=rwlp_ds_diff
파일 이름: rwlp_ds_diff.html