G
G
googlevsky2015-08-02 11:07:12
Java
googlevsky, 2015-08-02 11:07:12

What is the best way to write business logic for different platforms?

It is planned to develop a client-server application. The backend will be developed in Java using Spring. Clients will be developed for Android, iOS and Windows Phone platforms. The problem is that if you separate all the business logic into a separate module in Java, then it is ideal only for the server side and Android. If you write in C ++, then JNI on the server (and on Android) can play a cruel joke. So, how is it better to write business logic? A single module in Java or C++, or does each platform have its own native module? If there are any other options - I'll be glad to hear.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
cthulhudx, 2015-08-02
@googlevsky

It depends on what kind of application. If this is not some kind of game, I can advise you
Java + RESTful Web Service + Native Client for each of the platforms.

M
Maxim Prigozhenkov, 2015-08-02
@Waka_Waka

Write on the server in Java

O
Oleg Gamega, 2015-08-02
@gadfi


google has
released j2objc for such
purposes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question