Import the code into your Eclipse IDE

Now you can Import ▸ Gradle ▸ Gradle Project into your IDE.
The project folder is called recipe-accessing-data-mongodb and lies directly in the "Sample Applications" folder you created previously with the Git clone command. (org.eclipse.virgo.samples).

Note

Before you can drag’n’drop the project onto your freshly created Virgo Server you might have to execute
Virgo ▸ Run Generation of META-INF/MANIFEST.MF (via a right click on the project) within your Eclipse IDE.

Create new Virgo Server Runtime

Define a new server

Within the IDE New ▸ Server ▸ EclipseRT ▸ Virgo Runtime and choose the directory of the previously installed Virgo server VIRGO_HOME.

Directions

In the original guide the music plays in the run method of the CommandLineRunner of the Spring Boot application.
We are going to transform the @SpringBootApplication into a plain @Component with an init-method.