Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
AW: [rap-dev] Suggestions about using OpenSessionInView pattern with RAP

Hi,

you could use a PhaseListener to open the session at the beginning of each request lifecycle and close the session at the end of each request lifecycle. 

Note that this question belongs to the RAP newsgroup (http://www.eclipse.org/rap/newsgroup.php) since the mailing list is for RAP project development-related communication, only. You will find several threads in the newsgroup that helps about how to use phase listeners.


Ciao
Frank
 

-----Ursprüngliche Nachricht-----
Von: rap-dev-bounces@xxxxxxxxxxx [mailto:rap-dev-bounces@xxxxxxxxxxx] Im Auftrag von Valer Roman
Gesendet: Montag, 22. Oktober 2007 17:42
An: rap-dev@xxxxxxxxxxx
Betreff: [rap-dev] Suggestions about using OpenSessionInView pattern with RAP

Hi,

  Could u please advise me how should I use the OpenSessionInView pattern on in a RAP application ?
  What I'm interested in, is where should I create an Hibernate session and where should I close it in order to have the session opened across all the rendering of the view part.

Regards,
  Val

_______________________________________________
rap-dev mailing list
rap-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/rap-dev


Back to the top