With the Configuration API, just start with a:
Configurer configurer = DefaultConfigurer.defaultConfiguration()
Configurer configurer = DefaultConfigurer.jpaConfiguration(…) // this will automatically configure JPA implementations of several components.
From there, check which methods the configurer gives you to get a feel on what you can configure. Once you’re done, just:
Configuration configuration = configurer.buildConfiguration();
// perhaps you want to get some configured elements (such as command bus) before starting. Do that here.
// now you can start sending commands on the command bus.
//when shutting down, you can
Hope this helps.