Google App Engine数据库和桌面应用程序 [英] Database for Google App Engine and desktop application

查看:141
本文介绍了Google App Engine数据库和桌面应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一些建议。我是Java EE技术的新手。无论如何,我想做我的第一个JAVA EE项目。
想象2个客户端应用程序和服务器应用程序。

I need some advice. I'm new to Java EE technologies. Anyway, I would like to make my first JAVA EE project. Imagine 2 client applications and server application.

1)服务器。我选择了Google App Enginge技术来创建服务器应用程序。我想将它连接到一些简单的数据库。

1) Server. I picked up Google App Enginge technology to create server application. I would like to connect it to some easy database.

2)客户端应用程序。我想他们是桌面应用程序(或从桌面启动的应用程序),这两个应用程序也必须连接到同一个数据库作为服务器。

2) Client applications. I would like them to be desktop applications (or applications launched from the desktop) and these 2 apps also have to be connected to the same database as sever.

没有问题在Java SE环境中创建 - 我有两个客户端应用程序与套接字工作人员和服务器应用程序与套接字的工作人员。所有在本地工作。

There was no problem to create this in Java SE environment - I had two clients applications with sockets staff and server application with socket staff. All worked locally.

但现在我想在互联网上有服务器和数据库,我想要更专业的方式。

But now I want to have server and database on the Internet and I want to make it in more professional way.

我的问题是:


  • 如何从GAE创建免费数据库?数据存储是最好的选择还是别的什么?重要的是 - 客户端桌面应用程序也将使用此数据库。我正在寻找最简单的解决方案。

  • 也许解决方案是创建Web客户端应用程序,而不是桌面版 - 但使它看起来像是桌面应用程序(我想避免使用浏览器)。我不知道如何做到这一点,如果这是可能的。

任何帮助将非常感激。我被困住,因为我的知识太少无法启动。我有ma GAE应用程序,我不知道我应该选择下一步。

Any help will be really appreciated. I'm stuck because my knowledge is too little to start. I have ma GAE app and I don't know what should I choose next.

提前感谢。

推荐答案

如果你想做桌面应用程序,你需要先构建后端应用程序。

If you want make desktop application, you need to build backend application first.

检查这个。你可以使用相同的概念。构建后端,然后创建API以连接到后端,并在桌面应用程序中使用该API。

check this out. You can use same concept with that. Build back end, and then create API to connect to your backend, and use that API in your desktop application.

资料储存库是储存资料的最简单方法。 查看此信息。数据存储有一些限制(如不支持join,多对多关系等)。请慎重考虑。否则,您可以使用Google Cloud SQL做为您的选择,但AFAIK它不是免费的。

Datastore is easiest way to store data. Check this out. Datastore have some limitation (such as didnt support join, many to many relationship, etc). Please consider wisely. Otherwise you can use Google Cloud SQL for your option, but AFAIK its not free.

这篇关于Google App Engine数据库和桌面应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆