public static void main(String[] args) throws Exception {
        BasicConfigurator.configure(new ConsoleAppender(new PatternLayout("%d> %m%n")));
        org.apache.log4j.Logger.getRootLogger().setLevel(Level.DEBUG);

        GenericXmlApplicationContext applicationContext = new GenericXmlApplicationContext();
        ConfigurableEnvironment env = applicationContext.getEnvironment();
        env.setActiveProfiles("Spring-Integration", "Spring-Integration-AMQP", "RabbitMQ");
        applicationContext.load("Consumer.xml");
        applicationContext.refresh();
    }