MessageBus had auto-startup="false" in the OddEvenDemo. Now it auto-starts.

This commit is contained in:
Mark Fisher
2008-06-04 03:57:25 +00:00
parent 07cb2e6d98
commit 00ef0b7fd5
9 changed files with 13 additions and 20 deletions

View File

@@ -27,9 +27,7 @@ public class BinaryFileCopyDemo {
public static void main(String[] args) {
FileCopyDemoCommon.setupDirectories();
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("fileCopyDemo-binary.xml",
BinaryFileCopyDemo.class);
new ClassPathXmlApplicationContext("fileCopyDemo-binary.xml", BinaryFileCopyDemo.class);
}
}
}

View File

@@ -27,9 +27,7 @@ public class FileBasedFileCopyDemo {
public static void main(String[] args) {
FileCopyDemoCommon.setupDirectories();
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("fileCopyDemo-file.xml",
FileBasedFileCopyDemo.class);
new ClassPathXmlApplicationContext("fileCopyDemo-file.xml", FileBasedFileCopyDemo.class);
}
}
}

View File

@@ -28,8 +28,7 @@ public class TextFileCopyDemo {
public static void main(String[] args) {
FileCopyDemoCommon.setupDirectories();
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("fileCopyDemo-text.xml",
TextFileCopyDemo.class);
new ClassPathXmlApplicationContext("fileCopyDemo-text.xml", TextFileCopyDemo.class);
}
}

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2007 the original author or authors.
* Copyright 2002-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2007 the original author or authors.
* Copyright 2002-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2007 the original author or authors.
* Copyright 2002-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,7 +16,6 @@
package org.springframework.integration.samples.oddeven;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
@@ -25,7 +24,7 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
public class OddEvenDemo {
public static void main(String[] args) {
AbstractApplicationContext context = new ClassPathXmlApplicationContext("oddEvenDemo.xml", OddEvenDemo.class);
new ClassPathXmlApplicationContext("oddEvenDemo.xml", OddEvenDemo.class);
}
}

View File

@@ -12,7 +12,7 @@
<context:component-scan base-package="org.springframework.integration.samples.oddeven"/>
<message-bus auto-startup="false"/>
<message-bus/>
<channel id="numbers"/>
<channel id="even"/>

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2007 the original author or authors.
* Copyright 2002-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2007 the original author or authors.
* Copyright 2002-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,7 +16,6 @@
package org.springframework.integration.samples.quote;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
@@ -25,6 +24,6 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
public class QuoteDemo {
public static void main(String[] args) {
AbstractApplicationContext context = new ClassPathXmlApplicationContext("quoteDemo.xml", QuoteDemo.class);
new ClassPathXmlApplicationContext("quoteDemo.xml", QuoteDemo.class);
}
}