xmlns:spring="http://www.springframework.org/schema/beans"
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
...
<http:connector name="httpConnector">
<spring:property name="keepAliveTimeout" value="5000" />
</http:connector>
Configuring a Transport
Mule Runtime Engine versions 3.5, 3.6, and 3.7 reached End of Life on or before January 25, 2020. For more information, contact your Customer Success Manager to determine how you can migrate to the latest Mule version. |
You can configure a transport in the following ways:
-
Define a connector configuration using the
<connector>
element in the Mule XML configuration file. -
Set transport properties on endpoints to customize the transport behavior for a single endpoint instance.
-
Use an endpoint URI that defines the scheme and connection information for the transport, such as
tcp://localhost:12345
. See Mule Endpoint URIs for more information. The URI consists of the protocol followed by transport-specific information, and then zero or more parameters to set as properties on the connector.
This page describes the common properties for all transports. The actual configuration parameters for each transport type are described separately for each transport. To see the details of a specific transport, see Transports Reference.
Common Connector Properties
All connectors require that you set the name
attribute to a unique name for that connector. Additionally, they all include the following common properties.
Property | Description | Default | Required |
---|---|---|---|
default-connector-exception-strategy |
The exception strategy to use when errors occur in the connector. |
No |
|
receiver-threading-profile |
The threading properties and WorkManager to use when receiving events from the connector. |
The default receiver threading profile set on the Mule Configuration |
Yes |
dispatcher-threading-profile |
The threading properties and WorkManager to use when dispatching events from the connector. |
The default dispatcher threading profile set on the Mule Configuration. |
Yes |
connection-strategy |
Desupported as of Mule 2.0. Use retry policies instead. |
No |
|
service-overrides |
A map of service configuration values that can be used to override the default configuration for this transport. |
No |
|
createMultipleTransactedReceivers |
Whether to create multiple concurrent receivers for this connector. This property is used by transports that support transactions, specifically receivers that extend the TransactedPollingMessageReceiver, and provides better throughput. |
false |
No |
numberOfConcurrentTransactedReceivers |
If |
No |
|
dynamicNotification |
Whether to enable dynamic notification. |
false |
No |
validateConnections |
Causes Mule to validate connections before use. Note that this is only a configuration hint; transport implementations may or may not make an extra effort to validate the connection. |
true |
No |
Setting Spring Properties on Connectors
You can also set a Spring property on a connector. This is especially useful if you are using a custom connector.
For example, you can set a Spring property to define the maximum time a socket will be left open on a TCP or HTTP connector, regardless of what happens with the client or data transfer from the client. To do this, include a Spring property to define a value for the keepAliveTimeout
property, as shown:
Note that this keepAliveTimout example is only relevant for the TCP and HTTP connectors and may not work with other connectors.
See Using Mule with Spring for information on setting Spring properties.
Retry Policies
Retry policies are used to configure how a connector behaves when its connection fails. For complete information, see Configuring Reconnection Strategies.
Creating Your Own Transport
For information on creating a custom transport for Mule ESB, see Creating Transports.
Detailed Configuration Information
-
Threading profiles
-
Receiver threading profile
-
Dispatcher threading profile
-
-
Service overrides
xslt: Read http://www.mulesoft.org/xslt/mule/schemadoc/2.0/single-element-wiki.xsl error because of: java.net.UnknownHostException: www.codehaus.orgmule
xslt: Read http://www.mulesoft.org/xslt/mule/schemadoc/2.0/single-element-wiki.xsl error because of: java.net.UnknownHostException: www.codehaus.orgmule
xslt: Read http://www.mulesoft.org/xslt/mule/schemadoc/2.0/single-element-wiki.xsl error because of: java.net.UnknownHostException: www.codehaus.orgmule