2016-11-02 12 views
0

非常に重い旧式のアプリケーションであるJ2EEをRAD 8.5.5.1からIntelliJ 2016.1.1に移行しようとしています。 JNDIを使用したデータソースの構築。
DataSourceを除くすべてのコンポーネントをコンパイルして設定しました。 RADデータソースで はresource.xmlで、このように構成された:IntelliJのWebsphereデータソース設定

<resources.jdbc:JDBCProvider xmi:id="JDBCProvider_1163951110780" name="DB2 DataSource" description="DB2 Universal JDBC Driver Provider" implementationClassName="com.ibm.db2.jcc.DB2ConnectionPoolDataSource"> 
<classpath>${DB2UNIVERSAL_JDBC_DRIVER_PATH}/db2jcc.jar</classpath> 
<classpath>${UNIVERSAL_JDBC_DRIVER_PATH}/db2jcc_license_cu.jar</classpath> 
<classpath>${DB2UNIVERSAL_JDBC_DRIVER_PATH}/db2jcc_license_cisuz.jar</classpath> 
<nativepath>${DB2UNIVERSAL_JDBC_DRIVER_NATIVEPATH}</nativepath> 
<factories xmi:type="resources.jdbc:DataSource" xmi:id="DataSource_1163951270521" name="pensionjndi" jndiName="pensionjndi" description="DB2 Universal Driver Datasource" category="" authDataAlias="sec" relationalResourceAdapter="builtin_rra" statementCacheSize="150" datasourceHelperClassname="com.ibm.websphere.rsadapter.DB2UniversalDataStoreHelper"> 
    <propertySet xmi:id="J2EEResourcePropertySet_1163951270522"> 
    <resourceProperties xmi:id="J2EEResourceProperty_1163951270523" name="databaseName" type="java.lang.String" value="value" description="This is a required property. This is an actual database name, and its not the locally catalogued database name. The Universal JDBC Driver does not rely on information catalogued in the DB2 database directory." required="true"/> 
    <resourceProperties xmi:id="J2EEResourceProperty_1163951270524" name="driverType" type="java.lang.Integer" value="4" description="The JDBC connectivity-type of a data source. If you want to use type 4 driver, set the value to 4. If you want to use type 2 driver, set the value to 2. On WAS z/OS, driverType 2 uses RRS and supports 2-phase commit processing." required="true"/> 
    <resourceProperties xmi:id="J2EEResourceProperty_1163951270525" name="serverName" type="java.lang.String" value="serverName" description="The TCP/IP address or host name for the DRDA server. If custom property driverType is set to 4, this property is required." required="false"/> 
    <resourceProperties xmi:id="J2EEResourceProperty_1163951270526" name="portNumber" type="java.lang.Integer" value="50000" description="The TCP/IP port number where the DRDA server resides. If custom property driverType is set to 4, this property is required." required="false"/> 
... 
... 
... 
<resourceProperties xmi:id="J2EEResourceProperty_1175088739299" name="webSphereDefaultIsolationLevel" type="java.lang.Integer" value="2" description="" required="false"/> 
    </propertySet> 
    <connectionPool xmi:id="ConnectionPool_1163951270521" connectionTimeout="15" maxConnections="200" minConnections="5" reapTime="180" unusedTimeout="1800" agedTimeout="0" purgePolicy="EntirePool"/> 
    <mapping xmi:id="MappingModule_1163951296456" mappingConfigAlias="DefaultPrincipalMapping" authDataAlias="sec"/> 
</factories> 

私は、同じ名前(pensionjndi)を使用してのIntelliJのDataSourceおよびドライバのウィンドウ
DS IntelliJ Screen

ない運でDataSourceを定義しようとしました!アプリケーションはDataSourseを認識しません(ただし、RIGHT DSの名前「pensionjndi」を探しています)
質問:IntelliJ成果物のDataSourceを構成する正しい方法は何ですか? (既存のデータソースを使用)
追加情報が必要な場合は、投稿を編集します。 DataSource config for websphereに関するサンプルは見つかりませんでした。 助けてください!

答えて

0

問題は、Websphere Application Consoleでデータソースを定義することで解決されます。 WASコンソール|レデータソースは

Here is discussion about the problem with IntelliJ support

「管理コンソールを使用して、データ・ソースの構成」IBMのトピックを参照してください。
関連する問題