I think both of them are very suitable. Although I understand that your need for performance is an important issue, I personally think that neither the SQL driver nor JSON parsing will be a performance issue later.
With most AJAX calls, network overhead (TCP handshake, etc.) takes up most of the time if you do not have large files to transfer. And then it doesn't matter what the backend is.
If you use Java and Application Server, your database connections must be combined quickly. If you use GWT RCP, you can easily reorganize your application if you need to make changes later, a big plus. If you find that some of your updates are two slow, the greatest performance improvement may be due to caching data on the client and / or aggregation of AJAX calls. This refactoring is much easier if you use Java both on the client side and on the server side.
phisch
source share