CometD

CometD

Scheme: cometd

Endpoint for Camel Cometd.

Name Kind Type Required Deprecated Default Value Enum Values Description
host path java.lang.String true false Hostname
port path int true false Host port number
channelName path java.lang.String true false The channelName represents a topic that can be subscribed to by the Camel endpoints.
baseResource parameter java.lang.String false The root directory for the web resources or classpath. Use the protocol file: or classpath: depending if you want that the component loads the resource from file system or classpath. Classpath is required for OSGI deployment where the resources are packaged in the jar
timeout parameter int false 240000 The server side poll timeout in milliseconds. This is how long the server will hold a reconnect request before responding.
interval parameter int false The client side poll timeout in milliseconds. How long a client will wait between reconnects
maxInterval parameter int false 30000 The max client side poll timeout in milliseconds. A client will be removed if a connection is not received in this time.
multiFrameInterval parameter int false 1500 The client side poll timeout, if multiple connections are detected from the same browser.
jsonCommented parameter boolean false true If true, the server will accept JSON wrapped in a comment and will generate JSON wrapped in a comment. This is a defence against Ajax Hijacking.
sessionHeadersEnabled parameter boolean false Whether to include the server session headers in the Camel message when creating a Camel Message for incoming requests.
logLevel parameter int false 1 0
1
2
Logging level. 0=none, 1=info, 2=debug.
crossOriginFilterOn parameter boolean false If true, the server will support for cross-domain filtering
allowedOrigins parameter java.lang.String false * The origins domain that support to cross, if the crosssOriginFilterOn is true
filterPath parameter java.lang.String false The filterPath will be used by the CrossOriginFilter, if the crosssOriginFilterOn is true
disconnectLocalSession parameter boolean false true Whether to disconnect local sessions after publishing a message to its channel. Disconnecting local session is needed as they are not swept by default by CometD, and therefore you can run out of memory.
exchangePattern parameter org.apache.camel.ExchangePattern false InOnly InOnly
RobustInOnly
InOut
InOptionalOut
OutOnly
RobustOutOnly
OutIn
OutOptionalIn
Sets the default exchange pattern when creating an exchange
synchronous parameter boolean false false Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).

cometd consumer

A Consumer for receiving messages using Cometd and Bayeux protocol.