Instanciating Objects on the fly
Posted on 2006-06-12
I have created a method :
public void newQueue()
Queue myQueue = new Queue();
This basically creates a new queue. What I want to be able to do is create as many queues as I need by simply calling newQueue();
Most likely I would need to pass in a String and an Id Number so I can Name and Number the queues. Any ideas on how to do this? Basically I dont want to be restricted to reusing the same queue over and over, as I would potntially like 6 - 12 queues running at the same time. So overlapping them wouldnt be good.