There is no need to create a queue upfront before using it in ActiveMQ. You can simply send a message to a queue that does not yet exist and the broker will create that queue for you once it receives the message.
Hope this helps.
thanks for that reply. what about the messageListener? do you have any sample configuration file that specify the activemq connection along with the listener and consumer ? that should really help me out. thanks very much in advance