if (argv.length >= 2)
{
int msgCount = Integer.parseInt(argv[argv.length - 2]);
int consumerCount = Integer.parseInt(argv[argv.length - 1]);
Config config = new Config();
config.setType(Config.HEADERS);
config.setName("test_headers_exchange");
String[] options = new String[argv.length - 2];
System.arraycopy(argv, 0, options, 0, options.length);
config.setOptions(options);
new Publisher(config).test(msgCount, consumerCount);
}
}