jfclere     2005/04/16 03:46:55

  Modified:    jni/examples/org/apache/tomcat/jni Echo.java
  Log:
  catch the next exception.
  
  Revision  Changes    Path
  1.4       +11 -6     
jakarta-tomcat-connectors/jni/examples/org/apache/tomcat/jni/Echo.java
  
  Index: Echo.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jni/examples/org/apache/tomcat/jni/Echo.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Echo.java 15 Apr 2005 14:24:53 -0000      1.3
  +++ Echo.java 16 Apr 2005 10:46:55 -0000      1.4
  @@ -64,7 +64,7 @@
           private long serverSock = 0;
           private long inetAddress = 0;
           private long pool = 0;
  -        public Acceptor() {
  +        public Acceptor() throws Exception {
               try {
   
                   pool = Pool.create(Echo.echoPool);
  @@ -80,6 +80,7 @@
               }
               catch( Exception ex ) {
                   ex.printStackTrace();
  +                throw(new Exception("Can't create Acceptor"));
               }
           }
   
  @@ -232,10 +233,14 @@
       {
           int i;
           echoPool = Pool.create(0);
  -        echoAcceptor = new Acceptor();
  -        echoAcceptor.start();
  -        echoPoller = new Poller();
  -        echoPoller.start();
  +        try {
  +            echoAcceptor = new Acceptor();
  +            echoAcceptor.start();
  +            echoPoller = new Poller();
  +            echoPoller.start();
  +        } catch (Exception e) {
  +            e.printStackTrace();
  +        }
   
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to