I\'m developping a mono user desktop application using SWING. I had a little experience with this kind of application on which i used the java.sql api and figured out that i
have you looked at http://docs.jboss.org/hibernate/core/4.0/manual/en-US/html/transactions.html#transactions-basics-issues. I think it would be wise to read the documentation there before proceeding using sessions object for too much time. I guess the better approach is to use the session to do a simple unit of work (for example : the CRUD operations).
Hope it helps!!.
Greetings.