Project

General

Profile

Actions

task #6775

open

task #6992: Refactor and modernize REST web service API

consider using the OpenSessionInViewFilter for all REST service endpoints

Added by Andreas Kohlbecker over 6 years ago. Updated about 2 years ago.

Status:
New
Priority:
New
Category:
cdmlib-remote
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Severity:
normal

Description

OpenSessionInViewFilter (org.springframework.orm.hibernate5.support.OpenSessionInViewFilter): Servlet Filter that binds a Hibernate Session to the thread for the entire processing of the request.

https://developer.jboss.org/wiki/OpenSessionInView

This would allow us simplifying the controllers a lot. Initstrategies would no longer be needed to avoid LazyInitializationException

Actions

Also available in: Atom PDF