想了解钛加速器的功能吗?
我们有一个使用(java/Java EE、Struts、Hibernate)的 Web 应用程序,在 Apache tomcat 上运行,使用 MySQL 作为数据库。它已经启动并运行了很多年,因此我们拥有非常大的数据池(数百万行)。
我们需要将此 Web 应用程序转换为移动应用程序(跨平台、ios、Android),因此我们决定使用 Titanium Appcelerator。
在实现之前我有很多顾虑:
我听说 Titan 可以提供非常好的 gui,但是功能怎么样?当用户单击按钮(从数据库发送/检索数据)时会发生什么? 我可以使用java来处理这个吗?
我见过通过数据库进行交互的示例,但几乎所有示例都使用 PHP 作为服务器端语言,但这里没有人了解 PHP。 虽然我们的团队有一些 android exp(各种 JSON、小型客户端应用程序),但我不确定它是否会有帮助。
我们的目标是将一个巨大的 CRUD Web 应用程序转换为跨平台移动应用程序(我不想在服务器上丢失 java)。 Titanium appcelerator 可以处理这个问题吗?
We have a web application that uses (java/Java EE, Struts, Hibernate) running on Apache tomcat using MySQL as the DB. It has been up and running for quite a few years, so we have a very large pool of data (millions of row).
We need to convert this web app to a mobile application (cross platform, ios, Android), so we've decided to use the Titanium Appcelerator.
I have quite a few concerns before implementation:
I've heard that titanium gives you very good gui, but what about the functionality? What happens when a user clicks a buttons (sending/retrieving data from db)?
Can I use java to handle this??I have seen examples of interacting through database, but approx all are using PHP as as a server side language, but nobody knows PHP here.
Though our team has some android exp(all sort of JSON, small client app), I am not sure whether it would be helpful.Out goal is to convert a huge CRUD web app to a cross platform mobile app (I dont want to lose java on the server). Can Titanium appcelerator handle this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将应用程序视为单独的东西。另一端是什么并不重要,只要您获得 JSON 或 XML(或者您愿意的其他内容)即可。
Titanium Appcelerator 是一个 JavaScript 工具,可以处理(内置)JSON 和 XML。
回答您的问题:
1:功能确实不错。 Java 无法完成此操作,但您将获得处理单击/滑动/按下/双击等的事件(在 JavaScript 中)。事件始终在文档中定义。在您的情况下,按钮。您可以在那里查看它可以处理哪些事件以及可以设置哪些属性。
文档页面中添加按钮并具有单击事件的示例。
2:无论您使用什么服务器端语言,只要您导出可用内容(JSON/XML),Titanium 就可以使用它。它的行为就像一个客户端。那里无需担心。
3:正如上面的回答,你可以用它做你想做的一切。在服务器端,你只需要编写一个 API 就可以处理所有事情。
我希望这能消除您的担忧。如果您在其他问题上需要更多帮助,只需在 SO 上输入一个新问题,我就会看到它们。
See the App as something separate. It doesn't matter what is on the other end, as long as you get either JSON or XML (or something else if you prefer).
Titanium Appcelerator is a JavaScript tool that can handle (both build-in) JSON and XML.
To answer your questions:
1: Functionality is really good. It cannot be done by Java, but you'll get events (in JavaScript) which handles click/swipe/press/doubleclick etc. Events are always defined in the Documentation. In your case, the button. You can see what events it can handle there, and what properties you can set.
An example from the docs page adding a button, and having the click event.
2: Whatever server side language you use, as long as you export usable content (JSON/XML) it is useable by Titanium. It acts like a client. No need to worry there.
3: as answered above, you can do everything with it you want. On server side you only need to write an API which can handle everything.
I hope this will take away your concerns. If you need more help on other questions, just enter a new question on SO and I'll see them pass by.
正如 Topener 已经指出的那样,Titanium 能够满足您的要求。我想指出一些更基本的事情:
我对这个推理有点惊讶,有点“我们需要一辆车,所以我们决定购买一辆日产”。为什么不是福特、霍顿或保时捷?
事实上,有超过 30 种技术声称能够进行跨平台移动开发。去年我在硕士论文中深入研究了其中的 16 个。
我建议您也看看其他两种技术。为什么?您正在将网络应用程序转换为移动应用程序。为什么不考虑一个允许您使用 Web 技术编写应用程序 UI 的框架?毕竟,您也许能够移植一些现有的 UI 代码。
PhoneGap(免费,现在由 Adobe 所有):您可以使用 JavaScript 实现整个应用程序,基本上作为一个 WebApp,但您会得到一个本机的、可安装的二进制文件,可以使用 AppStore 进行分发。易于与 SenchaTouch HTML5-UI 结合。
Rhodes(免费,现在归 Motorola Systems 所有):您可以使用 HTML5 实现 UI,并且Ruby 中的逻辑。 Rhodes 提供了非常好的对象映射器和同步功能。由于您似乎有相当多的数据需要处理,因此这比 Titanium 的 SQLite 数据库具有显着的优势。学习 ruby 的部分内容不会花费您超过一周左右的时间。
如果您确实需要原生 UI,那么 AQUA-Framework 可能值得一看。 ..但我还没有测试过那个。
As already stated by Topener, Titanium is able to handle your requirements. I'd like to point out something more fundamental:
I'm somewhat surprised by this reasoning, kinda "We needed a car, so we decided to buy a Nissan." Why not a Ford, a Holden or a Porsche?
There are in fact well over 30 technologies claiming to be able to do cross-platform mobile development. I took a deep look at 16 of them during the course of last year for my master's thesis.
I'd suggest you have a look two other technologies as well. Why? You are converting a web app to a mobile app. Why not consider a framework that allows you to write your app's UI using web technologies? You might be able to port some of the existing UI-code, after all.
PhoneGap (free, now owned by Adobe): You implement the entire app in JavaScript, basically as a WebApp, but you get a native, installable binary that can be distributed using the AppStores. Easy to combine with a SenchaTouch HTML5-UI.
Rhodes (free, now owned by Motorola Systems): You implement the UI in HTML5 and the logic in Ruby. Rhodes provides a really good Object-Mapper and Sync capabilities. As you seem to have quite a bit of data to handle, this could provide a significant advantage over Titanium's SQLite Database. Learning the bits of ruby should not cost you more than a week or so.
If you definitely need a native UI, then the AQUA-Framework might be worth a look... but I havn't tested that one.