These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: realted to hibernate and JTA configuration
PostPosted: Mon Aug 04, 2008 8:09 am 
Newbie

Joined: Mon Aug 04, 2008 7:47 am
Posts: 2
Location: Mumbai india
Hibernate version: Hibernate 3.2.6

hibernate config file

<hibernate-configuration>
<session-factory name="IPRUHA_SESSIONFACTORY">
<property name="connection.datasource">IPRUHA</property>
<property name="connection.username">weblogic</property>
<property name="connection.password">weblogic</property>
<!--Dialect for Oracle-->
<property name="dialect">org.hibernate.dialect.Oracle9iDialect</property>
<!--Echo all executed SQL to stdout-->
<property name="hibernate.show_sql">true</property>
<property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>

<property name ="jndi.class">weblogic.jndi.WLInitialContextFactory</property>
<property name="current_session_context_class">jta</property>
<property name="transaction.manager_lookup_class">org.hibernate.transaction.WeblogicTransactionManagerLookup</property>
<property name="transaction.factory.class">org.hibernate.transaction.JTATransactionFactory</property >

<!--
<property name="transaction.manager_lookup_class">org.hibernate.transaction.WeblogicTransactionManagerLookup</property>
<property name="transaction.factory.class">org.hibernate.transaction.JTATransactionFactory</property >
<property name="current_session_context_class">jta</property>
<property name="current_session_context_class">thread</property>
-->

<mapping resource="/com/ipru/ha/admin/core/security/role/roles-hbm.xml"/>
<mapping resource="/com/ipru/ha/admin/core/security/user/user-hbm.xml"/>
<mapping resource="/com/ipru/ha/admin/ecoupons/models/ha_admin_e_coupons.hbm.xml"/>

</session-factory>
</hibernate-configuration>



Name and version of the database you are using: Oracle9i


Problems with transaction handling?

when hibernate configuration loaded

it display messages on console

15:34:19,186 INFO TransactionFactoryFactory:31 - Using default transaction strategy (direct JDBC transactions)
15:34:19,202 INFO TransactionManagerLookupFactory:38 - instantiating TransactionManagerLookup: org.hibernate.trans
action.WeblogicTransactionManagerLookup

// some console messages
15:34:19,436 INFO SessionFactoryImpl:161 - building session factory
15:34:20,762 INFO SessionFactoryObjectFactory:86 - Factory name: IPRUHA_SESSIONFACTORY
15:34:20,762 INFO NamingHelper:26 - JNDI InitialContext properties:{java.naming.factory.initial=weblogic.jndi.WLIn
itialContextFactory}
15:34:20,918 INFO SessionFactoryObjectFactory:91 - Bound factory to JNDI name: IPRUHA_SESSIONFACTORY
15:34:20,918 WARN SessionFactoryObjectFactory:101 - InitialContext did not implement EventContext
15:34:20,918 INFO NamingHelper:26 - JNDI InitialContext properties:{java.naming.factory.initial=weblogic.jndi.WLIn
itialContextFactory}
15:34:20,918 WARN SessionFactoryImpl:994 - JTASessionContext being used with JDBCTransactionFactory; auto-flush wi
ll not operate correctly with getCurrentSession()


What i would like to achieve ?
I want to use JTA transaction with hibernate
where my service layer is not spring or ejb but it has POJO


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.