title: Distributed application how to
body: <p>I searched a lot but maybe i am missing something...<br>
  I am wondering about the best practices when you have different platforms (dekstop, web,mobile,terminals) how to avoid writing bussiness logic again and again.<br>
  I know Web Services, EJB etc are for this purpose,REST. But i dont know whether these technologies are compatible..<br>
  If i want to use java for desktop and php for web application then how tek heck i can achieve this??With a little searching i found that RESTful might  be a solution...<br>
  Any other ideas/ architectures?</p>