I need to commit only Hibernate transactions inside CMT
Current System1) JBoss - Stateless Session Bean with
CMT2)
DataSource as below
Code:
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName">
<value>java:OracleDS</value>
</property>
</bean>
3)
Session FactoryCode:
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="configLocation">
<value>classpath:/hibernate.cfg.xml</value>
</property>
</bean>
4) I am using
both Hibernate and JDBC (direct).5) Now i need to commit only Hibernate transaction ("unit of work" or commit).
6) JDBC transactions as usual by CMT.
7) When i try with nested transaction, there is performance issue.
Please help me how to handle.