code: @SuppressWarnings("rawtypes")
  	private static boolean isQueueEmpty(MuleContext muleContext, String muleJmsConnectorName, String queueName) throws JMSException {
  	    JmsConnector muleCon = (JmsConnector)MuleUtil.getSpringBean(muleContext, muleJmsConnectorName);
  
  	    Session s = null;
  	    QueueBrowser b = null;
  
  	    try {
  	    	// Get a jms connection from mule and create a jms session
  	    	s = muleCon.getConnection().createSession(false, Session.AUTO_ACKNOWLEDGE);
  	    	Queue q = s.createQueue(queueName);
  
  	    	b = s.createBrowser(q);
  			Enumeration e = b.getEnumeration();
  
  			return !e.hasMoreElements();
  			
  	    } finally {
  	    	try {if (b != null) b.close();} catch (JMSException e) {}
  	    	try {if (s != null) s.close();} catch (JMSException e) {}
  	    }	
  	}
docs: Browse a queue for messages
  
  @param muleJmsConnectorName
  @param queueName
  @return
  @throws JMSException