public QueueBrowser createBrowser(IntegerID browserId,Queue queueRef, String messageSelector) throws JMSException
{
synchronized (externalAccessLock)
{
checkNotClosed();
LocalQueue localQueue = engine.getLocalQueue(queueRef.getQueueName());
// Check temporary destinations scope (JMS Spec 4.4.3 p2)
checkTemporaryDestinationScope(localQueue);
LocalQueueBrowser browser = new LocalQueueBrowser(this,localQueue,messageSelector,browserId);