avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/transport/altrmi/client AltrmiConnection.java
Date Thu, 17 Jan 2002 12:56:22 GMT
hammant     02/01/17 04:56:22

  Modified:    apps/db/src/java/org/apache/avalon/db/transport/altrmi/client
                        AltrmiConnection.java
  Log:
  slight differnece to altrmi exception handling
  
  Revision  Changes    Path
  1.4       +7 -2      jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/transport/altrmi/client/AltrmiConnection.java
  
  Index: AltrmiConnection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/transport/altrmi/client/AltrmiConnection.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AltrmiConnection.java	14 Jan 2002 16:00:47 -0000	1.3
  +++ AltrmiConnection.java	17 Jan 2002 12:56:22 -0000	1.4
  @@ -8,6 +8,7 @@
    */
   package org.apache.avalon.db.transport.altrmi.client;
   
  +import java.io.IOException;
   import org.apache.avalon.db.driver.AvalonDBConnection;
   import org.apache.avalon.db.services.DatabaseManager;
   import org.apache.avalon.db.utils.StringUtils;
  @@ -32,7 +33,7 @@
    *
    *
    * @author Paul Hammant <a href="mailto:Paul_Hammant@yahoo.com">Paul_Hammant@yahoo.com</a>
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.4 $
    */
   public abstract class AltrmiConnection extends AvalonDBConnection {
   
  @@ -62,7 +63,11 @@
       protected void initialize(String host, int port, String url, String[] options, int
syntax) throws SQLException {
   
           AltrmiFactory altrmiFactory = new ClientClassAltrmiFactory(false);
  -        altrmiFactory.setHostContext(getAltrmiHostContext(url,host,port));
  +        try {
  +            altrmiFactory.setHostContext(getAltrmiHostContext(url,host,port));
  +        } catch (IOException ioe) {
  +            throw new AvalonDBSQLException("Some IO Exception during initialization", ioe);
  +        }
           mOptions = options;
           mSQLSyntax = syntax;
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message