论坛首页 Java企业应用论坛

google appengine for java初体验

浏览 55482 次
该帖已经被评为良好帖
作者 正文
   发表时间:2009-04-17  
不错 不错
0 请登录后投票
   发表时间:2009-04-17  
ywbanm 写道
有什么办法可以看Log么?
在管理页面里的Logs根本什么都没有啊!
我上传了一个应用,估计是有不支持的东西,就给一个:

Error: Server Error
The server encountered an error and could not complete your request.

If the problem persists, please report your problem and mention this error message and the query that caused it.

根本无法判断是哪的问题!


你的jar包没放到WEB-INF/lib下吧
0 请登录后投票
   发表时间:2009-04-17  
那天javaeye消息一出来我就看见了,并且注册了...一直没有时间试,现在试试....
0 请登录后投票
   发表时间:2009-04-18   最后修改:2009-04-18
今天看了GAE相关文档,发现GAE对数据库操作有很多限制,而且很多限制影响了复杂应用开发

引用
Unsupported Features of JDO

The following features of the JDO interface are not supported by the App Engine implementation:

    * Unowned relationships. You can implement unowned relationships using explicit Key values. JDO's syntax for unowned relationships may be supported in a future release.
    * Owned many-to-many relationships.
    * contains() syntax for query filters on Collection fields. You can test that a multi-valued property (a Collection field) has a value using an equality filter: collection == "value"
    * "Join" queries. You cannot use a field of a child entity in a filter when performing a query on the parent kind. Note that you can test the parent's relationship field directly in query using a key.
    * JDOQL grouping and other aggregate queries.
    * Polymorphic queries. You cannot perform a query of a class to get instances of a subclass. Each class is represented by a separate entity kind in the datastore.
    * IdentityType.DATASTORE for the @PersistenceCapable annotation. Only IdentityType.APPLICATION is supported.
    * There is currently a bug preventing preventing persistent fields on superclasses from being saved to the datastore. This will be fixed in a future release.


从上面的限制清单,可以看出GAE对多对多表关系、统计汇总类函数不支持,多表关联查询有限制。其实,这些基本的数据库查询统计功能对于企业应用来说是必要的,如果这些功能不支持,我不知道对于一些复杂的查询统计如何支持呢?

这么看来,GAE是否仅仅只能用于做简单的玩具类应用呢?可能习惯了关系数据库编程,一下子有了这么多数据库操作方面的限制,还想不到对于一些汇总、统计报表如何实现查询呢,总不至于将所有的对象读取后,在内存中计算吧。

不过,对于Eclipse IDE工具的支持,确实降低了不少开发难度,基本上看了入门文档可以5分钟发布应用并跑起来。
0 请登录后投票
   发表时间:2009-04-19   最后修改:2009-04-19
用twitter4j结合gae做了个小应用,果然中文是个问题呀。
0 请登录后投票
   发表时间:2009-04-19  
呵呵...比较幸运..
第一天申请..第二天就有邮件喽..
0 请登录后投票
   发表时间:2009-04-20  
http://dl.google.com/eclipse/plugin/3.4

这个地址好像访问不了了,那怎么下载插件呢,有没有大大可以提供一下这个插件?
0 请登录后投票
   发表时间:2009-04-20  
http://huliqing-qfaces.appspot.com/
spring + jsf + jpa + annotation 配置成功,确实限制了很多东西,但还是可以使用。
0 请登录后投票
   发表时间:2009-04-20  
good news!
0 请登录后投票
   发表时间:2009-04-29  
huliqing 写道
http://huliqing-qfaces.appspot.com/
spring + jsf + jpa + annotation 配置成功,确实限制了很多东西,但还是可以使用。



annotation是指jpa的吧?
spring的annotation无法使用,直接出错。
我配了一个freemarker + spring + jpa的
0 请登录后投票
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics