Today i want to share about jpos deploy directory structure and give some tips how to use organize the directory.
first thing, deploy directory is used when we are using Q2. Deploy directory is directory where we place the QBean object, QBean can be QServer, logger, QMUX, ChannelAdaptor, or a class that extend the QBeanSupport class.
We may deploy multiple server and mux on single instance, and when there are many QBean object we need to deploy, so there will be many xml files we deployed. The jpos Q2 will scan the files every 2.5 sec, and check the modified date. If the modified date is changing, Q2 will redeploy the Qbean Object, Therefore it’s important to organize the xml file to be deployed.
There are important information about deploy directory that not included in jpos programmer guide, that we can place another directory to place the xml files. So for example, if you have three QServer to be deployed for each server to different project, so we can organize the deploy directory like this: