Some of the transports support configuration, such as timeout values, maximum retry count and so forth. To configure the transports you can use the URI query syntax. e.g. If you are using a list of URLs like above with the list and reliable protocols you can wrap the list in parens to be able to configure the list. e.g. Generic configuration options
brokerXmlConfigSets the Xml Configuration file used to configure the ActiveMQ broker via Spring if using embedded mode. The filename is assumed to be on the classpath unless a URL is specified. So a value of cachingEnabledProvides optimisations on the wire format (caching data at each end and using references to it to minmise the message size clientIDUsed to set the JMS clientID of connection. copyMessageOnSendUse to avoid the overhead of doing a deep copy of the JMS message everytime the message is sent. disableTimeStampsByDefaultUse to avoid the overhead of setting a timestamp on each message produced. doMessageCompressionIf messages should be compressed. doMessageFragmentationIf messages should be chunked into smaller fragments on the clients side. messageCompressionLimitData size above which compression will be used messageCompressionStrategyThe compression strategy to use when compressing messages. Defaults to the value of java.util.zip.Deflater.DEFAULT_STRATEGY (0). messageFragmentationLimitData size above which message fragmentation will be used optimizedMessageDispatchpasswordThe user password used to authenticate with the broker. prepareMessageBodyOnSendCauses pre-serialization of messages before send. turboBoostEnables a number of performance enhancements which are disabled by default to ensure J2EE certification. turboBoost turns on a bunch of optimisations: disableTimeStampsByDefault, useAsyncSend, cachingEnabled, and optimizedMessageDispatch and then disables copyMessageOnSend and prepareMessageBodyOnSend useAsyncSendUsed to enable asynchronous sending, which boost performance by using another thread to handle sending of messages to the socket. useEmbeddedBrokerSet to true if you want start an embeded broker when the first connection is created. userNameThe user name used to authenticate with the broker. wireFormatAllows a custom wire format to be used; otherwise the default Java wire format is used which is designed for minimum size and maximum speed on the Java platform. noDelayUsed to indicate whether messages are dispatched as quickly as possible or not. (The latency versus throughput trade off). When using TCP based transport this option is a means of disabling Nagles which can often improve performance on synchronous sends. TCP configuration options
SSL configuration optionsSame as TCP. SSL certificates are configured at the VM level. See How do I use SSL List configuration options
Reliable and Remote configuration optionsSame as the List configuration options above - plus
Peer configuration options
Discovery configuration options
Multicast configuration options
|