I’m considering how to modularise an application so that I can have a separate war file for each business module. Each module would have command handlers to process events of that business function. The modules need to share a common command bus.
If the module war files all reside on the same Jboss server then I am wondering which command bus to use and how best to configure that with spring?
I understand that the default command bus is specific to a single jvm instance, so how do I accesss that from different Spring application contexts. Should I be thinking of a specific module that configures the commad bus and then perform some lookup from the other module application contexts?
Later I may wish to deploy further modules on an additional Jboss server. Is there a way to use the same command bus locally and later on distributed across two servers?
Many Thanks