Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISPN-1157 - StartupListener overwrites ManagerInstance.instance even if it's set already by container. #359

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ class StartupListener extends HttpServlet with Log {
// setting ManagerInstance.instance
// 2. Doing it here makes it a lot easier rather than needing to have a separate module
// within app server build system
ManagerInstance.instance = getMcInjectedCacheManager(cfg)
if (ManagerInstance.instance == null) {
ManagerInstance.instance = getMcInjectedCacheManager(cfg)
}

// If cache manager is still null, create one for REST server's own usage
if (ManagerInstance.instance == null) {
Expand Down