vendredi 10 avril 2015

Java design for command / status message managing

I am developping a java TCP client which consists of a set of commands as XML messages. The client shall be able to send commands asynchronously with a specific user interface, receive acknowledgement messages and the status from the server if any. I have also specific GUIs designated to configure the data of each command. The different command data models must be accessible by the various views and controllers in the client package.


The problem is simple but I would like to make it the right way because the interface specifications between clients and the server is really subject to evolutions (new messages, messages used in one project but not in another one, duplicated messages but one parameter is different, etc...) So, what I was looking for is maybe a design pattern or a composed one which could fit my needs or if any of you had to make a client like this and could give me some advices on what to do or not to do.


Aucun commentaire:

Enregistrer un commentaire