public void start() throws Exception {
if (started.compareAndSet(false, true)) {
if (logger.isDebugEnabled()) {
logger.debug("Starting cluster endpoint: " + name);
}
pool.setListener(new JmsRequestorListener() {
public void onMessage(JmsRequestor requestor) throws Exception {
process(requestor);
}
});
invalidateSelector();