1. Web environment - managing session patterns? Which one? forum.hibernate.org
So far, my work with hibernate has been in standard java programs. I'm now moving my domain model to the web after testing, but I'm getting confused when reading about the proper "patterns" in using sessions in this environment. So far, it seems that my best option, would be to start a session at the beginning of my servlet, do the ...
2. How to close the session/connnectin in a managed environment forum.hibernate.org
Hello: I am trying to integrate my CMP Stateless Session Beans with Hibernate 3.1. My DB is MySQL 4.0.13 and I use JBoss 3.2.7. I want JBoss to handle the Tx so that i have configured Hibernate with the following properties through hibernate.cgx.xml Quote:
3. Hibernate Session in a threaded environment forum.hibernate.org
Newbie Joined: Wed Jul 23, 2008 10:48 am Posts: 5 Hi all, I have a problem with a session. I have a service class, which starts a new thread (triggering another service). Both services have the same Hibernate session injected via hivemind. But on the commit I got a NonUniqueObjectException. Hibernate version: 3.2.6.GA. Full stack trace of any exception that occurs: ...
4. getCurrentSession() in WebSphere managed environment forum.hibernate.org
Hello, I am in the process of developing a persistence layer based on Hibernate. I want to use the ThreadLocal capability of Hibernate for obtaining a Session I have the following properties set in the hibernate.cfg.xml
5. Multiple SessionFactory's in OSGi environment forum.hibernate.org
I'm trying to figure out if it's possible to have a separate SessionFactory for each of the bundles that use Hibernate for persistence. I've seen several places that talk about having a single SessionFactory that get dynamically reconfigured when new bundles are added that have classes that should be persisted. But I haven't seen anything about having something like a SessionFactory ...