• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hobernate - Session-per-conversation pattern with Extended Session

 
Witold Marshal
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For application written according to Session-per-conversation pattern with Extended Session which Session Context should be defined in cfg.xml in property "current_session_context_class" ?
Or maybe it doesn't use any Current Session Type ?
I am thinking about pattern where there is one Session object for all method calls in one EJB (stateful BMT) and all entities are continously managed even when transaction ends (during clients think time). Flush mode is set on Manual so committing single transactions doesn't flush changes to database and real flush occures at the end of the conversation in the last transaction.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!