Welcome, guest! Login / Register - Why register?
[email protected] webmail now available. Want one? Go here.
You will not find us on Bing and you will get a bounce when you try registering with an outlook/live.com email address here. Not our fault. Blame the corporate bully. #deeznutsmicrosoft

Paste

Pasted as Plain Text by sdf ( 10 years ago )
Connection connection = null;
    try {
        connection = new Connection();
        connection.connect();
        .... // ЗДЕСЬ БИЗНЕС ЛОГИКА, ВСЕ ОСТАЛЬНОЕ ОДИНАКОВОЕ В КАЖДОМ МЕТОДЕ (КРОМЕ СООБЩЕНИЙ ЛОГГЕРА)

    }  catch (OrgStructServiceException ose) {
        throw ose;
    } catch (Exception e) {
        throw new OrgStructServiceException("re", e);
    } finally {
        if (connection != null) {
                connection.disconnect();
        }
    }

 

Revise this Paste

Children: 61710
Your Name: Code Language: