Open tjwatson opened 1 year ago
From an EJB Container perspective, this is an extension to ejbLite-3.2
which is already enabled for InstantOn. I believe the main issue is going to be with how the remote EJB interfaces are bound into the ORB's NameService. Here are three designs I'd image could work with InstantOn:
I recommend making no changes to EJB Container code; allow it to "start" MDBs normally prior to checkpoint. Then, change the activationSpecifications (JCA) to either not start the ActivationSpecs until restore, or start them in the "paused" state. This allows MDBs to "start", but not "activate" until restore.
MDBs "start" much like "Stateless" beans that are already enabled for ejbLite-3.2
, so I don't expect there to be any concerns "starting" them. At the end of application start, the MDBs are then "activated", which also should be fine, as this really just puts them in a "pending" state where they wait for other resources to start, such as the "Queue" and the "ActivationSpec". By not fully starting the "ActivationSpec" until restore, then all of the processing for MDBs can still be completed during application start, prior to checkpoint.
The only concern I can see with this is that a Warning or Error may be logged indicating the MDB never activated... due to the large time gap between the EJB Container calling acitvateEndpoint and the ActivationSpec becoming available on restore. It is possible some minor change would be needed to avoid this warning; testing should uncover if this is a problem.
Marked feature jca-1.7 as completed. InstantOn support for Jakarta Connectors, in addition to Message-Driven Jakarta Enterprise Beans, was delivered in epic https://github.com/OpenLiberty/open-liberty/issues/26039.
Description
For JavaEE and JakartaEE the
ejb
feature will be enabled for InstantOn support. We will start with EE 8 versionejb-3.2
support. This includes the following features:[ ] ejb-3.2 - Enablement only; no code changes; convenience feature for all below
[ ] ejbHome-3.2 - Enablement and test; no code changes; no significant function over ejbLite
[x] ejbLite-3.2 - Already supported from
webProfile
[ ] ejbPersistentTimer-3.2 - See #18778
[ ] ejbRemote-3.2
[x] jca-1.7 - See #26039
[x] jdbc-4.1
[x] jndi-1.0 - Already supported from
webProfile
[x] mdb-3.2 / jmsMdb-3.2 - See #27331
Documents
When available, add links to required feature documents. Use "N/A" to mark particular documents which are not required by the feature.
Aha: Externally raised RFE (Aha)
UFO: Link to Upcoming Feature Overview document
FTS: #28757
Beta Blog: Link to Beta Blog Post GH Issue
GA Blog: Link to GA Blog Post GH Issue
Process Overview
Prioritization
Design
Implementation
Legal and Translation
Beta
GA
Other Deliverables
General Instructions
The process steps occur roughly in the order as presented. Process steps occasionally overlap.
Each process step has a number of tasks which must be completed or must be marked as not applicable ("N/A").
Unless otherwise indicated, the tasks are the responsibility of the Feature Owner or a Delegate of the Feature Owner.
If you need assistance, reach out to the OpenLiberty/release-architect.
Important: Labels are used to trigger particular steps and must be added as indicated.
Prioritization (Complete Before Development Starts)
The (OpenLiberty/chief-architect) and area leads are responsible for prioritizing the features and determining which features are being actively worked on.
Prioritization
[ ] Feature added to the "New" column of the Open Liberty project board
[ ] Priority assigned
Design (Complete Before Development Starts)
Design preliminaries determine whether a formal design, which will be provided by an Upcoming Feature Overview (UFO) document, must be created and reviewed. A formal design is required if the feature requires any of the following: UI, Serviceability, SVT, Performance testing, or non-trivial documentation/ID.
Design Preliminaries
ID Required
, if non-trivial documentation needs to be created by the ID team.ID Required - Trivial
, if no design will be performed and only trivial ID updates are needed.Design
Design Review Request
Design Approval Request
Design Approved
No Design
No Design Approval Request
No Design Approved
Product Management Approval Request
and notifies OpenLiberty/product-managementProduct Management Approved
(OpenLiberty/product-management)FAT Documentation
[ ] "Feature Test Summary" child task created
Implementation
A feature must be prioritized before any implementation work may begin to be delivered (inaccessible/no-ship). However, a design focused approach should still be applied to features, and developers should think about the feature design prior to writing and delivering any code.
Besides being prioritized, a feature must also be socialized (or No Design Approved) before any beta code may be delivered. All new Liberty content must be inaccessible in our GA releases until it is Feature Complete by either marking it
kind=noship
or beta fencing it.Code may not GA until this feature has obtained the "Design Approved" or "No Design Approved" label, along with all other tasks outlined in the GA section.
Feature Development Begins
In Progress
labelLegal and Translation
In order to avoid last minute blockers and significant disruptions to the feature, the legal items need to be done as early in the feature process as possible, either in design or as early into the development as possible. Similarly, translation is to be done concurrently with development. Both MUST be completed before Beta or GA is requested.
Legal (Complete before Feature Complete Date)
Translation (Complete 1 week before Feature Complete Date)
Innovation (Complete 1 week before Feature Complete Date)
[ ] Consider whether any aspects of the feature may be patentable. If any identified, disclosures have been submitted.
Beta
In order to facilitate early feedback from users, all new features and functionality should first be released as part of a beta release.
Beta Code
kind=beta
,ibm:beta
,ProductInfo.getBetaEdition()
target:beta
and the appropriatetarget:YY00X-beta
(where YY00X is the targeted beta version).release:YY00X-beta
(where YY00X is the first beta version that included the functionality).Beta Blog (Complete 1.5 weeks before beta eGA)
[ ] Beta blog issue created and populated using the Open Liberty BETA blog post template.
GA
A feature is ready to GA after it is Feature Complete and has obtained all necessary Focal Point Approvals.
Feature Complete
target:ga
and the appropriatetarget:YY00X
(where YY00X is the targeted GA version).Focal Point Approvals (Complete by Feature Complete Date)
These occur only after GA of this feature is requested (by adding a
target:ga
label). GA of this feature may not occur until all approvals are obtained.All Features
focalApproved:externals
@OpenLiberty/demo-approvers Demo scheduled for EOI [Iteration Number]
to this issue.focalApproved:demo
.focalApproved:fat
.focalApproved:globalization
.Design Approved Features
focalApproved:accessibility
.focalApproved:id
.focalApproved:performance
.focalApproved:sve
.focalApproved:ste
.focalApproved:svt
.Remove Beta Fencing (Complete by Feature Complete Date)
GA Blog (Complete by Feature Complete Date)
Post GA
[ ] Replace
target:YY00X
label with the appropriaterelease:YY00X
. (OpenLiberty/release-manager)Other Deliverables
[ ] Standalone Feature Blog Post A blog post specifically about your feature or N/A. (OpenLiberty/release-architect)
[ ] OL Guides OL Guides assessment is complete or N/A. (OpenLiberty/guide-assessment)
[ ] Dev Experience Developer Experience & Tools work is complete or N/A. (OpenLiberty/dev-experience-assessment)