1 Reply Latest reply on Dec 21, 2012 10:11 AM by Adam Warski

    Hibernate  and Load Balancing

    Orazio Ler Newbie

      Hi all,

      I've my Java application running in Weblogic 8.1 with Hibernate 3.1 with no second level cache. I'm experiencing some problem about Lost Update since i have two Application Server with a load balancer using a Round Robin algorithm. In my hibernate configuration i'm using standard JDBC Session Transaction Manager:


      <!-- Enable Hibernate's automatic session context management -->

                <property name="current_session_context_class">thread</property>

                <property name="connection.isolation">2</property>



                <!-- Disable the second-level cache  -->

                <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>

                <property name="hibernate.jdbc.batch_size">0</property>



      What could i do to solve my problem?


      Best regards