Commits

Trey Howard committed 5df324d

Added instructions on how to execute main classes

  • Participants
  • Parent commits 3698114

Comments (0)

Files changed (1)

 Spring Demo
 ==========
 
-This demonstrates how to use Spring's new profile feature to substitute beans. Based on a real world example where it was not practical to replicate the dev environment for each workstation and so instead isolated the event processing for each workstation.
+This demonstrates how to use Spring's new profile (new in 3.1) feature to substitute beans. Based on a real world example where it was not practical to replicate the dev environment for each workstation and so instead isolated the event processing for each workstation.
 
-How to Build
+You can learn more about Spring profiles here: http://blog.chariotsolutions.com/2012/01/spring-31-cool-new-features.html
+
+Overview
 ---
-mvn clean package -Dspring.profiles.active=workstation
+When running MainStart or MainComplete provide the 'spring.profiles.active=[workstation|dev]' JVM argument to enable the desired profile. Technically, multiple profiles can be specified as a comma-delimited list but I have built this example to expect exactly one.
+
+I did not define an assembly for this project so you'll need to execute the Main classes in an IDE. In Eclipse you can do this by:
+1. Open MainStart.java in Eclipse
+2. Open menu: Run > Run Configurations
+3. Click on the Arguments tab (just below Name)
+4. In the VM arguments text area put this: -Dspring.profiles.active=workstation
+`Be careful to put this in the VM arguments (bottom) not the Program arguments (top)`
+5. Click Run