Hibernate Integrations Guide: an incorrect example LatestAndGreatestConnectionProviderImpl

Description

Hibernate Integrations Guide

1.5.1. Custom Service Implementations (overriding)

Example 1.1. Custom ConnectionProvider implementation
LatestAndGreatestConnectionProviderImpl.java#L26

1 2 3 4 5 6 public void stop() { available = true; // stop the underlying pool lagPool.shutdown(); }

should be changed to

1 2 3 4 5 6 public void stop() { available = false; // stop the underlying pool lagPool.shutdown(); }

Environment

None

Status

Assignee

Vlad Mihalcea

Reporter

Vladimir Ladynev

Fix versions

Labels

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.1.0

Priority

Trivial
Configure