Package sos.connection

Examples of sos.connection.SOSConnection.disconnect()


    } catch (Exception e){
      getLogger().error ("maintenance monitor failed: " + e);
          return false;
    }finally {
          if (new_connection && (connection != null)) {
              connection.disconnect();
              connection = null;
          }
      }

      return false;
View Full Code Here


            sosLogger.error("error retrieving status from database for slave no. " + this.sosCounter + ": " + e.getMessage());
            return true;
        }
        finally {
            if (slaveConnection != null) {
                try { slaveConnection.disconnect(); } catch (Exception ex) {}
                slaveConnection = null;
            }
        }

View Full Code Here

              spooler_log.info("ERROR : cannot found position : "+e.getMessage());
            }
            finally{
              try{
                if(conn != null){
                  conn.disconnect();
                }
              }
              catch(Exception e){}
            }
          }
View Full Code Here

        spooler_task.end();
        return false;
        }
        finally {
            //try { if (localConnection !=  null) localConnection.rollback(); } catch (Exception ex) {} // ignore this errror
            try { if (localConnection !=  null && !userJob) localConnection.disconnect(); } catch (Exception ex) {} // ignore this errror
            if(userJob) {
        closeUserConnection(localConnection);
        updateRunTime(order, getLogger(), getConnection());       
      }
            try{getConnection().commit();} catch (Exception e){}
View Full Code Here

    order.setSubjectTemplate("default_subject");
    order.setSubjectTemplateType(TEMPLATE_TYPE_PLAIN);
    order.setBodyTemplate("default_body");
    order.setBodyTemplateType(TEMPLATE_TYPE_PLAIN);
    order.send();
    conn.disconnect();
  }

  /**
   * @return Returns the modifiedBy.
   */
 
View Full Code Here

          e.printStackTrace();
      }
      } catch(Exception e){
        e.printStackTrace();
      } finally{
        if (conn!=null) conn.disconnect();
      }
  }

    public static void main(String args[]) throws Exception {
        JobSchedulerManagedStarter x = new JobSchedulerManagedStarter();
View Full Code Here

    } catch (Exception e) {
      this.getLogger().error("error occurred checking database connection: "+e.getMessage());
      return false;
    } finally {
          if (new_connection && (connection != null)) {
              connection.disconnect();
              connection = null;
          }
      }

      return false;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.