Examples of AbstractApplicationContext


Examples of org.springframework.context.support.AbstractApplicationContext

                  + "\n    For more information please visit:                   "
                  + "\n    http://www.springsource.org/spring-integration       "
                  + NEWLINE
                  + LINE );

        final AbstractApplicationContext context =
                new ClassPathXmlApplicationContext("classpath:META-INF/spring/integration/*-context.xml");

        context.registerShutdownHook();

        final Scanner scanner = new Scanner(System.in);

        final CoffeeService service = context.getBean(CoffeeService.class);

        LOGGER.info(LINE
                  + NEWLINE
                  + "\n    Please press 'q + Enter' to quit the application.    "
                  + NEWLINE
View Full Code Here

Examples of org.springframework.context.support.AbstractApplicationContext

          + "\n    For more information please visit:                   "
          + "\n    http://www.springsource.org/spring-integration       "
          + EMPTY_LINE
          + LINE_SEPARATOR );

    final AbstractApplicationContext context =
        new ClassPathXmlApplicationContext("classpath:META-INF/spring/integration/*-context.xml");

    context.registerShutdownHook();

    final Scanner scanner = new Scanner(System.in);

    final UserService service = context.getBean(UserService.class);

    LOGGER.info(LINE_SEPARATOR
          + EMPTY_LINE
          + "\n    Please press 'q + Enter' to quit the application.                     "
          + EMPTY_LINE
View Full Code Here

Examples of org.springframework.context.support.AbstractApplicationContext

          + "\n    For more information please visit:                   "
          + "\n    http://www.springsource.org/spring-integration       "
          + "\n                                                         "
          + "\n=========================================================" );

    final AbstractApplicationContext context =
        new ClassPathXmlApplicationContext("classpath:META-INF/spring/integration/transaction-synch-context.xml");

    context.registerShutdownHook();

    LOGGER.info("\n========================================================="
          + "\n                                                          "
          + "\n    This is the Transaction Synchronization Sample -      "
          + "\n                                                          "
View Full Code Here

Examples of org.springframework.context.support.AbstractApplicationContext

*/
public class CafeDemoAppBaristaColdActiveMQ {


  public static void main(String[] args) throws InterruptedException, IOException {
    AbstractApplicationContext context = new ClassPathXmlApplicationContext(
        "/META-INF/spring/integration/activemq/cafeDemo-amq-config.xml",
        "/META-INF/spring/integration/activemq/cafeDemo-amq-baristaCold-xml.xml");

    System.out.println("Press Enter/Return to exit");
    System.in.read();
    context.close();
  }
View Full Code Here

Examples of org.springframework.context.support.AbstractApplicationContext

*/
public class CafeDemoAppOperationsActiveMQ {


  public static void main(String[] args) throws InterruptedException, IOException {
    AbstractApplicationContext context = new ClassPathXmlApplicationContext(
        "/META-INF/spring/integration/activemq/cafeDemo-amq-config.xml",
        "/META-INF/spring/integration/activemq/cafeDemo-amq-operations.xml");

    System.out.println("Press Enter/Return to exit");
    System.in.read();
    context.close();
  }
View Full Code Here

Examples of org.springframework.context.support.AbstractApplicationContext

      cafe.placeOrder(order);
    }
  }

  public static void main(String[] args) throws InterruptedException, IOException {
    AbstractApplicationContext context = new ClassPathXmlApplicationContext(
        "/META-INF/spring/integration/activemq/cafeDemo-amq-config.xml",
        "/META-INF/spring/integration/activemq/cafeDemo-amq-xml.xml");
    order(context, 25);
    context.close();
  }
View Full Code Here

Examples of org.springframework.context.support.AbstractApplicationContext

      cafe.placeOrder(order);
    }
  }

  public static void main(String[] args) throws InterruptedException, IOException {
    AbstractApplicationContext context = new ClassPathXmlApplicationContext(
        "/META-INF/spring/integration/activemq/cafeDemo-amq-config.xml",
        "/META-INF/spring/integration/activemq/cafeDemo-amq-jms-backed.xml");

    // comment this out to run the sample without placing any new orders on the queue
    order(context, 25);

    System.in.read();
    context.close();
  }
View Full Code Here

Examples of org.springframework.context.support.AbstractApplicationContext

*/
public class CafeDemoAppBaristaHotActiveMQ {


  public static void main(String[] args) throws InterruptedException, IOException {
    AbstractApplicationContext context = new ClassPathXmlApplicationContext(
        "/META-INF/spring/integration/activemq/cafeDemo-amq-config.xml",
        "/META-INF/spring/integration/activemq/cafeDemo-amq-baristaHot-xml.xml");

    System.out.println("Press Enter/Return to exit");
    System.in.read();
    context.close();
  }
View Full Code Here

Examples of org.springframework.context.support.AbstractApplicationContext

        + "\n    For more information please visit:                   "
        + "\n    http://www.springsource.org/spring-integration       "
        + NEWLINE
        + LINE );

    final AbstractApplicationContext context =
      new ClassPathXmlApplicationContext("classpath:META-INF/spring/integration/*-context.xml");

    context.registerShutdownHook();

    final Scanner scanner = new Scanner(System.in);

    final CoffeeService service = context.getBean(CoffeeService.class);

    LOGGER.info(LINE
        + NEWLINE
        + "\n    Please press 'q + Enter' to quit the application."
        + NEWLINE
View Full Code Here

Examples of org.springframework.context.support.AbstractApplicationContext

          + "\n    For more information please visit:                   "
          + "\n    http://www.springsource.org/spring-integration       "
          + "\n                                                         "
          + "\n=========================================================" );

    final AbstractApplicationContext context =
        new ClassPathXmlApplicationContext("classpath:META-INF/spring/integration/*-context.xml");

    context.registerShutdownHook();

    final SearchRequestor searchRequestor = context.getBean(SearchRequestor.class);
    final SearchA searchA = context.getBean(SearchA.class);
    final SearchB searchB = context.getBean(SearchB.class);

    final Scanner scanner = new Scanner(System.in);

    System.out.println("Please enter a choice and press <enter>: ");
    System.out.println("\t1. Submit 2 search queries, 2 results returned.");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.