I am developing a monitoring management java application using jmx api.I have seen examples in internet and be able to make remote calls from client application to server.My question ath this point is what will be best practise for communication parameters of remote method(s) between client and server.for instance, i can use some collection object like hashtable and turn back again a hashmap as response.Another aproach can be generating a string on client side and parsing it at server side.Another aproach can be generating different serialiable objects at both side and passing its xml represantations may be(I'didnt try this so not sure about its technical possibility). Which approach(considerin method signatures below) will be best and adaptable for different input/output pair.
1)Hashmap methodCollection(Hashmap);
2)String methodRawString(String);
3)String methodObjectToXML(String inputObjectXML) ;