GAEPage edited by Martin KrasserCamel Components for Google App Engine
The Camel components for Google App Engine (GAE) are part of the camel-gae project and provide connectivity to GAE's cloud computing services. They make the GAE cloud computing environment accessible to applications via Camel interfaces. Following this pattern for other cloud computing environments could make it easier to port Camel applications from one cloud computing provider to another. The following table lists the cloud computing services provided by Google App Engine and the supporting Camel components. The documentation of each component can be found by following the link in the Camel Component column.
Camel contextUsage of the CamelContext implementations org.apache.camel.impl.DefaultCamelContext and org.apache.camel.spring.SpringCamelContext on GAE is not possible out of the box. JMX must be disabled because the javax.management package is not part of the GAE JRE. Usage of the Camel-specific Spring configuration XML schema from the http://camel.apache.org/schema/spring namespace doesn't work either. Camel uses a JAXB-dependent bean definition parser but JAXB is (currently) not supported by GAE. To work around these restrictions camel-gae provides the following CamelContext implementations.
Both disable JMX before startup. The GaeSpringCamelContext additionally provides setter methods adding route builders as shown in the next example. appctx.xml <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"> <bean id="camelContext" class="org.apache.camel.component.gae.context.GaeSpringCamelContext"> <property name="routeBuilder" ref="myRouteBuilder" /> </bean> <bean id="myRouteBuilder" class="org.example.MyRouteBuilder"> </bean> </beans>
Change Notification Preferences
View Online
|
View Change
|
Add Comment
|
- [CONF] Apache Camel > GAE confluence
- [CONF] Apache Camel > GAE confluence
- [CONF] Apache Camel > GAE confluence
- [CONF] Apache Camel > GAE confluence
- [CONF] Apache Camel > GAE confluence
- [CONF] Apache Camel > GAE confluence
- [CONF] Apache Camel > GAE confluence
- [CONF] Apache Camel > GAE confluence