Статьи

Как изменить код Торнадо с помощью gen.engine

…работы, чем с кодом в стиле блокировки: db = motor.MotorConnection().open_sync().my_blog_db class PostHandler(tornado.web.RequestHandler): @tornado.asynchronous def get(self, slug): db.posts.find_one({‘slug’: slug}, callback=self._found_post) def _found_post(self, post, error): if error: raise tornado.web.HTTPError(500, str(error)) elif not…
Статьи

API-функции Java App Engine и пространства имен

…httpRequest = (HttpServletRequest)req; CapabilitiesService service = CapabilitiesServiceFactory.getCapabilitiesService(); for (Map.Entry api : apis.entrySet()) { if (api.getValue()) { CapabilityStatus status = service.getStatus(api.getKey()).getStatus(); if (status != CapabilityStatus.ENABLED) { log.warn( «API » + api.getKey().getPackageName()…
Статьи

Реализация приложения Tag-Cloud на Google App Engine с помощью JDO + Security + Groovy Server Pages

В этой статье описываются этапы создания веб-приложения для платформы Google App Engine, использующего инфраструктуру постоянства и безопасности Google. Приложение для демонстрации представляет собой базовую реализацию облака тегов — http://mytagclouds.appspot.com/ ….
Статьи

Презентация и использование H2 Database Engine

…Итак, я думаю, что мы рассмотрели здесь основные вещи, которые мы должны знать, чтобы начать использовать H2 Database Engine. Для получения дополнительной информации обратитесь на официальный сайт . С http://www.baptiste-wicht.com/2010/08/presentation-usage-h2-database-engine/…
Статьи

Создание приложения с использованием Spring Roo и развертывание в Google App Engine

…Speaker и Presentation. Чтобы создать объект Speaker, мы введем следующие команды entity —class ~.domain.Speaker —testAutomaticallyfield string —fieldName fullName —notNullfield string —fieldName email —notNull —regexp ^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$field string —fieldName cityfield date —fieldName…
Статьи

Flex Remoting в Google App Engine

…<?xml version=»1.0″ encoding=»utf-8″?><beans xmlns=»http://www.springframework.org/schema/beans» xmlns:flex=»http://www.springframework.org/schema/flex» xmlns:xsi=»http://www.w3.org/2001/XMLSchema-instance» xmlns:context=»http://www.springframework.org/schema/context» xsi:schemaLocation=» http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/flex http://www.springframework.org/schema/flex/spring-flex-1.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd»> <flex:message-broker> <flex:message-service default-channels=»my-streaming-amf,my-longpolling-amf,my-polling-amf» /> <!— <flex:secured /> —> </flex:message-broker> <bean id=»flexBean» class=»org.flexjava.server.FlexServiceImpl»/> <!— Expose the productDAO…
Статьи

CapeDwarf - Google App Engine на Java EE

…и Java 7. Пример гостевой книги доступен в качестве официального архетипа, и вы можете просто получить его, используя следующую команду mvn: mvn archetype:generate -B -DarchetypeGroupId=com.google.appengine.archetypes -DarchetypeArtifactId=guestbook-archetype -DarchetypeVersion=1.7.7 -DgroupId=net.eisele.demo -DartifactId=guestbook -Dversion=1.0…