Re: hibernatesessionmanager produces redundant exception

2010-11-29 Thread Tom van Dijk
Well, the thing is that an injected Session is retrieved from the HibernateSessionManager. This service is a per-thread service, so every request (has a seperate, new thread and thus) has its own HibernateSessionManager. This service automatically starts a new transaction. (see also https://sv

hibernatesessionmanager produces redundant exception

2010-11-29 Thread Yury Luneff
Greetings. I made a simple example playing with hibernate spatial / etc. I have following event handler on my page (tapestry 5.1.0.5): public void onClick() { Stop stop = new Stop(); WKTReader fromText = new WKTReader(); Geometry poly = null; Transaction tx = null