Mr. Russell Butek, Thank you for your prompt reply.
Although the behavior is bit different from I expected, but it worked fine. A new client program, and its result are attached below. Russell Butek wrote: > > It isn't sufficient to tell the server that the service is session scope. > The client must be aware of it as well. > > locator.setMaintainSession(true); > > Russell Butek > [EMAIL PROTECTED] > The output of my test program. Third call block starts with 3, though I expected 1. So, it must be the same session of the first call block. test start (1): 1 (2): 2 test end test start (1): 1 (2): 1 test end test start (1): 3 (2): 4 test end test start (1): 5 (2): 6 test end /* Client.java */ package localhost; public class Test1 { private static void test(boolean maintainSession) { try { int i; LifeSpanTestServiceLocator locator = new LifeSpanTestServiceLocator(); locator.setMaintainSession(maintainSession); LifeSpanTest svc = locator.getLifeSpanTest(); System.out.println("test start"); System.out.println("(1): "+ String.valueOf(svc.getNext()) ); System.out.println("(2): "+ String.valueOf(svc.getNext()) ); System.out.println("test end"); } catch ( Exception e ) { System.err.print(e); } } public static void main(String [] args) throws Exception { test(true); test(false); test(true); test(true); } } /* akira.hirose */