Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 472345

Summary: Replacement for PhaseListeners
Product: [RT] RAP Reporter: Ken Wenzel <kenwenzel>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: 3.0   
Target Milestone: 3.1 M3   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Ken Wenzel CLA 2015-07-10 05:05:56 EDT
If the PhaseListener API is about to be removed from RAP then a replacement is required that allows to execute code on the UI thread at the beginning and at the end of a request.

Justification: Database connections are often managed on a per-thread basis and need to be opened/closed within the same thread that wants to use the connection for database operations. An example would be an entity manager that opens a database connection on demand if an interaction with a managed bean occurs (that usually happens on the UI thread). This connection needs to be reliably closed at a later point from the same thread (e.g. at the end of a request).

See also https://www.eclipse.org/forums/index.php/t/1067924/
Comment 1 Ivan Furnadjiev CLA 2015-10-23 03:55:20 EDT
With change https://git.eclipse.org/r/#/c/57786/ we introduced a UITreadListener. The listener methods are notified in the UI thread before and after PROCESS_ACTION phase.