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]


Reply via email to