Package com.emc.plants.messaging.publisher

Examples of com.emc.plants.messaging.publisher.PaymentInfoPublisher


  public static void main(String[] args) {
   
    //ApplicationContext context1 = new AnnotationConfigApplicationContext(RabbitClientConfiguration.class);
    ApplicationContext context1 = new ClassPathXmlApplicationContext("app-context.xml");
    System.out.println("RabbitTemplate :: "  + context1.getBean("rabbitTemplate"));
    PaymentInfoPublisher pInfoPublisher = (PaymentInfoPublisher)context1.getBean("paymentInfoPublisher");
   
    pInfoPublisher.publishMessage("Publishing test message: This is a test message!");
  }
View Full Code Here


    return connectionFactory;
  }
 
  @Bean
  public PaymentInfoPublisher paymentInfoPublisher() {
    PaymentInfoPublisher gateway = new PaymentInfoPublisher();
    gateway.setRabbitTemplate(rabbitTemplate());
    return gateway;
  }
View Full Code Here

    }

   
    try
    {
      PaymentInfoPublisher pInfoPublisher = (PaymentInfoPublisher)Util.getSpringBean("paymentInfoPublisher");
     
      pInfoPublisher.publishMessage("Order placed successfully for Customer : " +customerInfo.getCustomerID()+" with Order ID : "+orderKey);
    }
    catch (Exception e)
    {
      logger.error("Exception during Posting message to RabbitMQ :"+e);
      e.printStackTrace();
View Full Code Here

      }

     
      try
      {
        PaymentInfoPublisher pInfoPublisher = (PaymentInfoPublisher)Util.getSpringBean("paymentInfoPublisher");
       
        pInfoPublisher.publishMessage("Order placed successfully for Customer : " +customerInfo.getCustomerID()+" with Order ID : "+orderKey);
      }
      catch (Exception e)
      {
        System.out.println("Exception during Posting message to RabbitMQ :"+e);
        e.printStackTrace();
View Full Code Here

        }
      }

     
      try {
        PaymentInfoPublisher pInfoPublisher = (PaymentInfoPublisher) Util
            .getSpringBean("paymentInfoPublisher");

        pInfoPublisher
            .publishMessage("Order placed successfully for Customer : "
                + customerInfo.getCustomerID()
                + " with Order ID : " + orderKey);
      } catch (Exception e) {
        System.out
View Full Code Here

TOP

Related Classes of com.emc.plants.messaging.publisher.PaymentInfoPublisher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.