1 package org.jacorb.test.orb.connection; 2 3 22 23 import org.jacorb.test.*; 24 25 public class ConnectionTimeoutServerImpl 26 extends TestIfPOA 27 { 28 public void op() 29 { 30 try 31 { 32 System.out.println( "will sleep 2 secs" ); 33 Thread.sleep( 2000 ); 34 System.out.println( "woke up" ); 35 } 36 catch( Exception e ) 37 { 38 e.printStackTrace(); 39 } 40 } 41 42 public void onewayOp() 43 { 44 try 45 { 46 System.out.println( "will sleep 2 secs" ); 47 Thread.sleep( 2000 ); 48 System.out.println( "woke up" ); 49 } 50 catch( Exception e ) 51 { 52 e.printStackTrace(); 53 } 54 } 55 } 56 57 58 | Popular Tags |