KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > test > orb > connection > ConnectionTimeoutServerImpl


1 package org.jacorb.test.orb.connection;
2
3 /*
4  * JacORB - a free Java ORB
5  *
6  * Copyright (C) 1997-2002 Gerald Brose.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library; if not, write to the Free
20  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  */

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 JavaDoc 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 JavaDoc e )
51         {
52             e.printStackTrace();
53         }
54     }
55 }
56
57
58
Popular Tags