Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the early version of the new website
https://camel.apache.org/staging/
We would very much like to receive any feedback on the new site, please join the discussion on the Camel user mailing list.
|
Name | Default Value | Context | Description |
---|---|---|---|
| | Producer | The servlet mapping for callback handlers. By default, this component requires a callback servlet mapping of |
| reference to | Consumer | Reference to an |
| reference to | Producer | Reference to an |
On the consumer-side, all options of the Servlet component are supported.
Message headers
On the consumer-side all headers of the Servlet component component are supported plus the following.
Name | Type | Context | Description |
---|---|---|---|
| | Consumer | Name of the task queue. |
| | Consumer | Name of the task (generated value). |
| | Consumer | Number of callback retries. |
Message body
On the producer side the in
message body is converted to a byte[]
and is POSTed to the callback handler as content-type application/octet-stream
.
Usage
Setting up tasks queues is an administrative task on Google App Engine. Only one queue is pre-configured and can be referenced by name out-of-the-box: the default
queue. This queue will be used in the following examples. Please note that when using task queues on the local development server, tasks must be executed manually from the developer console.
Default queue
... .to(gtask:default) // add message to default queue from(gtask:default) // receive message from default queue (via a web hook) ...
This example requires the following servlet mapping.
... <servlet> <servlet-name>CamelServlet</servlet-name> <servlet-class>org.apache.camel.component.servlet.CamelHttpTransportServlet</servlet-class> ... </servlet> ... <servlet-mapping> <servlet-name>CamelServlet</servlet-name> <url-pattern>/worker/*</url-pattern> </servlet-mapping> ...
Dependencies
Maven users will need to add the following dependency to their pom.xml
.
<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-gae</artifactId> <version>x.x.x</version> </dependency>