Hibernate version:
Hibernate 2.1.6
Is it possible to have a mutliuser application without a central SessionFactory serving all the sessions?
I have written a Swing application using Hibernate, connecting to a MySQL database. When I have multiple clients connecting to the database, the only way to get one client to see another client's changes is to re-instantiate the SessionFactory. This happens despite the fact that I'm closing and opening the session between reads, and that I can see Hibernate issuing a select statement on the console.
I realize this isn't really Hibernate's intended usage, but is there any way to get this to work?
|