• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session per request programming

 
Jennifer Zhen
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I am having a question regarding changing into session per request pattern.

Say, if we had a method


When we had the transaction boundaries around the method (getSomethingById), and nothing else outside the method (transaction), the "sth" would be in transient state, right?

HOwever, if we changed to session per request pattern, then we have another transaction/session wrapping outside of this current method. so the "sth" would be in persistent state?

In the same way, does changing to session per request pattern warrant changes to our code? so far, we are fine. however, is there the cases that we MUST change the code in order to work?

thanks for replies,

J.Z.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic