use of com.hazelcast.transaction.impl.xa.XATransactionContextImpl in project hazelcast by hazelcast.
the class ClientEndpointImpl method destroy.
public void destroy() throws LoginException {
clearAllListeners();
LoginContext lc = loginContext;
if (lc != null) {
lc.logout();
}
for (TransactionContext context : transactionContextMap.values()) {
if (context instanceof XATransactionContextImpl) {
continue;
}
try {
context.rollbackTransaction();
} catch (HazelcastInstanceNotActiveException e) {
getLogger().finest(e);
} catch (Exception e) {
getLogger().warning(e);
}
}
authenticated = false;
}
Aggregations