|
Project Information
Featured
|
Tools for using Hibernate on Google App Engine, including:
RequirementsIn order to run Hibernate on Google App Engine you need:
LimitationsThere are some limitations on Google App Engine that i have not (yet) been able to solve, these are:
Running Hibernate in App EngineThis project's wiki contains a document HibernateGaeSearchSetup that walks thought setting up Hibernate within Google App Engine. Connection PoolerApp Engine does not provide server provided JNDI datasource. C3P0, DBCP and Proxool all use threads and thus are unusable on App Engine. Hibernate internal connection pooler works just fine but after a while it stops working because it does not check connection health of pooled connections and after awhile starts serving dead connections. fi.foyt.hibernate.gae.connection.GAEConnectionProvider is basically a copy of Hibernate's default connection pooler that accepts Cloud SQL instance and database instead of jdbc settings and supports connection health checking. If you are interested in making it better or doing completely new pooler drop me a mail to development (at) foyt.fi Instructions how to setup GAEConnectionProvider can be found from: GaeConnectionProviderSetup Cache regionhibernate-gae-cache-region is a simple Hibernate cache region that uses App Engine's Memcahe service for caching. Currently it supports only read-write strategy, does not do any locking and does not obey timestamp or version rules so in short its quite limited. Instructions for setting up region cache can be found from: GaeCacheRegionSetup. If you are interested in enhancing it, adding unsupported features or creating completely new cache region send me an email to development (at) foyt.fi SearchHibernate search is a powerful search engine for Hibernate but it has two propeties that prevent it from working in App Engine: a) It stores it's index data in filesystem which is not allowed in App Engine. Hibernate-gae-search addresses these problems by storing indices into Google datastore and by implementing threadless queue processor. Library is currently still heavily under development and probably will not work in production environment. This project is part of Forge & Illusion (http://code.google.com/p/fni/ | http://www.forgeandillusion.net). |