Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
minor fixes to match tutorial diagrams
  • Loading branch information
Wayne Lund authored and Wayne Lund committed Apr 13, 2017
1 parent 2b12c9c commit 79f6b14
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
Expand Up @@ -39,7 +39,20 @@ public CommandLineRunner usage() {
@Override
public void run(String... arg0) throws Exception {
System.out.println("This app uses Spring Profiles to control its behavior.\n");
System.out.println("Sample usage: java -jar rabbit-tutorials.jar --spring.profiles.active=tut1,sender");
System.out.println("Options are: ");
System.out.println("java -jar rabbit-tutorials.jar --spring.profiles.active=hello-world,receiver");
System.out.println("java -jar rabbit-tutorials.jar --spring.profiles.active=hello-world,sender");
System.out.println("java -jar rabbit-tutorials.jar --spring.profiles.active=work-queues,receiver");
System.out.println("java -jar rabbit-tutorials.jar --spring.profiles.active=work-queues,sender");
System.out.println("java -jar rabbit-tutorials.jar --spring.profiles.active=pub-sub,receiver");
System.out.println("java -jar rabbit-tutorials.jar --spring.profiles.active=pub-sub,sender");
System.out.println("java -jar rabbit-tutorials.jar --spring.profiles.active=routing,receiver");
System.out.println("java -jar rabbit-tutorials.jar --spring.profiles.active=routing,sender");
System.out.println("java -jar rabbit-tutorials.jar --spring.profiles.active=topics,receiver");
System.out.println("java -jar rabbit-tutorials.jar --spring.profiles.active=topics,sender");
System.out.println("java -jar rabbit-tutorials.jar --spring.profiles.active=rpc,client");
System.out.println("java -jar rabbit-tutorials.jar --spring.profiles.active=rpc,server");

}

};
Expand Down
Expand Up @@ -23,15 +23,15 @@
/**
* @author Gary Russell
* @author Scott Deeg
*
* @author Wayne Lund
*/
@Profile({"tut1","hello-world"})
@Configuration
public class Tut1Config {

@Bean
public Queue hello() {
return new Queue("tut.hello");
return new Queue("hello");
}

@Profile("receiver")
Expand Down
Expand Up @@ -21,8 +21,9 @@
/**
* @author Gary Russell
* @author Scott Deeg
* @author Wayne Lund
*/
@RabbitListener(queues = "tut.hello")
@RabbitListener(queues = "hello")
public class Tut1Receiver {

@RabbitHandler
Expand Down
2 changes: 1 addition & 1 deletion spring-amqp/src/main/resources/application.yml
Expand Up @@ -8,4 +8,4 @@ logging:

tutorial:
client:
duration: 10000
duration: 600000

0 comments on commit 79f6b14

Please sign in to comment.