Repository navigation
[WFLY-19554] Implement EE 11 JPA / CDI integration in WildFly Preview - #19088
Conversation
14ffd6b to
5213352
Compare
77b68d4 to
f21ff00
Compare
a7d11cf to
3964321
Compare
a9448ef to
3cb746e
Compare
83f463c to
c90b6b2
Compare
This comment was marked as resolved.
This comment was marked as resolved.
|
Dependency Tree Analyzer Output: Major Version Changes:
CC @wildfly/prod |
|
I'll sync up with main and squash as well |
370ed55 to
f7f4726
Compare
|
I'll have another look at this today and send up a EE11 Draft PR to get a run in there as well. |
|
Note that the status box for this PR is currently also showing results for #19215. I think this happens when two branches are testing the same PR branch, but merged into different target branches. It's harmless, just confusing. |
Signed-off-by: Scott Marlow <[email protected]>
…notation. Slight changes to the producer. Signed-off-by: James R. Perkins <[email protected]>
…n WildFly Preview Signed-off-by: Scott Marlow <[email protected]>
Signed-off-by: Scott Marlow <[email protected]>
…cal/src/main/resources/modules/system/layers/base/jakarta/persistence/api/main/module.xml Signed-off-by: Scott Marlow <[email protected]>
f7f4726 to
66f60c1
Compare
Signed-off-by: Scott Marlow <[email protected]>
|
All tests passed which is great to see! I'm pushing one more change to remove an extra class load that we don't need. |
|
@darranl I put a 38.x label on this because if it's approved in time for 38 Beta that would be great. If not. it's ok. It's WFP so we could always put in into 38 Final if we want, but of course having changes in the beta is better. |
jamezp
left a comment
There was a problem hiding this comment.
@scottmarlow I think we should merge this, but I've got 3 requests for a follow up PR before final. Let's discuss these.
| if (null == deploymentUnit.putAttachment(JpaAttachments.AFTER_BEAN_DISCOVERY_ATTACHMENT_KEY, persistenceCdiExtension)) | ||
| weldCapability.get().registerExtensionInstance(persistenceCdiExtension, deploymentUnit); | ||
| } | ||
| } | ||
| if ( persistenceCdiExtension != null) { | ||
| result = persistenceCdiExtension.register(pu); | ||
| result.setTransactionManager(transactionManager); | ||
| result.setTransactionSynchronizationRegistry(transactionSynchronizationRegistry); | ||
| } |
There was a problem hiding this comment.
We should fix this in a follow up, but I'm not sure this is correct. I need to look at how sub-deployments are processed though.
The issue though is that if deploymentUnit.putAttachment(JpaAttachments.AFTER_BEAN_DISCOVERY_ATTACHMENT_KEY, persistenceCdiExtension) returns a value, you'd be executing the register() on the wrong instance.
| if (proxyBeanManager != null && proxyBeanManager.delegate() != null) { | ||
| createCDIBeansForPersistence(proxyBeanManager.delegate(), entityManagerFactory, pu, classLoader); | ||
| } |
There was a problem hiding this comment.
Again for a follow up, I don't understand this. It invokes the createCDIBeansForPersistence() which does nothing.
https://issues.redhat.com/browse/WFLY-19554