This question is an extension built into one, basically I want to know the best architecture for dealing with a solution What is both desktops and mobile applications. At this time, I would like to know, what if we decided to go to Java technologies, how can we make this solution as much as possible by reusing the code.
The solution should be run on a windows, Linux and Mac machines (we know that using Java and swing technology as a business and GUI, we can meet this requirement) The problem comes when we decided to include the Android OS for the mobile capability of our solution, how can we reuse the code written for desktop applications? How can I expose my business class as a service when we are trying to avoid web or application server installation? Is it possible to collect SOA to avoid web application?
If you have any document or any comments that tell me in the right direction to solve this problem, then I can apropatize it. / P>
If you are trying to avoid hosting a web server with the code running on it I would suggest making good old fashion jar libraries.
Keep all user interface code out of the jar and just program trading logic as API. Give it a code in J2SE 1.5, but make sure you check it on both desktop and mobile environments. Then you can use your business-logic JAR file, when it's time to prepare the full desktop app and Android app.
For information on how to use JR files in Android, it should help:
For more information on general applications and JR files for desktop applications, read more here:
Comments
Post a Comment