Psst.. new poll here.
[email protected] webmail now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!
Paste
Pasted as Plain Text by sdf ( 11 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