2016-11-02 4 views
0

Ich versuche, J2EE, sehr schwere, alte Schule-Anwendung von RAD 8.5.5.1 zu IntelliJ 2016.1.1 zu migrieren. DataSource-Erstellung mit JNDI.
Ich kompilierte und konfigurierte alle Komponenten (für den Moment) außer DataSource. In RAD Datasource wie folgt konfiguriert, in resource.xml:Websphere Datenquelle Konfiguration in IntelliJ

<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> 

I Datasource mit demselben Namen (pensionjndi) unter Verwendung von IntelliJ Datasource und Treiber-Fenster
DS IntelliJ Screen

Kein Glück zu definieren versucht, ! Anwendung erkennt den DataSourse nicht (aber er sucht nach dem richtigen DS-Namen "pensionjndi")
Die Frage ist: Was ist ein richtiger Weg zum Konfigurieren von DataSource für IntelliJ Artifacts? (Unter Verwendung eines vorhandenen DataSources) Wenn eine zusätzliche Information erforderlich ist, werde ich den Beitrag bearbeiten .. Ich habe kein Beispiel oder Leitfaden für DataSource-Konfiguration für Websphere gefunden. Bitte HILFE !?

Antwort

Verwandte Themen