if (argv.length<3) {
System.err.println("QueueDumper <name> <dir> <url> <optional:queue_name> <optional:out_file>");
System.exit(1);
}
QueueConfiguration config = new QueueConfiguration();
config.setName(argv[0]);
config.setDirectory(argv[1]);
config.setDataStoreUrl(argv[2]);
config.setJmxEnabled(false);
OutputStream out = System.out;
String queueName = null;
String fileName = null;
if (argv.length > 3) queueName = argv[3];