To query for and display a list of queues, do the following actions:
// Fetch a list of queue names for Work queues (QUEUE_PROCESS)
// and User Queues (QUEUE_USER_CENTRIC)
int myQueueFlags = (VWSession.QUEUE_PROCESS | VWSession.QUEUE_USER_CENTRIC);
String[] QueueNames = null;
QueueNames = MySession.fetchQueueNames(myQueueFlags);
When you fetch the queue names, you need to filter out the Component queues. To filter out the Component queues, get the queue by using VWSession.getQueue(), and check the property by using VWQueue.getIsConnectorQueue(). This method returns a Boolean value that indicates whether the queue is a Connector queue.
Additionally, you might find it helpful to use the QueueHelper Sample class.