Theodore Chaikalis (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiN2QwM2VjYjA1...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-14141?atlOrigin=eyJpIjoiN2QwM2...
) HHH-14141 (
https://hibernate.atlassian.net/browse/HHH-14141?atlOrigin=eyJpIjoiN2QwM2...
) Hibernate session created twice in Weblogic (
https://hibernate.atlassian.net/browse/HHH-14141?atlOrigin=eyJpIjoiN2QwM2...
)
Change By: Theodore Chaikalis (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
We noticed that during application deployment, all relevant Hibernate persistence units
are getting created 2 times, thus significantly increasing deployment time.
Attached is a relevant log from a deployment and a demo war to reproduce the issue
Tested with Hibernate > 5.2.11. Currently: 5.4.16
Reproduce Actions
Actions :
1. create new data source in weblogic with jndi name: *jdbc/SSA* Use oracle db.
2. deploy app
3. check logs
You will notice that the log entry:
Processing PersistenceUnitInfo \[name: primary]
happens 2 times\!\!
(
https://hibernate.atlassian.net/browse/HHH-14141#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-14141#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100141- sha1:76df2fe )