_loggerIM.entering(_className, "endpointActivation()", params);
if (!started) {
_loggerIM.logp(Level.SEVERE, _className, "endpointActivation()", _lgrMID_EXC
+ "MQJMSRA not started:Aborting:", params);
NotSupportedException nse = new NotSupportedException(
"MQJMSRA-endpointActivation:Error:RA not started:aborting");
_loggerIM.throwing(_className, "endpointActivation()", nse);
throw nse;
}
EndpointConsumer ec;
if ((System.getProperty("imq.jmsra.endpoint.concurrent", "false")).equals("true")) {
ec = new ConcurrentEndpointConsumer(this, endpointFactory, spec, this._isRADirect());
} else {
ec = new EndpointConsumer(this, endpointFactory, spec);
}
try {
ec.startMessageConsumer();
// if (this._isDirect()) {
// ec.startDirectConsumer();
// } else {
// ec.createMessageConsumer(endpointFactory, spec);
// }
if (_loggerIM.isLoggable(Level.FINER)) {
_loggerIM.finer(_lgrMID_INF + "endpointActivation:createMessageConsumer:DONE:" + "fID="
+ ec.getFactoryID() + " cID=" + ec.getConsumerID());
}
} catch (Exception ex) {
_loggerIM.logp(Level.SEVERE, _className, "endpointActivation()", _lgrMID_EXC + ":Failed due to:"
+ ex.getMessage(), params);
NotSupportedException nse = new NotSupportedException(
"MQJMSRA-endpointActivation:Exception on createMessageConsumer:");
nse.initCause(ex);
_loggerIM.throwing(_className, "endpointActivation()", nse);
throw nse;
}
_loggerIM.exiting(_className, "endpointActivation()");
}