I'm making an application build on Docmosis, and since we'll be running on Docker anyway, I'd like to run the converters in separate containers. Basically I just download the library and dependencies in the Dockerfile and run the converter with java -cp.
This works fine for one converter, and the core application connects fine. However, there is no easy way to connect to four converters. I've configured the server to simply search for the service name on the default port, and connects fine. Then it naturally stops searching for 2-4, since it was only told to look for 1. I tried just adding four converters with the same address, but I never really thought that would work...
So what should I do? I don't know how to set up a discovery service, and even if I did, how would I tell a library that's mostly just configured using properties to contact that service to get converters?