Has any body run hibernate on the mainframe as a CICS program? If you have, can you tell me what kind of configuration you have used especially the connection parameters to the database and transaction manager?
We are using hibernate 3.5.1, Java 6.0 and DB2 V8 and CICS 4.1 on the mainframe (Z/OS v10). The java program is exposed as a CICS web service accessed to be part of a distributed transaction (WS-Atomic Transaction). Our config file looks as follows in development but before we move to QA, I would like to see what people are using for production.
Code:
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.ibm.db2.jcc.DB2Driver</property>
<property name="hibernate.connection.url">jdbc:default:connection</property>
<property name="hibernate.connection.pool_size">1</property>
<property name="show_sql">true</property>
<property name="hibernate.default_schema">TEST</property>
<property name="dialect">com.mycompany.hibernate.dialect.GDOLDB2Dialect</property>
<property name="hibernate.connection.autocommit">false</property>
<!-- Mapping files -->
</session-factory>
</hibernate-configuration>
Thanks,
-Biruck