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

Bug 341153

Summary: PERF: deploy/connect session when EntityManagerFactory created, not EntityManager
Product: z_Archived Reporter: James Sutherland <jamesssss>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: blocker    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch - various bug fixes none

Description James Sutherland CLA 2011-03-28 15:36:32 EDT
We should provide an option to deploy/connect session when EntityManagerFactory created, not EntityManager.

Currently we deploy when the em is first accessed, this makes the server start quicker, but means the first request could take a very long time, and possibly timeout.

It also causes an issue that each connection pool is validated on connect, binding each to the current JTA transaction.  This will break if a LLR optimization is being used.
Comment 1 James Sutherland CLA 2011-03-31 15:40:34 EDT
Created attachment 192320 [details]
patch - various bug fixes
Comment 2 James Sutherland CLA 2011-04-04 13:28:02 EDT
SVN trunk pending commit: Bug#341153 - allow deploy to occur at startup

https://bugs.eclipse.org/bugs/show_bug.cgi?id=341153

Also, Bug# 337375, 271636, 337585, 340765, 340860

Code review: Andrei, pending
Changes:
- Added "eclipselink.deploy-on-startup" option to deploy and connect persistence unit when factory is created, instead of when first entity manager to avoid JTA issues with multiple connections.
- Fixed bug in batch fetching using IN when multiple pages are required.
- Fixed bug in partitioning to use default connection instead of all write connections.
- Added test for field access to interface impl.
- Added batch fetch tests.
- Fixed annotation processing to use correct weaving flags.
Comment 3 James Sutherland CLA 2011-04-13 09:51:52 EDT
fixed
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:15:06 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:18:44 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink