Like I said before, I have not been using any transaction manager.
I thought that it would not be necessary - or better that in case there is none, the behaviour would be to just commit a query as soon as it comes through. I added TransactionManager, Interceptor and AutoProxyCreator and everything works now, and keeps working after turning autocommit off again.

Some more things below...

Mark,

 I added "hibernate.connection.autocommit=true" to my
hibernate.properties and that fixed it...

hm. I don't know if that's a good idea. I'm not comfortable with
hibernate.properties in a Spring environment, anyway. Is it clear to
you in which order they are read?
I do not use spring to configure hibernate in all details. I use hibernate.properties and use Spring to wire the SessionFactory together with all the other pieces
One last question, to get back to Tapestry - is Spring's OpenSessionInViewFilter going to work with Tapestry without limitations?
Afaik yes. What limitations where you thinking of? I can't think of
any right now. I don't understand the apparent popularity of it,
though, I think it's not that good a concept.
I didn't think of anything in particular. I was trying to figure out if I should use Tapernate, HiveTranse, or HoneyComb or if I could "simply" (not sure which one is easier - probably a matter of taste and habit!?) use OpenSessionInViewFilter instead of all these other options. I guess I had not considered that the reason why people are not using OpenSessionInViewFilter is that they don't use Spring at all in the first place.


I see all these posts about Tapernate and others, but I'm not sure whether
OpenSessionInViewFilter will work...

I might be mistaken, but I thought Tapernate was about providing a
Hibernate session factory through hivemind, allowing you to inject it
into your Daos *without* Spring. Plus some extra stuff for convenience
(similar to the OpenSessionInViewFilter from Spring). What is the
benefit of "Tapernate" when you are going to use Spring anyway? Maybe
someone could enlighten me on this?
I'll start a new thread on that, I have a similar question as well...

MARK

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to