def connect(user, password)
      logger.debug { "Connecting to application server with login id #{user}..." }
      begin
        @session.start_session(user, password)
      rescue Exception => e
        logger.error("Login of #{user} with password #{password} was unsuccessful - #{e.message}")
        raise e
      end
      logger.info("Connected to application server.")
    end
def connect(user, password)
      logger.debug { "Connecting to application server with login id #{user}..." }
      begin
        @session.start_session(user, password)
      rescue Exception => e
        logger.error("Login of #{user} with password #{password} was unsuccessful - #{e.message}")
        raise e
      end
      logger.info("Connected to application server.")
    end
Connects to the database.