[hibernate-issues] [JIRA] (HHH-14141) Hibernate session created twice in Weblogic
Theodore Chaikalis (JIRA)
jira at hibernate.atlassian.net
Fri Aug 7 09:29:38 EDT 2020
Theodore Chaikalis ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A00acda32-c4f1-46fc-9a5b-aac4f335bf2c ) *updated* an issue
Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiN2QwM2VjYjA1MzQ4NDVhZDkyOTM1MTYyYTMwMjYxZTUiLCJwIjoiaiJ9 ) / Improvement ( https://hibernate.atlassian.net/browse/HHH-14141?atlOrigin=eyJpIjoiN2QwM2VjYjA1MzQ4NDVhZDkyOTM1MTYyYTMwMjYxZTUiLCJwIjoiaiJ9 ) HHH-14141 ( https://hibernate.atlassian.net/browse/HHH-14141?atlOrigin=eyJpIjoiN2QwM2VjYjA1MzQ4NDVhZDkyOTM1MTYyYTMwMjYxZTUiLCJwIjoiaiJ9 ) Hibernate session created twice in Weblogic ( https://hibernate.atlassian.net/browse/HHH-14141?atlOrigin=eyJpIjoiN2QwM2VjYjA1MzQ4NDVhZDkyOTM1MTYyYTMwMjYxZTUiLCJwIjoiaiJ9 )
Change By: Theodore Chaikalis ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A00acda32-c4f1-46fc-9a5b-aac4f335bf2c )
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=eyJpIjoiN2QwM2VjYjA1MzQ4NDVhZDkyOTM1MTYyYTMwMjYxZTUiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-14141#add-comment?atlOrigin=eyJpIjoiN2QwM2VjYjA1MzQ4NDVhZDkyOTM1MTYyYTMwMjYxZTUiLCJwIjoiaiJ9 )
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.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100141- sha1:76df2fe )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200807/fdabd667/attachment.html
More information about the hibernate-issues
mailing list