Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341153 - PERF: deploy/connect session when EntityManagerFactory created, not EntityManager
Summary: PERF: deploy/connect session when EntityManagerFactory created, not EntityMan...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-28 15:36 EDT by James Sutherland CLA
Modified: 2022-06-09 10:18 EDT (History)
0 users

See Also:


Attachments
patch - various bug fixes (38.28 KB, patch)
2011-03-31 15:40 EDT, James Sutherland CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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