ServerConsumerEndpoint ep =
new ServerConsumerEndpoint(consumerID, binding.queue,
binding.queue.getName(), this, selectorString, false,
dest, null, null, 0, -1, true, false, prefetchSize);
ConsumerAdvised advised;
// Need to synchronized to prevent a deadlock
// See http://jira.jboss.com/jira/browse/JBMESSAGING-797
synchronized (AspectManager.instance())
{
advised = new ConsumerAdvised(ep);
}
Dispatcher.instance.registerTarget(consumerID, advised);
ClientConsumerDelegate stub =