//TODO: broker.getRegistry().unregisterRemoteEndpoints(containerName);
}
public ConnectionManager getConnectionManager() throws Exception {
if (connectionManager == null) {
ConnectionManagerFactoryBean cmfb = new ConnectionManagerFactoryBean();
cmfb.setTransactionContextManager(getTransactionContextManager());
cmfb.setPoolingSupport(new SinglePool(
16, // max size
0, // min size
100, // blockingTimeoutMilliseconds
1, // idleTimeoutMinutes
true, // matchOne
true, // matchAll
true)); // selectOneAssumeMatch
cmfb.setTransactionSupport(new XATransactions(
true, // useTransactionCaching
false)); // useThreadCaching
cmfb.afterPropertiesSet();
connectionManager = (ConnectionManager) cmfb.getObject();
}
return connectionManager;
}