Reputation:
When I need to restart GF 4.0 I do
asadmin restart-domain
However, if there is running code at this time, for example if someone started database transaction and did half of this transaction? Will GF wait until all running threads finish their job?
Upvotes: 2
Views: 424
Reputation: 2513
Yes, if you gracefully shut down glassfish (using asadmin executed graceful commands), it will wait for all current requests to finish as well as prevent new requests.
Upvotes: 2