Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.9.2. Bindings
9.2.1. SOAP Copy linkLink copied to clipboard!
See Also:
9.2.1.1. Binding Services with SOAP Copy linkLink copied to clipboard!
<binding.soap>
<binding.soap>
- wsdl
- This is the location of the WSDL used to describe the web service endpoint. A relative path can be used if the WSDL is included in the deployed application. If the WSDL is located outside the application, then you can use a
file:
orhttp:
URL. - socketAddr
- This is the IP Socket Address to be used. The value can be in the form of
hostName/ipAddress:portNumber
,hostName/ipAddress
or:portNumber
. - wsdlPort
- This is the port name in the WSDL to use. If you leave it unspecified, the first port definition in the WSDL is used for the service endpoint.
- contextPath
- This is an additional context path for the SOAP endpoint. (The default is none.)
socketAddr
parameter is ignored. However, this parameter can be used for standalone usage.
Example 9.1. Sample SOAP Service Binding
9.2.1.2. Binding References with SOAP Copy linkLink copied to clipboard!
- wsdl
- This is the location of the WSDL used to describe the web service endpoint. A relative path can be used if the WSDL is included in the deployed application. (If the WSDL is located outside the application, then you can use a file: or http: URL.)
- wsdlPort
- This is the port name in the WSDL to use. If you leave it unspecified, the first port definition in the WSDL is used for the service endpoint.
- endpointAddress
- This SOAP endpoint address overrides the address specified in the WSDL. This is an optional property. If you do not specify it, the endpoint address specified in the WSDL is used instead.
- timeout
- This is the requests timeout value in milliseconds.
- proxy
- This is the HTTP Proxy settings for the endpoint.
- basic/ntlm
- This is the authentication configuration for the endpoint.
Example 9.2. Sample SOAP Reference Binding
9.2.1.2.1. Proxy Configuration Copy linkLink copied to clipboard!
- type : The proxy type. This can be HTTP or SOCKS. The default is HTTP.
- host : The proxy host.
- port : The proxy port (optional).
- user : The proxy user (optional).
- password : The proxy password (optional).
Example 9.3. Sample SOAP Proxy Configuration
9.2.1.2.2. Authentication Configuration Copy linkLink copied to clipboard!
- user : The user name.
- password : The password.
- host : The authentication host (optional).
- port : The authentication port (optional).
- realm : The authentication realm (optional, applicable only for BASIC).
- domain: The Windows domain for authentication (optional, applicable only for NTLM).
Example 9.4. Sample NTLM Authentication Configuration
9.2.1.3. Enabling SOAP Message Logging for SOAP Binding Copy linkLink copied to clipboard!
DEBUG
level logging for switchyard.component.soap.InboundHandler
and switchyard.component.soap.OutboundHandler
.
- Add the following to
EAP_HOME/standalone/configuration/standalone.xml
:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
9.2.1.4. WS-Security Copy linkLink copied to clipboard!
9.2.1.4.1. Enable WS-Security Copy linkLink copied to clipboard!
Procedure 9.1. Enable WS-Security
- Define a Policy within your WSDL and reference it with a PolicyReference inside your binding.
- Configure your <soap.binding> with an <endpointConfig> to ensure that JBossWS-CXF is configured appropriately.
- Configure your <soap.binding> with an <inInterceptors> section, including the appropriate JBossWS-CXF <interceptor> to handle incoming SOAP requests.
- Include a
WEB-INF/jboss-web.xml
file in your application with a <security-domain> specified, so that JBossWS-CXF knows which modules to use for authentication and role mapping.
9.2.1.4.2. Sample WS-Security Configurations Copy linkLink copied to clipboard!
policy-security-wss-username
quickstart application as an example. The following are the pertinent sections:
META-INF/WorkService.wsdl
:Copy to Clipboard Copied! Toggle word wrap Toggle overflow META-INF/switchyard.xml
:Copy to Clipboard Copied! Toggle word wrap Toggle overflow META-INF/jaxws-endpoint-config.xml
:Copy to Clipboard Copied! Toggle word wrap Toggle overflow WEB-INF/jboss-web.xml
:<jboss-web> <security-domain>java:/jaas/other</security-domain> </jboss-web>
<jboss-web> <security-domain>java:/jaas/other</security-domain> </jboss-web>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
UsernameToken
, attempt to authenticate it against the LoginModule(s) configured in the application server's "other" security domain, and provide any authorized roles. If successful, the request is handed over to SwitchYard, which processes it further, including enforcing your own policies. In the case of WS-Security, SwitchYard does not attempt a second clientAuthentication, but instead respects the outcome from JBossWS-CXF.
9.2.1.4.3. Signature and Encryption Support Copy linkLink copied to clipboard!
- The Policy in your WSDL must reflect the added requirements. See Section 9.2.1.4.3.1, “Sample Endpoint Configurations”, Section 9.2.1.4.3.2, “Sample Client Configurations”, and Section 9.2.1.4.3.3, “Endpoint Serving Multiple Clients”.
- Configure your <soap.binding> with an <endpointConfig> to ensure JBossWS-CXF is configured appropriately.
- META-INF/switchyard.xml
<binding.soap xmlns="urn:switchyard-component-soap:config:1.0"> <wsdl>META-INF/WorkService.wsdl</wsdl> <contextPath>policy-security-wss-username</contextPath> <endpointConfig configFile="META-INF/jaxws-endpoint-config.xml" configName="SwitchYard-Endpoint-Config"> </binding.soap>
<binding.soap xmlns="urn:switchyard-component-soap:config:1.0"> <wsdl>META-INF/WorkService.wsdl</wsdl> <contextPath>policy-security-wss-username</contextPath> <endpointConfig configFile="META-INF/jaxws-endpoint-config.xml" configName="SwitchYard-Endpoint-Config"> </binding.soap>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - META-INF/jaxws-endpoint-config.xml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - META-INF/bob.properties
org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin org.apache.ws.security.crypto.merlin.keystore.type=jks org.apache.ws.security.crypto.merlin.keystore.password=password org.apache.ws.security.crypto.merlin.keystore.alias=bob org.apache.ws.security.crypto.merlin.file=META-INF/bob.jks
org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin org.apache.ws.security.crypto.merlin.keystore.type=jks org.apache.ws.security.crypto.merlin.keystore.password=password org.apache.ws.security.crypto.merlin.keystore.alias=bob org.apache.ws.security.crypto.merlin.file=META-INF/bob.jks
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
9.2.1.4.3.1. Sample Endpoint Configurations Copy linkLink copied to clipboard!
- Create the web service endpoint using JAX-WS. Use a contract-first approach when using WS-Security as the policies declared in the WSDL are parsed by the Apache CXF engine on both server and client sides. Here is an example of WSDL contract enforcing signature and encryption using X 509 certificates:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow You can generate the service endpoint using the wsconsume tool and then use a @EndpointConfig annotation as shown below:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Use the referenced
jaxws-endpoint-config.xml
descriptor to provide a custom endpoint configuration with the required server side configuration properties as shown below. This tells the engine which certificate or key to use for signature, signature verification, encryption, and decryption.Here,Copy to Clipboard Copied! Toggle word wrap Toggle overflow - The
bob.properties
configuration file includes the WSS4J Crypto properties which in turn links to the keystore file, type, alias, and password for accessing it. For example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - The callback handler enables Apache CXF to access the keystore. For example:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
- Assuming the
bob.jks
keystore is properly generated and contains the server Bob's full key as well as the client Alice's public key, you can proceed to packaging the endpoint. Here is the expected content:Here, the jaxws classes generated by the tools and a basic web.xml referencing the endpoint bean are also included:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteIf you are deploying the endpoint archive to JBoss Application Server 7, add a dependency toorg.apache.ws.security
module in theMANIFEST.MF
file:Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.1 Created-By: 17.0-b16 (Sun Microsystems Inc.) Dependencies: org.apache.ws.security
Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.1 Created-By: 17.0-b16 (Sun Microsystems Inc.) Dependencies: org.apache.ws.security
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
9.2.1.4.3.2. Sample Client Configurations Copy linkLink copied to clipboard!
KeystorePasswordCallback
is same as that on the server side. The alice.properties
file is the client side equivalent of the server side bob.properties
file and references the alice.jks
keystore file, which has been populated with client Alice's full key as well as server Bob's public key:
9.2.1.4.3.3. Endpoint Serving Multiple Clients Copy linkLink copied to clipboard!
useReqSigCert
value for the ws-security.encryption.username
configuration parameter. The referenced server side keystore then needs to contain the public key of all the clients that are expected to be served.
9.2.1.4.4. Sample CXF Interceptor Configurations Copy linkLink copied to clipboard!
META-INF/switchyard.xml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow com/example/MyInterceptor.java
Copy to Clipboard Copied! Toggle word wrap Toggle overflow META-INF/bob.properties
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
9.2.1.5. Attachments Copy linkLink copied to clipboard!
9.2.1.5.1. SOAP with Attachments Copy linkLink copied to clipboard!
SOAPMessageComposer
handles this.
9.2.1.5.2. SOAP with MTOM/XOP Copy linkLink copied to clipboard!
mtom
. When the corresponding xopExpand
attribute is set to true, the xop:include element is replaced with the contents from the MIME attachment.
Example 9.5.
9.2.1.6. WS-Addressing Copy linkLink copied to clipboard!
UseAdrressing
element in the WSDL as shown below:
9.2.2. HTTP Copy linkLink copied to clipboard!
9.2.2.1. HTTP Component Copy linkLink copied to clipboard!
9.2.2.2. Binding Services with HTTP Copy linkLink copied to clipboard!
<binding.http>
<binding.http>
- operationSelector
- This is the specification of the operation to use for the message exchange.
- contextPath
- This is the context path for the HTTP endpoint.
SwitchYard.xml
file directly. Red Hat recommends using the JBoss Developer Studio SwitchYard Editor to edit the SwitchYard.xml
file.
9.2.2.3. Binding References with HTTP Copy linkLink copied to clipboard!
- address
- This is a URL that points to an HTTP endpoint. It is optional and if you do not specify it, it defaults to http://127.0.0.1:8080/.
- method
- This is the HTTP method used for invoking the endpoint. (The default is GET.)
- contentType
- This is the HTTP content type header that must be set on the request.
9.2.3. RESTEasy Copy linkLink copied to clipboard!
9.2.3.1. About RESTEasy Copy linkLink copied to clipboard!
9.2.3.2. RESTEasy Component Copy linkLink copied to clipboard!
9.2.3.3. Binding Services with RESTEasy Copy linkLink copied to clipboard!
<binding.rest>
<binding.rest>
- interfaces
- This is a comma separated list of interfaces or empty classes with JAX-RS annotations.
- contextPath
- This is an additional context path for the REST endpoint. (The default is setting is none.)
rest-binding
quickstart.
9.2.3.4. Binding References with RESTEasy Copy linkLink copied to clipboard!
- address
- This is a URL that points to the root path of resources. This is only applicable for Reference bindings. It is optional and if you do not specify it, it defaults to http://127.0.0.1:8080/.
- interfaces
- This is a comma-separated list of interfaces or abstract or empty classes with JAX-RS annotations.
- contextPath
- This is an additional context path for the REST endpoint. (The default is none.)
9.2.3.5. Proxy Configuration Copy linkLink copied to clipboard!
host
: The proxy host.port
: The proxy port (optional).user
: The proxy user (optional).password
: The proxy password (optional).
Example 9.6.
9.2.3.6. Authentication Configuration Copy linkLink copied to clipboard!
basic
or ntlm
elements. The following configuration options are available:
user
: The authentication user.password
: The authentication password.realm
/domain
: The authentication realm or the Windows domain.
Example 9.7. Sample NTLM Authentication Configuration
9.2.4. JCA Copy linkLink copied to clipboard!
9.2.4.1. Java Connector Architecture (JCA) Transport Copy linkLink copied to clipboard!
9.2.4.2. JCA Adapter Copy linkLink copied to clipboard!
9.2.4.3. JCA Gateway Copy linkLink copied to clipboard!
9.2.4.4. Binding Services with JCA Message Inflow Copy linkLink copied to clipboard!
<binding.jca>
binding definition. You require the following configuration options for binding.jca
operationSelector
: Specification of the service operation used for invoking the message exchange. For more details, see Section 9.4.2, “Types of Operation Selectors”.inboundConnection
resourceAdapter
@name
: Name of the ResourceAdapter archive. Ensure that the resource adapter is deployed on the JBoss application server before you deploy the SwitchYard application which has JCA binding.
activationSpec
property
: Properties for injecting into the ActivationSpec instance. Provide properties that are specific to the ResourceAdapter implementation.
inboundInteraction
listener
: A fully qualified name (FQN) of the listener interface. When you use JMSEndpoint, specify thejavax.jms.MessageListener
and when you use CCIEndpoint, specify thejavax.resource.cci.MessageListener
. Otherwise, you may need to specify EIS specific listener interface according to its ResourceAdapter. Also ensure that the endpoint class implements this listener interface.endpoint
@type
: An FQN of the endpoint implementation class. There are two built-in endpoints namelyorg.switchyard.component.jca.endpoint.JMSEndpoint
andorg.switchyard.component.jca.endpoint.CCIEndpoint
. These two endpoints have corresponding listeners. If neither JMSEndpoint nor CCIEndpoint is applicable for the EIS you are binding to, then you need to implement its own Endpoint class according to the ResourceAdapter implementation. The endpoint class should be a subclass oforg.switchyard.component.jca.endpoint.AbstractInflowEndpoint
.property
: Properties for injecting into the endpoint class. The JMSEndpoint does not require a property. The CCIEndpoint requires connectionFactoryJNDIName property.
transacted
: The boolean value to indicate whether the endpoint needs a transaction or not. Its value is true by default.batchCommit
: If you define this element, multiple incoming messages are processed in one transaction. The transaction is committed when the number of processed messages reach to batchSize, or batchTimeout milliseconds pass since the start of the transaction. Transaction reaper thread watches the inflight transaction, and once batch timeout occurs the transaction reaper thread commits it.@batchSize
: The number of messages to be processed in one transaction.@batchTimeout
:The batch timeout in milliseconds.
9.2.4.5. Binding References with JCA Outbound Copy linkLink copied to clipboard!
binding.jca
:
outboundConnection
resourceAdapter
@name
: Name of the ResourceAdapter archive. Ensure that the resource adapter is deployed on the JBoss application server before you deploy the SwitchYard application which has the JCA binding.
connection
@jndiName
: JNDI name to which the ConnectionFactory is bound.
outboundInteraction
connectionSpec
: This is the configuration forjavax.resource.cci.ConnectionSpec
. Note that the JMSProcessor does not use this option.@type
:This is the FQN of the ConnectionSpec implementation class.property
: These are the properties to be injected into ConnectionSpec instance.
interactionSpec
: This is the configuration for the_javax.resource.cci.InteractionSpec
. Note that the JMSProcessor does not use this option.@type
:This is the FQN of the InteractionSpec implementation class.property
: These are the properties to be injected into InteractionSpec instance.
processor
@type
: This is the FQN of the class which processes outbound delivery. There are two built-in processors,org.switchyard.component.jca.processor.JMSProcessor
andorg.switchyard.component.jca.processor.CCIProcessor
. If neither JMSProcessor nor CCIProcessor is applicable for the EIS to which you have to bind, then you need to implement the EIS' own processor class according to the ResourceAdapter implementation. Note that this class should be a subclass oforg.switchyard.component.jca.processor.AbstractOutboundProcessor
.property
: These are the properties to be injected into processor instance. JMSProcessor needs destination property to specify target destination. CCIProcessor needs recordClassName property to specify record type to be used to interact with EIS. If you use CCIProcessor with the record type other than MappedRecord and IndexedRecord, you need to implement the corresponding RecordHandler.
Here is an example of a JCA reference binding to HornetQ:
9.2.5. JMS Copy linkLink copied to clipboard!
9.2.5.1. SwitchYard JMS Binding Copy linkLink copied to clipboard!
9.2.5.2. Generic JMS Options Copy linkLink copied to clipboard!
- queue or topic: this is the destination name from which resources are consumed or to which they shall be sent.
- connectionFactory: this is the name of the connection factory instance to use.
- username
- password
- clientId
- durableSubscriptionName
- concurrentConsumers
- maxConcurrentConsumers
- disableReplyTo
- preserveMessageQos
- deliveryPersistent
- priority
- explicitQosEnabled
- replyTo
- replyToType
- requestTimeout
- selector
- timeToLive
- transacted
- transactionManager
9.2.6. File Copy linkLink copied to clipboard!
9.2.6.1. File Binding Copy linkLink copied to clipboard!
9.2.6.2. Generic File Options Copy linkLink copied to clipboard!
- directory: directory name for consuming and producing files
- autoCreate: automatically creates directory if a directory does not exist
- bufferSize: write buffer size
- fileName: file name filter for consumer or file name pattern for producer
- flatten: skip path and just use file name
- charset: charset used for reading or writing file
- delete
- recursive
- noop
- preMove
- move
- moveFailed
- include
- exclude
- idempotent
- idempotentRepository
- inProgressRepository
- filter
- inProgressRepository
- sorter
- sortBy
- readLock
- readLockTimeout
- readLockCheckInterval
- readLockTimeout
- exclusiveReadLockStrategy
- processStrategy
- startingDirectoryMustExist
- directoryMustExist
- doneFileName
- fileExist
- tempPrefix
- tempFileName
- keepLastModified
- eagerDeleteTargetFile
- doneFileName
9.2.7. FTP FTPS SFTP Copy linkLink copied to clipboard!
9.2.7.1. FTP Binding Copy linkLink copied to clipboard!
9.2.7.2. Generic FTP FTPS SFTP Options Copy linkLink copied to clipboard!
- host
- port
- username
- password
- binary
- connectTimeout
- disconnect
- maximumReconnectAttempts
- reconnectDelay
- separator
- stepwise
- throwExceptionOnConnectFailed
9.2.7.3. Specific FTP FTPS SFTP Options Copy linkLink copied to clipboard!
- passiveMode
- timeout
- soTimeout
- siteCommand
- securityProtocol
- isImplicit
- execPbsz
- execProt
- disableSecureDataChannelDefaults
- knownHostsFile
- privateKeyFile
- privateKeyFilePassphrase
9.2.8. TCP UDP Copy linkLink copied to clipboard!
9.2.8.1. TCP UDP Binding Copy linkLink copied to clipboard!
camel-netty
component is deprecated since JBoss Fuse 6.3 and will be replaced by the camel-netty4
component in a future release of JBoss Fuse.
9.2.8.2. Generic TCP UDP Options Copy linkLink copied to clipboard!
- host
- port
- receiveBufferSize
- sendBufferSize
- reuseAddress
- encoders
- decoders
- allowDefaultCodec
- workerCount
- sync
- disconnect
9.2.8.3. Specific TCP UDP Options Copy linkLink copied to clipboard!
- textline
- tcpNoDelay
- keepAlive
- broadcast
9.2.8.4. SSL Configuration Options Copy linkLink copied to clipboard!
- ssl: turn on SSL
- sslHandler: custom SSL Handler to use
- passphrase: bean reference to String instance used to open KeyStore
- securityProvider: name of Java security provider
- keyStoreFormat
- keyStoreFile: reference to File instance which is loaded into java KeyStore
- trustStoreFile: reference to File instance
- sslContextParametersRef: if this parameter is specified, it must be an bean reference to an instance of
org.apache.camel.util.jsse.SSLContextParameters
where you may specify all necessary parameters at once
9.2.9. JPA Copy linkLink copied to clipboard!
9.2.9.1. JPA Binding Copy linkLink copied to clipboard!
9.2.9.2. Generic JPA Options Copy linkLink copied to clipboard!
- entityClassName
- persistenceUnit
- transactionManager
- consumeDelete
- consumeLockEntity
- maximumResults
- consumer.query
- consumer.namedQuery
- consumer.nativeQuery
- consumer.resultClass
- consumer.transacted
- flushOnSend
- usePersist
9.2.10. SQL Copy linkLink copied to clipboard!
9.2.10.1. SQL Binding Copy linkLink copied to clipboard!
9.2.10.2. Generic SQL Options Copy linkLink copied to clipboard!
- query
- SQL query to execute
- dataSourceRef
- Data Source name
- batch
- Turn on JDBC batching
- placeholder
- A placeholder sign used to replace parameters in query
- period
- initialDelay
9.2.11. Mail Copy linkLink copied to clipboard!
9.2.11.1. Mail Binding Copy linkLink copied to clipboard!
9.2.11.2. Generic Mail Options Copy linkLink copied to clipboard!
- host
- port
- username
- password
- connectionTimeoutYou may also use the secure attribute to identify usage of secured connection (pop3s/imaps/smtps).
- folderName
- fetchSize
- unseen
- delete
- copyTo
- disconnectYou may specify additional attribute accountType to choose mail protocol. The possible values for this attribute are pop3 or imap. Default is imap.
- subject
- from
- to
- CC
- BCC
- replyTo
9.2.12. Quartz Copy linkLink copied to clipboard!
9.2.12.1. Quartz Binding Copy linkLink copied to clipboard!
9.2.12.2. Generic Quartz Options Copy linkLink copied to clipboard!
- name: name of the job
- cron: execution expression
9.2.13. Timer Copy linkLink copied to clipboard!
9.2.13.1. Timer Binding Copy linkLink copied to clipboard!
9.2.13.2. Generic Timer Options Copy linkLink copied to clipboard!
- name: name of the timer
- time
- pattern
- period
- delay
- fixedRate
- daemon
9.2.14. SEDA Copy linkLink copied to clipboard!
9.2.14.1. SEDA Binding Copy linkLink copied to clipboard!
9.2.14.2. Generic SEDA Options Copy linkLink copied to clipboard!
- name: name of the queue
- size: the maximum capacity of the SEDA queue (the number of messages it can hold)
- concurrentConsumers
- waitForTaskToComplete
- timeout
- multipleConsumers
- limitConcurrentConsumers
9.2.15. Camel URI Copy linkLink copied to clipboard!
9.2.15.1. Camel Binding Copy linkLink copied to clipboard!
9.2.15.2. Generic Camel Options Copy linkLink copied to clipboard!
- configURI
- This contains the Camel endpoint URI used to configure a Camel component instance.
- operationSelector
- This is the specification of the operation to use for the message exchange. (This setting is not used for CXFRSconfigurations. )
9.2.16. SCA Copy linkLink copied to clipboard!
- Facilitate inter-application communication within a SwitchYard runtime. The SCA binding can be used to link a composite reference in one application to a composite service in another application.
- Provide a remote invocation endpoint for external clients using RemoteInvoker. This allows a stand-alone client to communicate with a SY application.
- Allow clustering of SwitchYard services in two or more SwitchYard instances.
9.2.16.1. SCA Service Bindings Copy linkLink copied to clipboard!
- clustered : when enabled, the service is published in the distributed SY runtime registry so that other cluster instances can discover and consume the service.
9.2.16.2. SCA Reference Bindings Copy linkLink copied to clipboard!
- clustered : if enabled, the reference binding discovers remote SY service endpoints in a cluster.
- load balancing : the name of a load balancing strategy to be used with clustering. Two out of the box options available are "RoundRobinStrategy" and "RandomStrategy". You can also specify a custom load balance strategy by implementing LoadBalanceStrategy.
- target service : allows you to override the name of the service being invoked in the case where the target application uses a service name different from the reference name (default is that reference and service name match).
- target namespace : allows you to override the namespace of the service being invoked. By default, all applications in SwitchYard use a different namespace, so keep this setting in mind when invocations occur across application boundaries.
9.2.16.3. Remote Transaction Propagation Copy linkLink copied to clipboard!
9.2.17. MQTT Copy linkLink copied to clipboard!
9.2.17.1. Generic options Copy linkLink copied to clipboard!
<binding.mqtt>
definition:
- host : The host that you want to connect to.
- localAddress : The local address.
- connectAttemptsMax : The maximum number of connect attempts.
- reconnectAttemptsMax : The maximum number of reconnect attempts.
- reconnectDelay : The time in milliseconds between reconnect attempts.
- reconnectBackOffMultiplier : The multiplier to use to the delay between connection attempts.
- reconnectDelayMax : The maximum time in milliseconds between reconnect attempts.
- userName : user name
- password : password
- qualityOfService : The MQTT Quality of Service. Possible values are:
AtMostOnce
,AtLeastOnce
, orExactlyOnce
. - byDefaultRetain : The default retain policy.
- mqttTopicPropertyName : The property name for the MQTT topic.
- mqttRetainPropertyName : The property name for the MQTT Retain policy.
- mqttQosPropertyName : The property name for the MQTT Quality of Service.
- connectWaitInSeconds : Delay in seconds to wait before establishing the connection.
- disconnectWaitInSeconds : Delay in seconds to wait before disconnecting the connection.
- sendWaitInSeconds : Delay in seconds to wait before sending the message.
9.2.17.2. Binding Services with MQTT Copy linkLink copied to clipboard!
Example 9.8. Example MQTT service binding
9.2.17.3. Binding References with MQTT Copy linkLink copied to clipboard!
Example 9.9. Example MQTT reference binding