Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7938217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:44:36+00:00 2026-06-03T22:44:36+00:00

I am trying to develop an application using Spring 2.5.5 Flex/J2EE and Hibernate 3.1.3.

  • 0

I am trying to develop an application using Spring 2.5.5 Flex/J2EE and Hibernate 3.1.3.
My problem is that when a user opens the “Customer Information” screen and then displays informations of a client in change mode, I want the record to be locked (Pessimistic or optimistic lock Lock) as appropriate. And registration remains locked until the user validates the change (commit ()) or closes the screen.

They talk on the net about long conversation (Hibernate), and openSessionInView pattern. But I have not found a clear example.

The solution is to keep the Hibernate session open until the end of entry.
then made ​​the commit or rollback.

I try to use the class: “org.springframework.orm.hibernate3.support.OpenSe ssionInViewInterceptor” but I did not succeed.
I do not know how to configure it with Spring.

I spent too much time and it becomes urgent … Who can help me??

Thank you in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T22:44:37+00:00Added an answer on June 3, 2026 at 10:44 pm

    OpenSessionInViewInterceptor has to be configured in your web.xml

    Sample below:

        <filter>
            <filter-name>openSessionInViewFilter</filter-name>
            <filter-class>
               org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
            </filter-class>
            <init-param>
                 <param-name>sessionFactoryBeanName</param-name>
                 <param-value>sessionFactory</param-value> <!-- This is the default value, in case you have given different name please specify the same. -->
            </init-param>            
        </filter>
    

    Also check the documentation for subtle issues.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I’m trying to develop a Spring 3 MVC application using the Springsource Tool Suite/Eclipse
I am trying to develop a web project using Hibernate 4 and spring 3.1.
I am trying to develop one simple application using Java, Flex and Blazeds. I
I am trying to develop a Wicket-based web application using Hibernate at the model
I am trying to develop an application that uses MySQL using C++. I downloaded
I an trying to develop a windows application using C# that can play streamed
I'm trying to develop a web application that mainly uses PHP but i'm using
So, I am trying to develop an application that will display user listings. The
I'm trying to develop an application that consists of a pool of threads, using
Im trying to develop an application that should show a map using the Google

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.