...
Configurable Sub Elements
Element Name | Description | Type | Default Value | Fixed Values | Mandatory/ Optional | Notes |
---|---|---|---|---|---|---|
<default> | Sets the default virtual host for connections which do not specify a vh | String | carbon | one of defined virtual-hosts | Mandatory |
<virtualhost>
Define a virtual host and all it's configurations under this element. All sub sections are under this element.
Configurable Sub Elements
Element Name | Description | Type | Default Value | Fixed Values | Mandatory/Optional | Notes |
---|---|---|---|---|---|---|
<name> | Sets the identifiable name for the virtualhost | String | carbon | N/A | Mandatory |
<carbon>
All configuration options for "carbon" virtual host are defined under this element.
<store>
Defines the store properties used by this virtual host to keep messages. By default, the Cassandra based message store is configured.<housekeeping>
Housekeeping task configurations for virtualhosts. This section configures the clean-up threads that work on flushing out obsolete/expired messages from the AMQP exchanges.
Configurable Sub Elements
Element Name | Description | Type | Default Value | Fixed Values | Mandatory/ Optional | Notes | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<class><threadCount> | The class that implements the message storenumber of clean-up threads. | String | org.wso2.andes.server.store. CassandraMessageStore | NInteger | 2 | N/A | Mandatory | This should be defined in the class path by the time the broker is started | <username> | The username for message store accessString | admin | Mandatory | ||
<expiredMessageCheckPeriod> | ||||||||||||||
<password> | The password for message store access | String | admin | Mandatory | ||||||||||
<cluster> | The name of the cluster to which this broker instance should be registered | String | ClusterOne | Mandatory | ||||||||||
<idGenerator> | The class generating message IDs for global sync across the cluster | String | org.wso2.andes.server.cluster.coordination. TimeStampBasedMessageIdGenerator | Mandatory | ||||||||||
<connectionString> | Connection string for the message store | localhost:9160 | If you have a Cassandra profile running or Cassandra cluster running this should point to that running instance or cluster. |
<housekeeping>
Housekeeping task configurations for virtualhosts.
Configurable Sub Elements
Element Name | Description | Type | Default Value | Fixed Values | Mandatory/ Optional | Notes |
---|---|---|---|---|---|---|
<threadCount> | Integer | 2 | N/A | Mandatory | ||
<expiredMessageCheckPeriod> | The time intervals at which the QPID broker checks for expired messages. | Integer | 20000 | N/A | Mandatory | The value is specified in milliseconds. |
<exchanges>
Define the types of additional AMQP exchange available for this vh. Always get amq.direct (for queues) and amq.topic (for topics) by default. Declare an additional exchange type for developer use only.
<queues>
Note that if you do not add details of a queue or topic you intend to use to this file, you must first create a consumer on a queue/topic before you can publish to it using WSO2 MB.
Configurable Sub Elements
Element Name | Description | Type | Default Value | Fixed Values | Mandatory/ Optional | Notes |
---|---|---|---|---|---|---|
<maximumQueueDepth> | Defines the maximum number of messages that can be kept in the internal queue buffer for delivery. You can switch it off by setting it to 0. | 0 | N/A | Mandatory | ||
<maximumMessageSize> | The maximum size, in bytes, of the messages that can be kept in the queue. You can switch it off by setting it to 0. | 0 | N/A | Mandatory | ||
<maximumMessageAge> | Messages kept for this amount of time in the broker will be dropped. You can switch it off by setting it to 0. | 0 | N/A | Mandatory | ||
<maximumMessageCount> | The maximum message count of a queue. You can switch it off by setting it to 0. | 0 | N/A | Mandatory |