An Axis service to test application scope. There should be exactly one
instance of this class, if we end up with more then application scope
isn't working correctly.
author
Glen Daniels (gdaniels@apache.org)
Fields Summary
private static Object
lock
private static TestService
singleton
public static final String
MESSAGE
Constructors Summary
public TestService()
synchronized (lock) {
if (singleton != null) {
// We're not the first/only one, so throw an Exception!
throw new Exception("Multiple instances of TestService created!");
}
singleton = this;
}