session « Struts « JPA Q&A





1. Struts2 Context handling    stackoverflow.com

I need some help in session management for database in hibernate. Working with struts2 and hibernate. I have gone through simple apps. Now I want my Database connection in Startup so ...

2. Null pointer exception while starting hibernate session    stackoverflow.com

I am new to struts/hibernate I downloaded an example from mkyong .. when i deploy the application I get error in following line

SessionFactory sessionFactory = 
       ...

3. Open Session in View, struts2.2.1, eclipseLink (JPA2)    struts.1045723.n5.nabble.com

4. [OT] Struts/Hibernate Open Session in View    struts.1045723.n5.nabble.com

2009/3/3 Burton Rhodes <[hidden email]>: > Has anyone had issues with the scalability of hibernate's recommended > OSiV pattern? I am upgrading my struts app from 5 users to handle > 1000+ users and I am curious if I should avoid this pattern for the > upgrade. I have heard some have had performance issues but I am not > sure ...

5. struts 2 best practice for hibernate session    struts.1045723.n5.nabble.com

6. Struts 2 hibernate session-per-request    struts.1045723.n5.nabble.com

Hi Everyone, Some time ago I asked you about a problem with old objects in session. I noted that my application is using diferent sessions to recovery a data from db. Some times the application shows the corect result, other shows old results (with old session). I guess that if I use session-per-request I'll throw my problem away. Does anyone knows ...

7. Open Session in View and Struts    forum.hibernate.org

Author Message brian_wainwright Post subject: Open Session in View and Struts Posted: Wed May 05, 2004 1:37 pm Beginner Joined: Mon Dec 29, 2003 12:49 pm Posts: 41 Location: Boston, MA Hey all, Details: Hibernate 2.1.3 MySQL 4.0.17 I'm using (rather attempting to use) the Open Session in View pattern with Struts and am having a problem - the ...

8. Hibernate Session still open after Request? (Struts)    forum.hibernate.org

Hibernate version: 3.1 Hi, I'm currently working on a small project with struts and hibernate. I use JavaBeans for representing the Entities in my database. But I also use DTOs which are quite similar to the JavaBeans. If I receive a list of Entities from the DB I use the following code: Code: public java.util.List getUserBOs() { ...

9. Struts and Session    forum.hibernate.org

Hi, I've been creating some application with struts and hibernate, and I have some weird behavior when saving the items. First I followed the Open Session in View ( http://www.hibernate.org/43.html ) to implement the filter for opening/closing transaction. But I noticed that sometimes the data is not written to the database. So I googled it, and some people say that session ...





10. Struts/Hibernate/Sessions    forum.hibernate.org

Hello everyone, Hope you can help with this problem. I am deciding how to correctly handle sessions with struts. The problem I am having is that I want to keep the session open after I process the action and into the view. I cannot close the session before going to the jsp page because I have a few lazy collections that ...

11. Open session in view and struts    forum.hibernate.org

I have an application which uses struts and hibernate. I'm badly using the Open Session in View pattern the way is writting in http://hibernate.org/43.html . The application is finished and I realize too late that the view is rendering before the commit and if an exeption is thrown the user see a successful page. This occurs unusually that is why I ...

12. Implement hibernate pattern session-per-conversation Struts    forum.hibernate.org

Hi Andr, thanks for your quick answer but it is not quite what I looking for... I am looking for a sample or tutorial to help me understand how to implement the Hibernate Pattern Session-per-Conversation in a Struts environment. I just migrated a hibernate/struts/tomcat 1.4 application to a new server (tomcat 5.5) and Hibernate hangs after an hour or so... I ...