Loading
Transaction strategy configuration.

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  Transaction strategy configuration ?


Ans)

You have to hibernate know who manages the Trasactions by using
"manager_lookup_class" parameter Based on the Application Server
you deploy your application.

Here are some of the possible values :

org.hibernate.transaction.JBossTransactionManagerLookup                          JBoss AS
org.hibernate.transaction.WeblogicTransactionManagerLookup                     Weblogic
org.hibernate.transaction.WebSphereTransactionManagerLookup                 WebSphere
 org.hibernate.transaction.WebSphereExtendedJTATransactionLookup        WebSphere

Here is Full Configuration :
hibernate.connection.datasource = java:/comp/env/jdbc/test
hibernate.transaction.factory_class = \
    org.hibernate.transaction.JTATransactionFactory
hibernate.transaction.manager_lookup_class = \
    org.hibernate.transaction.JBossTransactionManagerLookup

hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

Transaction strategy configuration.


Transaction strategy configuration.

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free