Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Session per request programming  RSS feed

Jennifer Zhen
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,

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!