* @throws InvalidClassException
*/
public ConcurrentMessageListener(int concurrentThreads, Object delegateListener, String destination, ThreadGroup threadGroup, String threadPrefix)
throws InvalidClassException {
if (!(delegateListener instanceof SessionAwareMessageListener)) {
throw new InvalidClassException("Invalid Delegate Listener. Expected Object of Type:"
+ SessionAwareMessageListener.class + " Received:" + delegateListener.getClass());
}
concurrentThreadCount = concurrentThreads;
this.delegateListener = (SessionAwareMessageListener) delegateListener;
if (concurrentThreads > 1) {