Whiteship
  • Home
  • 인프런 강의
  • Java
  • Spring
  • JPA
  • SDE Tips
Subscribe

Conversation 구현 전략

A collection of 2 posts
Conversation 구현 전략

Persistence context 확장하기

특징 * 요청을 처리한 다음에 Persistent context를 닫지 않고 DB Connection을 끊은 상태에서 사용자의 다음 요청을 기다린다. 사용자의 다음 요청이 오면 다시 DB에 연결하고 다음 요청을 처리한다. Conversation이 끝나면, Persistent context를 DB에 동기화하고, 닫는다. 다음 Conversation을 시작할 때는 새로운 Persistence context를 시작하고, 이전 Conversation에서 사용했던 entity 객체들을 재사용하지 않는다. * Detached 상태의
Feb 24, 2008 — 1 min read
conversation

Conversation 소개

특징 * Persistence를 사용하는 여러 화면에 걸쳐 사용자의 요청을 처리해야 하는 경우. * 두 가지 구현 방법이 있다. Detached Object를 이용하는 방법 * session-per-request-with-detatched-objects * Persistent context는 오직 하나의 요청을 처리하는 동안만 지속되고, Detached 상태의 객체들은 Conversation 내부에서는 계속해서 reattach하거나 merge를 해서 다시 Persistent 상태로 만들어서 사용한다. Persistence context를 확장하는 방법 * session-per-conversation * Persistent context를
Feb 24, 2008 — 1 min read
Whiteship © 2022
Powered by Ghost