FileDocCategorySizeDatePackage
TestService.javaAPI DocApache Axis 1.41469Sat Apr 22 18:57:28 BST 2006test.concurrency

TestService

public class TestService extends Object
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;
        }
    
Methods Summary
public java.lang.Stringhello()

        return MESSAGE;