Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about shutdown-hook

Read more about shutdown-hook

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - shutdown-hook

Should EntityManagerFactory be closed at application shutdown?

I have a Java application that has a GUI made with Swing and that uses two databases interchangeably. One of the two databases is mongoDB and the other one is MySQL. Which database to use is chosen wi...
test-img

ClaudiaR

java

hibernate

entitymanager

shutdown-hook

entitymanagerfactory

Votes: 0

Answers: 2

Latest Answer

Short answer, yes, it should be closed. And the reason can be found at this answer: The JVM will release all active resources upon termination; however, this does not ensure that the other end will f...
test-img

ClaudiaR

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved