Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

c++ singleton

843829Mar 1 2010 — edited Mar 2 2010
I have a web service that is utilizing JNI to access a c++ library that I am loading via the static constructor of my class.

Inside that library, there is a singleton class that I plan on accessing, but I'm unsure of its lifecycle.

Since this is a web service, would there be one copy of the singleton per web service instance, or is there is a single instance of the singleton for all instances of the web service?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 30 2010
Added on Mar 1 2010
3 comments
230 views