1. Double requests problem with- OPEN SESSION IN VIEW forum.hibernate.orgHi all, We have problem with OPEN SESSION IN VIEW pattern. we configured servlet filter like in HIbernate documentation -http://community.jboss.org/wiki/OpenSessioninView; Now everything works fine until user clicks on submit buttons or just links several times, it seems that hibernate use the same connection for all this requests. different type of exceptions thrown after clicks Like: 1.Caused by: org.hibernate.HibernateException: Found shared references ... |
2. Ajax request at current session forum.hibernate.orgNewbie Joined: Wed Mar 03, 2010 6:27 am Posts: 11 Hi all, In my web application I got a problem, If oneone help, I ll be very pleasent. I developed my application using hibernate (at all requests I used a new openSession() and after the request I closed session). Because I open and close sessin for every request, there was no ... |
3. Desire to trace SQL on a per request/session basis forum.hibernate.orgWe are implementing an application hosted on a web application server. In production, many (thousands) of concurrent users will access the system. We have created systems in the past where we offered a per-request trace option. This is needed because dumping all SQL traces for all users can be expensive, and obscure what we want to see. By setting a trace ... |
4. Session-per-conversion or Session-per-request? forum.hibernate.orgWhich approach do you prefer for implementing long application transactions? I have used Session-per-request with detached objects extensively, and find it a natural and easy way to work. However, I notice that Hibernate in Action seems to be in favour of Session-per-conversation (page 329; "we're inclined to think that it isn't [per-request] the best approach for servlet-only-applications") Unfortunately, as far as ... |
5. Hibernate.initialize with session per request forum.hibernate.orgHi, I have a question about the Hibernate.initialize functionality. I have struts application with Filter creating and closing the session for each request with the ThreadLocal pattern. I have a object which has 2 lazy collections and 5 proxied properties. session1 opens I found 5 of this MAIN object in the db using criteria query. session1 closes as view jsp has ... |
6. Every request suddenly returns "no session" forum.hibernate.orgFor a long time we've had an intermittent problem where our application, which works great for months at a time, suddenly return "no session" for any request at all. It will do this until the server is bounced. When it happens, it will usually happen a few more times in the same day and then go away again for days, weeks ... |
7. How to introduce ALTER SESSION requests in Hibernate forum.hibernate.orgHi all, I'm using Hibernate 2 under Oracle 10 And I want to set some Oracle specific parameters which alter my session for some usage convenience (for example disable case sensitivity for queries). To do that, I must submit a query like "ALTER SESSION SET NLS_COMP=...." How can I do this (perhaps in hibernate.cfg) ? Thanks a lot |
8. How many request&response handle session and sessioFact forum.hibernate.org |
9. When is session-per-request preferred and when a hindrance? forum.hibernate.orgSo I''m trying to fix a problem caused by the need to use select-before-update in an application because the persistence wrapper around hibernate attempts to hide the session and transaction such that when using the session-per-request pattern every invocation of a database operation opens a new session and at the end of every database operation in a finally block closes the ... |