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

SimpleMapTest uses deprecated Hazelcast.getLoggingService() and annoys WebLogic 12 #227

Closed
mkarneim opened this issue Aug 2, 2012 · 0 comments

Comments

Projects
None yet
2 participants
@mkarneim
Copy link
Contributor

commented Aug 2, 2012

Hi folks!

Please remove the deprecated call to Hazelcast.getLoggingService() from SimpleMapTest.

When I deploy a WAR with CDI beans and hazelcast-2.2.jar into WebLogic 12, the CDI class scanner loads all classes located inside hazelcast-2.2.jar.
In this process it executes the static initializers off all classes - including those of SimpleMapTest.
The following statement (SimpleMapTest.java, line 40)

final static ILogger logger = Hazelcast.getLoggingService().getLogger("SimpleMapTest");

internally invokes

Hazelcast.getDefaultInstance()

which starts Hazelcast with the default configuration right away before my application code is running.

This is especially annoying when I republish the application, since for every redeployment another socket listener is created.

My current work around is to remove SimpleMapTest and SimpleMultiMapTest from hazelcast-2.2.jar.

Cheers,
Michael

@ghost ghost assigned mdogan Aug 10, 2012

@mdogan mdogan closed this in 4290477 Aug 10, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.