Hi Michael, Thanks for the reply! I had already figured out / remembered that the session is handled by that good ole spring OpenSessionInViewFilter and was coming back to answer my own question (mainly to provide documentation for some other poor soul who might be looking for that) when I saw your post.
So I'm not using JPA (hibernate works just fine in native mode, thanks! :) and it is indeed the OpenSessionInViewFilter that handles it. I think you are right about JPE and iBatis not using it, at least I found a comment by Matt saying that there is no such issue with iBatis so there's no need for that pattern and hence no need for the filter... Thanks again my friend... -=j=- On Mon, 2007-05-14 at 09:10 +0100, Michael Horwitz wrote: > Hi, > > Judging by the lack of responses, not a stupid question at all! I'm > assuming you are using 2.0x of AppFuse: > > The transactions are opened and closed using Spring AOP proxies. The > configuration is embedded inside the applicationContext-service.xml > file inside the appfuse-service jar file. It is set up to > automatically proxy all methods on any class whose name end in > Manager, and is configured to support the @Transactional annotation. > > The session is a little trickier. It used to opened by the > OpenSessionInViewFilter in web.xml (take a look and you will see in > commented out). I'm new to JPA and don't know much about iBatis, but > as far as I can tell, there is no replacement. So I'm taking a wild > guess here and assuming the session is opened and closed at the same > time as the transaction. Anyone on the list please feel free to > correct! ;-) > > Mike. > > On 5/11/07, -=j=- <[EMAIL PROTECTED]> wrote: > Hi guys, > > This is an embarrassingly stupid question and one I'm *sure* > I've seen > answered but can't find it in the archives. > > Where in appfuse is the hibernate session opened and > closed? I seem to > remember it's closed in a servlet filter (in service of 'open > session in > view') but I couldn't find the code. can anybody point me > towards that? > > Similarly, I can't find where the hibernate session is opened > either... > can anyone help? Sorry for such a dumb question, much obliged > for your > help in advance. > > -=j=- > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
