From da7718ef463775acc7d6fbecf2d64c1bbfc39fd8 Mon Sep 17 00:00:00 2001
From: Justin Ross
Date: Tue, 19 Apr 2016 23:11:13 +0000
Subject: QPID-7207: Remove files and components that are obsolete or no longer
in use; move doc and packaging pieces to the cpp subtree
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1740032 13f79535-47bb-0310-9956-ffa450edef68
---
qpid/LICENSE | 8 -
qpid/NOTICE | 8 -
qpid/QPID_VERSION.txt | 1 -
qpid/README.txt | 57 -
qpid/bin/LICENSE | 206 -
qpid/bin/NOTICE | 8 -
qpid/bin/install-cpp-python | 76 -
qpid/bin/mvn-deploy-qpid-java.sh | 71 -
qpid/bin/set_svn_properties.sh | 133 -
qpid/buildtools/LICENSE | 206 -
qpid/buildtools/NOTICE | 8 -
qpid/buildtools/buildCreator/build.config | 37 -
qpid/buildtools/buildCreator/buildCreator.py | 1472 -----
qpid/buildtools/buildCreator/qpid.build | 55 -
qpid/cpp/docs/book/.gitignore | 21 +
qpid/cpp/docs/book/Makefile | 38 +
qpid/cpp/docs/book/src/Makefile.inc | 63 +
qpid/cpp/docs/book/src/common/css/style.css | 279 +
qpid/cpp/docs/book/src/cpp-broker/.gitignore | 20 +
.../book/src/cpp-broker/AMQP-Compatibility.xml | 713 +++
.../cpp-broker/AMQP-Messaging-Broker-CPP-Book.xml | 74 +
.../book/src/cpp-broker/Active-Passive-Cluster.xml | 1229 ++++
...heat-Sheet-for-configuring-Exchange-Options.xml | 144 +
.../Cheat-Sheet-for-configuring-Queue-Options.xml | 198 +
.../book/src/cpp-broker/HA-Queue-Replication.xml | 126 +
qpid/cpp/docs/book/src/cpp-broker/LVQ.xml | 181 +
qpid/cpp/docs/book/src/cpp-broker/Makefile | 20 +
.../book/src/cpp-broker/Managing-CPP-Broker.xml | 480 ++
.../src/cpp-broker/QMF-Python-Console-Tutorial.xml | 894 +++
.../Qpid-Interoperability-Documentation.xml | 377 ++
.../src/cpp-broker/Qpid-Management-Framework.xml | 944 +++
.../book/src/cpp-broker/Running-CPP-Broker.xml | 846 +++
qpid/cpp/docs/book/src/cpp-broker/Security.xml | 2516 ++++++++
.../src/cpp-broker/Using-Broker-Federation.xml | 715 +++
.../book/src/cpp-broker/Using-message-groups.xml | 295 +
.../book/src/cpp-broker/producer-flow-control.xml | 351 ++
.../src/cpp-broker/queue-state-replication.xml | 333 +
qpid/cpp/docs/book/src/images/qpid-logo.png | Bin 0 -> 39056 bytes
qpid/cpp/docs/book/src/old/ACL.xml | 800 +++
.../book/src/old/AMQP-.NET-Messaging-Client.xml | 108 +
.../book/src/old/AMQP-C++-Messaging-Client.xml | 61 +
.../src/old/AMQP-Java-JMS-Messaging-Client.xml | 94 +
.../book/src/old/AMQP-Messaging-Broker-CPP.xml | 70 +
.../book/src/old/AMQP-Python-Messaging-Client.xml | 62 +
.../book/src/old/AMQP-Ruby-Messaging-Client.xml | 40 +
qpid/cpp/docs/book/src/old/AMQP.xml | 98 +
qpid/cpp/docs/book/src/old/Binding-URL-Format.xml | 174 +
qpid/cpp/docs/book/src/old/Book-Info.xml | 68 +
qpid/cpp/docs/book/src/old/Book.xml | 93 +
qpid/cpp/docs/book/src/old/Broker-CPP.xml | 40 +
qpid/cpp/docs/book/src/old/Broker-Java.xml | 45 +
qpid/cpp/docs/book/src/old/Clients.xml | 25 +
.../docs/book/src/old/Connection-URL-Format.xml | 387 ++
qpid/cpp/docs/book/src/old/Download.xml | 174 +
qpid/cpp/docs/book/src/old/Excel-AddIn.xml | 169 +
qpid/cpp/docs/book/src/old/FAQ.xml | 524 ++
qpid/cpp/docs/book/src/old/Getting-Started.xml | 90 +
qpid/cpp/docs/book/src/old/How-to-Use-JNDI.xml | 175 +
qpid/cpp/docs/book/src/old/InfoPlugin.xml | 261 +
qpid/cpp/docs/book/src/old/Introduction.xml | 106 +
.../book/src/old/Java-Broker-StatusLogMessages.xml | 294 +
.../docs/book/src/old/Java-JMS-Selector-Syntax.xml | 96 +
.../docs/book/src/old/Management-Design-notes.xml | 2136 +++++++
qpid/cpp/docs/book/src/old/NET-User-Guide.xml | 1383 ++++
qpid/cpp/docs/book/src/old/PythonBrokerTest.xml | 98 +
.../book/src/old/QMan-Qpid-Management-bridge.xml | 166 +
qpid/cpp/docs/book/src/old/Qpid-ACLs.xml | 49 +
qpid/cpp/docs/book/src/old/Qpid-Book.xml | 93 +
...pid-Compatibility-And-Interoperability-Book.xml | 36 +
qpid/cpp/docs/book/src/old/SASL-Compatibility.xml | 70 +
qpid/cpp/docs/book/src/old/SSL.xml | 180 +
qpid/cpp/docs/book/src/old/Security-Plugins.xml | 611 ++
qpid/cpp/docs/book/src/old/System-Properties.xml | 357 ++
.../old/Using-Qpid-with-other-JNDI-Providers.xml | 215 +
qpid/cpp/docs/book/src/old/WCF.xml | 137 +
qpid/cpp/docs/book/src/old/schemas.xml | 102 +
qpid/cpp/docs/book/src/programming/Makefile | 20 +
.../book/src/programming/Message-Groups-Guide.xml | 163 +
.../src/programming/Programming-In-Apache-Qpid.xml | 6594 ++++++++++++++++++++
qpid/cpp/docs/book/src/qmf/QmfBook.xml | 101 +
qpid/cpp/docs/book/src/qmf/QmfIntroduction.xml | 45 +
qpid/cpp/docs/book/xsl/html-custom.xsl | 188 +
qpid/cpp/packaging/windows/INSTALL_NOTES.html | 100 +
qpid/cpp/packaging/windows/LICENSE.rtf | 110 +
qpid/cpp/packaging/windows/build_installer.bat | 55 +
qpid/cpp/packaging/windows/installer.proj | 243 +
qpid/cpp/packaging/windows/qpid-icon.ico | Bin 0 -> 52972 bytes
.../packaging/windows/qpid-install-background.bmp | Bin 0 -> 155830 bytes
qpid/cpp/packaging/windows/qpid-install-banner.bmp | Bin 0 -> 29846 bytes
qpid/cpp/packaging/windows/qpidc.wxs | 343 +
qpid/doc/book/.gitignore | 21 -
qpid/doc/book/Makefile | 38 -
qpid/doc/book/src/Makefile.inc | 63 -
qpid/doc/book/src/common/css/style.css | 279 -
qpid/doc/book/src/cpp-broker/.gitignore | 20 -
.../doc/book/src/cpp-broker/AMQP-Compatibility.xml | 713 ---
.../cpp-broker/AMQP-Messaging-Broker-CPP-Book.xml | 74 -
.../book/src/cpp-broker/Active-Passive-Cluster.xml | 1229 ----
...heat-Sheet-for-configuring-Exchange-Options.xml | 144 -
.../Cheat-Sheet-for-configuring-Queue-Options.xml | 198 -
.../book/src/cpp-broker/HA-Queue-Replication.xml | 126 -
qpid/doc/book/src/cpp-broker/LVQ.xml | 181 -
qpid/doc/book/src/cpp-broker/Makefile | 20 -
.../book/src/cpp-broker/Managing-CPP-Broker.xml | 480 --
.../src/cpp-broker/QMF-Python-Console-Tutorial.xml | 894 ---
.../Qpid-Interoperability-Documentation.xml | 377 --
.../src/cpp-broker/Qpid-Management-Framework.xml | 944 ---
.../doc/book/src/cpp-broker/Running-CPP-Broker.xml | 846 ---
qpid/doc/book/src/cpp-broker/Security.xml | 2516 --------
.../src/cpp-broker/Using-Broker-Federation.xml | 715 ---
.../book/src/cpp-broker/Using-message-groups.xml | 295 -
.../book/src/cpp-broker/producer-flow-control.xml | 351 --
.../src/cpp-broker/queue-state-replication.xml | 333 -
qpid/doc/book/src/images/qpid-logo.png | Bin 39056 -> 0 bytes
qpid/doc/book/src/old/ACL.xml | 800 ---
.../book/src/old/AMQP-.NET-Messaging-Client.xml | 108 -
.../doc/book/src/old/AMQP-C++-Messaging-Client.xml | 61 -
.../src/old/AMQP-Java-JMS-Messaging-Client.xml | 94 -
.../doc/book/src/old/AMQP-Messaging-Broker-CPP.xml | 70 -
.../book/src/old/AMQP-Python-Messaging-Client.xml | 62 -
.../book/src/old/AMQP-Ruby-Messaging-Client.xml | 40 -
qpid/doc/book/src/old/AMQP.xml | 98 -
qpid/doc/book/src/old/Binding-URL-Format.xml | 174 -
qpid/doc/book/src/old/Book-Info.xml | 68 -
qpid/doc/book/src/old/Book.xml | 93 -
qpid/doc/book/src/old/Broker-CPP.xml | 40 -
qpid/doc/book/src/old/Broker-Java.xml | 45 -
qpid/doc/book/src/old/Clients.xml | 25 -
qpid/doc/book/src/old/Connection-URL-Format.xml | 387 --
qpid/doc/book/src/old/Download.xml | 174 -
qpid/doc/book/src/old/Excel-AddIn.xml | 169 -
qpid/doc/book/src/old/FAQ.xml | 524 --
qpid/doc/book/src/old/Getting-Started.xml | 90 -
qpid/doc/book/src/old/How-to-Use-JNDI.xml | 175 -
qpid/doc/book/src/old/InfoPlugin.xml | 261 -
qpid/doc/book/src/old/Introduction.xml | 106 -
.../book/src/old/Java-Broker-StatusLogMessages.xml | 294 -
qpid/doc/book/src/old/Java-JMS-Selector-Syntax.xml | 96 -
qpid/doc/book/src/old/Management-Design-notes.xml | 2136 -------
qpid/doc/book/src/old/NET-User-Guide.xml | 1383 ----
qpid/doc/book/src/old/PythonBrokerTest.xml | 98 -
.../book/src/old/QMan-Qpid-Management-bridge.xml | 166 -
qpid/doc/book/src/old/Qpid-ACLs.xml | 49 -
qpid/doc/book/src/old/Qpid-Book.xml | 93 -
...pid-Compatibility-And-Interoperability-Book.xml | 36 -
qpid/doc/book/src/old/SASL-Compatibility.xml | 70 -
qpid/doc/book/src/old/SSL.xml | 180 -
qpid/doc/book/src/old/Security-Plugins.xml | 611 --
qpid/doc/book/src/old/System-Properties.xml | 357 --
.../old/Using-Qpid-with-other-JNDI-Providers.xml | 215 -
qpid/doc/book/src/old/WCF.xml | 137 -
qpid/doc/book/src/old/schemas.xml | 102 -
qpid/doc/book/src/programming/Makefile | 20 -
.../book/src/programming/Message-Groups-Guide.xml | 163 -
.../src/programming/Programming-In-Apache-Qpid.xml | 6594 --------------------
qpid/doc/book/src/qmf/QmfBook.xml | 101 -
qpid/doc/book/src/qmf/QmfIntroduction.xml | 45 -
qpid/doc/book/xsl/html-custom.xsl | 188 -
qpid/doc/dev-readme/QPID-Component-README.odg | Bin 12661 -> 0 bytes
qpid/doc/dev-readme/QPID-Component-README.pdf | Bin 38097 -> 0 bytes
qpid/doc/dev-readme/README.txt | 6 -
qpid/doc/website/README.txt | 10 -
qpid/etc/LICENSE | 206 -
qpid/etc/NOTICE | 8 -
qpid/etc/svn-auto-props | 77 -
qpid/extras/dispatch/README | 4 -
qpid/packaging/windows/INSTALL_NOTES.html | 100 -
qpid/packaging/windows/LICENSE.rtf | 110 -
qpid/packaging/windows/build_installer.bat | 55 -
qpid/packaging/windows/installer.proj | 243 -
qpid/packaging/windows/qpid-icon.ico | Bin 52972 -> 0 bytes
qpid/packaging/windows/qpid-install-background.bmp | Bin 155830 -> 0 bytes
qpid/packaging/windows/qpid-install-banner.bmp | Bin 29846 -> 0 bytes
qpid/packaging/windows/qpidc.wxs | 343 -
qpid/review/LICENSE | 206 -
qpid/review/NOTICE | 8 -
qpid/review/agenda.py | 84 -
qpid/review/changeLogToWiki.py | 85 -
qpid/review/jiraRSS2wiki.xsl | 37 -
qpid/review/svnlog2wiki.xsl | 31 -
qpid/sandbox/models/fedsim/__init__.py | 19 -
qpid/sandbox/models/fedsim/fedsim.py | 434 --
qpid/sandbox/models/fedsim/testBig.py | 88 -
qpid/sandbox/models/fedsim/testRing.py | 48 -
qpid/sandbox/models/fedsim/testStar.py | 65 -
qpid/sandbox/models/fedsim/testStarAdd.py | 56 -
qpid/wcf/LICENSE.txt | 202 -
qpid/wcf/NOTICE.txt | 5 -
qpid/wcf/QpidWcf.sln | 89 -
qpid/wcf/ReadMe.txt | 189 -
qpid/wcf/samples/Channel/AppConfig/ConfigDemo.cs | 109 -
.../samples/Channel/AppConfig/ConfigDemo.csproj | 143 -
qpid/wcf/samples/Channel/HelloWorld/HelloWorld.cs | 119 -
.../samples/Channel/HelloWorld/HelloWorld.csproj | 75 -
.../Channel/WCFToWCFDirect/Client/Client.cs | 68 -
.../Channel/WCFToWCFDirect/Client/Client.csproj | 91 -
.../Client/Properties/AssemblyInfo.cs | 55 -
.../Service/Properties/AssemblyInfo.cs | 55 -
.../Channel/WCFToWCFDirect/Service/Service.cs | 83 -
.../Channel/WCFToWCFDirect/Service/Service.csproj | 86 -
.../Channel/WCFToWCFDirect/WCFToWCFDirect.sln | 46 -
.../Another_Topic_Consumer.cs | 67 -
.../Another_Topic_Consumer.csproj | 91 -
.../Properties/AssemblyInfo.cs | 55 -
.../Topic_Consumer/Properties/AssemblyInfo.cs | 55 -
.../Topic_Consumer/Topic_Consumer.cs | 85 -
.../Topic_Consumer/Topic_Consumer.csproj | 85 -
.../Topic_Producer/Properties/AssemblyInfo.cs | 55 -
.../Topic_Producer/Topic_Producer.cs | 68 -
.../Topic_Producer/Topic_Producer.csproj | 91 -
.../Channel/WCFToWCFPubSub/WCFToWCFPubSub.sln | 52 -
qpid/wcf/samples/Integration/Drain/Drain.cs | 146 -
qpid/wcf/samples/Integration/Drain/Drain.csproj | 80 -
qpid/wcf/samples/Integration/Integration.sln | 46 -
qpid/wcf/samples/Integration/Spout/Spout.cs | 109 -
qpid/wcf/samples/Integration/Spout/Spout.csproj | 81 -
qpid/wcf/samples/Integration/Util/Options.cs | 157 -
qpid/wcf/src/Apache/Qpid/AmqpTypes/AmqpBoolean.cs | 57 -
qpid/wcf/src/Apache/Qpid/AmqpTypes/AmqpInt.cs | 57 -
.../src/Apache/Qpid/AmqpTypes/AmqpProperties.cs | 301 -
qpid/wcf/src/Apache/Qpid/AmqpTypes/AmqpString.cs | 91 -
qpid/wcf/src/Apache/Qpid/AmqpTypes/AmqpType.cs | 33 -
.../wcf/src/Apache/Qpid/AmqpTypes/AmqpTypes.csproj | 158 -
qpid/wcf/src/Apache/Qpid/AmqpTypes/AmqpUbyte.cs | 57 -
.../src/Apache/Qpid/AmqpTypes/CreateNetModule.bat | 33 -
.../Qpid/AmqpTypes/Properties/AssemblyInfo.cs | 55 -
qpid/wcf/src/Apache/Qpid/AmqpTypes/PropertyName.cs | 35 -
.../src/Apache/Qpid/Channel/AmqpBinaryBinding.cs | 68 -
.../Channel/AmqpBinaryBindingCollectionElement.cs | 29 -
.../AmqpBinaryBindingConfigurationElement.cs | 79 -
qpid/wcf/src/Apache/Qpid/Channel/AmqpBinding.cs | 153 -
.../Qpid/Channel/AmqpBindingCollectionElement.cs | 29 -
.../Channel/AmqpBindingConfigurationElement.cs | 344 -
.../src/Apache/Qpid/Channel/AmqpChannelFactory.cs | 154 -
.../src/Apache/Qpid/Channel/AmqpChannelHelpers.cs | 234 -
.../src/Apache/Qpid/Channel/AmqpChannelListener.cs | 204 -
qpid/wcf/src/Apache/Qpid/Channel/AmqpCredential.cs | 113 -
.../src/Apache/Qpid/Channel/AmqpCredentialType.cs | 37 -
qpid/wcf/src/Apache/Qpid/Channel/AmqpSecurity.cs | 75 -
.../src/Apache/Qpid/Channel/AmqpSecurityElement.cs | 126 -
.../src/Apache/Qpid/Channel/AmqpSecurityMode.cs | 37 -
.../Qpid/Channel/AmqpTransportBindingElement.cs | 186 -
.../Apache/Qpid/Channel/AmqpTransportChannel.cs | 642 --
.../Apache/Qpid/Channel/AmqpTransportSecurity.cs | 101 -
qpid/wcf/src/Apache/Qpid/Channel/Channel.csproj | 112 -
.../src/Apache/Qpid/Channel/ConnectionManager.cs | 329 -
.../Apache/Qpid/Channel/Properties/AssemblyInfo.cs | 52 -
qpid/wcf/src/Apache/Qpid/Channel/RawMessage.cs | 374 --
.../src/Apache/Qpid/Channel/RawMessageEncoder.cs | 113 -
.../Qpid/Channel/RawMessageEncoderFactory.cs | 45 -
.../Channel/RawMessageEncodingBindingElement.cs | 102 -
qpid/wcf/src/Apache/Qpid/Channel/RawXmlReader.cs | 353 --
qpid/wcf/src/Apache/Qpid/Channel/RawXmlWriter.cs | 221 -
qpid/wcf/src/Apache/Qpid/DtcPlugin/DtcPlugin.cpp | 797 ---
.../wcf/src/Apache/Qpid/Interop/AmqpConnection.cpp | 276 -
qpid/wcf/src/Apache/Qpid/Interop/AmqpConnection.h | 97 -
qpid/wcf/src/Apache/Qpid/Interop/AmqpMessage.cpp | 76 -
qpid/wcf/src/Apache/Qpid/Interop/AmqpMessage.h | 61 -
qpid/wcf/src/Apache/Qpid/Interop/AmqpSession.cpp | 633 --
qpid/wcf/src/Apache/Qpid/Interop/AmqpSession.h | 109 -
qpid/wcf/src/Apache/Qpid/Interop/AssemblyInfo.cpp | 57 -
.../src/Apache/Qpid/Interop/CompletionWaiter.cpp | 145 -
.../wcf/src/Apache/Qpid/Interop/CompletionWaiter.h | 98 -
.../src/Apache/Qpid/Interop/DtxResourceManager.cpp | 285 -
.../src/Apache/Qpid/Interop/DtxResourceManager.h | 76 -
qpid/wcf/src/Apache/Qpid/Interop/InputLink.cpp | 868 ---
qpid/wcf/src/Apache/Qpid/Interop/InputLink.h | 110 -
qpid/wcf/src/Apache/Qpid/Interop/Interop.vcproj | 501 --
.../src/Apache/Qpid/Interop/MessageBodyStream.cpp | 337 -
.../src/Apache/Qpid/Interop/MessageBodyStream.h | 131 -
qpid/wcf/src/Apache/Qpid/Interop/MessageWaiter.cpp | 251 -
qpid/wcf/src/Apache/Qpid/Interop/MessageWaiter.h | 125 -
qpid/wcf/src/Apache/Qpid/Interop/OutputLink.cpp | 255 -
qpid/wcf/src/Apache/Qpid/Interop/OutputLink.h | 75 -
qpid/wcf/src/Apache/Qpid/Interop/QpidAddress.cpp | 304 -
qpid/wcf/src/Apache/Qpid/Interop/QpidAddress.h | 89 -
qpid/wcf/src/Apache/Qpid/Interop/QpidException.h | 37 -
qpid/wcf/src/Apache/Qpid/Interop/QpidMarshal.h | 53 -
qpid/wcf/src/Apache/Qpid/Interop/XaTransaction.cpp | 525 --
qpid/wcf/src/Apache/Qpid/Interop/XaTransaction.h | 96 -
qpid/wcf/src/wcfnet.snk | Bin 596 -> 0 bytes
.../Qpid/Test/Channel/Functional/AsyncTest.cs | 190 -
.../Channel/Functional/BasicTransactionTest.cs | 173 -
.../Channel/Functional/ChannelAbortCommitTest.cs | 113 -
.../Channel/Functional/ChannelContextParameters.cs | 229 -
.../Qpid/Test/Channel/Functional/ChannelEntity.cs | 72 -
.../Test/Channel/Functional/ChannelReceiver.cs | 280 -
.../Qpid/Test/Channel/Functional/ChannelSender.cs | 138 -
.../Channel/Functional/CustomAmqpBindingTest.cs | 77 -
.../Test/Channel/Functional/FunctionalTests.csproj | 121 -
.../Channel/Functional/IGenericObjectService.cs | 30 -
.../Test/Channel/Functional/IInteropService.cs | 31 -
.../Channel/Functional/IQueuedDatagramService1.cs | 33 -
.../Channel/Functional/IQueuedDatagramService2.cs | 33 -
.../Channel/Functional/IQueuedDatagramService3.cs | 33 -
.../Functional/IQueuedServiceUsingTSRAttribute.cs | 30 -
.../IQueuedServiceUsingTransactionScope.cs | 30 -
.../Test/Channel/Functional/MessageBodyTest.cs | 134 -
.../Qpid/Test/Channel/Functional/MessageClient.cs | 144 -
.../Test/Channel/Functional/MessageProperties.txt | 22 -
.../Channel/Functional/MessagePropertiesTest.cs | 131 -
.../Qpid/Test/Channel/Functional/MessageService.cs | 198 -
.../Functional/MultipleEndpointsSameQueueTest.cs | 83 -
.../Channel/Functional/Properties/AssemblyInfo.cs | 55 -
.../Qpid/Test/Channel/Functional/RunTests.bat | 34 -
.../Apache/Qpid/Test/Channel/Functional/Util.cs | 157 -
.../Test/Channel/WcfPerftest/RawBodyUtility.cs | 161 -
.../Qpid/Test/Channel/WcfPerftest/WcfPerftest.cs | 783 ---
.../Test/Channel/WcfPerftest/WcfPerftest.csproj | 83 -
qpid/wcf/tools/QCreate/QCreate.cpp | 65 -
qpid/wcf/tools/QCreate/QCreate.sln | 40 -
qpid/wcf/tools/QCreate/QCreate.vcproj | 232 -
qpid/wcf/tools/QCreate/ReadMe.txt | 52 -
qpid/wcf/tools/QCreate/stdafx.cpp | 27 -
qpid/wcf/tools/QCreate/stdafx.h | 34 -
qpid/wcf/tools/QCreate/targetver.h | 32 -
316 files changed, 28506 insertions(+), 50798 deletions(-)
delete mode 100644 qpid/LICENSE
delete mode 100644 qpid/NOTICE
delete mode 100644 qpid/QPID_VERSION.txt
delete mode 100644 qpid/README.txt
delete mode 100644 qpid/bin/LICENSE
delete mode 100644 qpid/bin/NOTICE
delete mode 100755 qpid/bin/install-cpp-python
delete mode 100755 qpid/bin/mvn-deploy-qpid-java.sh
delete mode 100755 qpid/bin/set_svn_properties.sh
delete mode 100644 qpid/buildtools/LICENSE
delete mode 100644 qpid/buildtools/NOTICE
delete mode 100644 qpid/buildtools/buildCreator/build.config
delete mode 100755 qpid/buildtools/buildCreator/buildCreator.py
delete mode 100644 qpid/buildtools/buildCreator/qpid.build
create mode 100644 qpid/cpp/docs/book/.gitignore
create mode 100644 qpid/cpp/docs/book/Makefile
create mode 100644 qpid/cpp/docs/book/src/Makefile.inc
create mode 100644 qpid/cpp/docs/book/src/common/css/style.css
create mode 100644 qpid/cpp/docs/book/src/cpp-broker/.gitignore
create mode 100644 qpid/cpp/docs/book/src/cpp-broker/AMQP-Compatibility.xml
create mode 100644 qpid/cpp/docs/book/src/cpp-broker/AMQP-Messaging-Broker-CPP-Book.xml
create mode 100644 qpid/cpp/docs/book/src/cpp-broker/Active-Passive-Cluster.xml
create mode 100644 qpid/cpp/docs/book/src/cpp-broker/Cheat-Sheet-for-configuring-Exchange-Options.xml
create mode 100644 qpid/cpp/docs/book/src/cpp-broker/Cheat-Sheet-for-configuring-Queue-Options.xml
create mode 100644 qpid/cpp/docs/book/src/cpp-broker/HA-Queue-Replication.xml
create mode 100644 qpid/cpp/docs/book/src/cpp-broker/LVQ.xml
create mode 100644 qpid/cpp/docs/book/src/cpp-broker/Makefile
create mode 100644 qpid/cpp/docs/book/src/cpp-broker/Managing-CPP-Broker.xml
create mode 100644 qpid/cpp/docs/book/src/cpp-broker/QMF-Python-Console-Tutorial.xml
create mode 100644 qpid/cpp/docs/book/src/cpp-broker/Qpid-Interoperability-Documentation.xml
create mode 100644 qpid/cpp/docs/book/src/cpp-broker/Qpid-Management-Framework.xml
create mode 100644 qpid/cpp/docs/book/src/cpp-broker/Running-CPP-Broker.xml
create mode 100644 qpid/cpp/docs/book/src/cpp-broker/Security.xml
create mode 100644 qpid/cpp/docs/book/src/cpp-broker/Using-Broker-Federation.xml
create mode 100644 qpid/cpp/docs/book/src/cpp-broker/Using-message-groups.xml
create mode 100644 qpid/cpp/docs/book/src/cpp-broker/producer-flow-control.xml
create mode 100644 qpid/cpp/docs/book/src/cpp-broker/queue-state-replication.xml
create mode 100644 qpid/cpp/docs/book/src/images/qpid-logo.png
create mode 100644 qpid/cpp/docs/book/src/old/ACL.xml
create mode 100644 qpid/cpp/docs/book/src/old/AMQP-.NET-Messaging-Client.xml
create mode 100644 qpid/cpp/docs/book/src/old/AMQP-C++-Messaging-Client.xml
create mode 100644 qpid/cpp/docs/book/src/old/AMQP-Java-JMS-Messaging-Client.xml
create mode 100644 qpid/cpp/docs/book/src/old/AMQP-Messaging-Broker-CPP.xml
create mode 100644 qpid/cpp/docs/book/src/old/AMQP-Python-Messaging-Client.xml
create mode 100644 qpid/cpp/docs/book/src/old/AMQP-Ruby-Messaging-Client.xml
create mode 100644 qpid/cpp/docs/book/src/old/AMQP.xml
create mode 100644 qpid/cpp/docs/book/src/old/Binding-URL-Format.xml
create mode 100644 qpid/cpp/docs/book/src/old/Book-Info.xml
create mode 100644 qpid/cpp/docs/book/src/old/Book.xml
create mode 100644 qpid/cpp/docs/book/src/old/Broker-CPP.xml
create mode 100644 qpid/cpp/docs/book/src/old/Broker-Java.xml
create mode 100644 qpid/cpp/docs/book/src/old/Clients.xml
create mode 100644 qpid/cpp/docs/book/src/old/Connection-URL-Format.xml
create mode 100644 qpid/cpp/docs/book/src/old/Download.xml
create mode 100644 qpid/cpp/docs/book/src/old/Excel-AddIn.xml
create mode 100644 qpid/cpp/docs/book/src/old/FAQ.xml
create mode 100644 qpid/cpp/docs/book/src/old/Getting-Started.xml
create mode 100644 qpid/cpp/docs/book/src/old/How-to-Use-JNDI.xml
create mode 100644 qpid/cpp/docs/book/src/old/InfoPlugin.xml
create mode 100644 qpid/cpp/docs/book/src/old/Introduction.xml
create mode 100644 qpid/cpp/docs/book/src/old/Java-Broker-StatusLogMessages.xml
create mode 100644 qpid/cpp/docs/book/src/old/Java-JMS-Selector-Syntax.xml
create mode 100644 qpid/cpp/docs/book/src/old/Management-Design-notes.xml
create mode 100644 qpid/cpp/docs/book/src/old/NET-User-Guide.xml
create mode 100644 qpid/cpp/docs/book/src/old/PythonBrokerTest.xml
create mode 100644 qpid/cpp/docs/book/src/old/QMan-Qpid-Management-bridge.xml
create mode 100644 qpid/cpp/docs/book/src/old/Qpid-ACLs.xml
create mode 100644 qpid/cpp/docs/book/src/old/Qpid-Book.xml
create mode 100644 qpid/cpp/docs/book/src/old/Qpid-Compatibility-And-Interoperability-Book.xml
create mode 100644 qpid/cpp/docs/book/src/old/SASL-Compatibility.xml
create mode 100644 qpid/cpp/docs/book/src/old/SSL.xml
create mode 100644 qpid/cpp/docs/book/src/old/Security-Plugins.xml
create mode 100644 qpid/cpp/docs/book/src/old/System-Properties.xml
create mode 100644 qpid/cpp/docs/book/src/old/Using-Qpid-with-other-JNDI-Providers.xml
create mode 100644 qpid/cpp/docs/book/src/old/WCF.xml
create mode 100644 qpid/cpp/docs/book/src/old/schemas.xml
create mode 100644 qpid/cpp/docs/book/src/programming/Makefile
create mode 100644 qpid/cpp/docs/book/src/programming/Message-Groups-Guide.xml
create mode 100644 qpid/cpp/docs/book/src/programming/Programming-In-Apache-Qpid.xml
create mode 100644 qpid/cpp/docs/book/src/qmf/QmfBook.xml
create mode 100644 qpid/cpp/docs/book/src/qmf/QmfIntroduction.xml
create mode 100644 qpid/cpp/docs/book/xsl/html-custom.xsl
create mode 100644 qpid/cpp/packaging/windows/INSTALL_NOTES.html
create mode 100644 qpid/cpp/packaging/windows/LICENSE.rtf
create mode 100644 qpid/cpp/packaging/windows/build_installer.bat
create mode 100644 qpid/cpp/packaging/windows/installer.proj
create mode 100644 qpid/cpp/packaging/windows/qpid-icon.ico
create mode 100644 qpid/cpp/packaging/windows/qpid-install-background.bmp
create mode 100644 qpid/cpp/packaging/windows/qpid-install-banner.bmp
create mode 100644 qpid/cpp/packaging/windows/qpidc.wxs
delete mode 100644 qpid/doc/book/.gitignore
delete mode 100644 qpid/doc/book/Makefile
delete mode 100644 qpid/doc/book/src/Makefile.inc
delete mode 100644 qpid/doc/book/src/common/css/style.css
delete mode 100644 qpid/doc/book/src/cpp-broker/.gitignore
delete mode 100644 qpid/doc/book/src/cpp-broker/AMQP-Compatibility.xml
delete mode 100644 qpid/doc/book/src/cpp-broker/AMQP-Messaging-Broker-CPP-Book.xml
delete mode 100644 qpid/doc/book/src/cpp-broker/Active-Passive-Cluster.xml
delete mode 100644 qpid/doc/book/src/cpp-broker/Cheat-Sheet-for-configuring-Exchange-Options.xml
delete mode 100644 qpid/doc/book/src/cpp-broker/Cheat-Sheet-for-configuring-Queue-Options.xml
delete mode 100644 qpid/doc/book/src/cpp-broker/HA-Queue-Replication.xml
delete mode 100644 qpid/doc/book/src/cpp-broker/LVQ.xml
delete mode 100644 qpid/doc/book/src/cpp-broker/Makefile
delete mode 100644 qpid/doc/book/src/cpp-broker/Managing-CPP-Broker.xml
delete mode 100644 qpid/doc/book/src/cpp-broker/QMF-Python-Console-Tutorial.xml
delete mode 100644 qpid/doc/book/src/cpp-broker/Qpid-Interoperability-Documentation.xml
delete mode 100644 qpid/doc/book/src/cpp-broker/Qpid-Management-Framework.xml
delete mode 100644 qpid/doc/book/src/cpp-broker/Running-CPP-Broker.xml
delete mode 100644 qpid/doc/book/src/cpp-broker/Security.xml
delete mode 100644 qpid/doc/book/src/cpp-broker/Using-Broker-Federation.xml
delete mode 100644 qpid/doc/book/src/cpp-broker/Using-message-groups.xml
delete mode 100644 qpid/doc/book/src/cpp-broker/producer-flow-control.xml
delete mode 100644 qpid/doc/book/src/cpp-broker/queue-state-replication.xml
delete mode 100644 qpid/doc/book/src/images/qpid-logo.png
delete mode 100644 qpid/doc/book/src/old/ACL.xml
delete mode 100644 qpid/doc/book/src/old/AMQP-.NET-Messaging-Client.xml
delete mode 100644 qpid/doc/book/src/old/AMQP-C++-Messaging-Client.xml
delete mode 100644 qpid/doc/book/src/old/AMQP-Java-JMS-Messaging-Client.xml
delete mode 100644 qpid/doc/book/src/old/AMQP-Messaging-Broker-CPP.xml
delete mode 100644 qpid/doc/book/src/old/AMQP-Python-Messaging-Client.xml
delete mode 100644 qpid/doc/book/src/old/AMQP-Ruby-Messaging-Client.xml
delete mode 100644 qpid/doc/book/src/old/AMQP.xml
delete mode 100644 qpid/doc/book/src/old/Binding-URL-Format.xml
delete mode 100644 qpid/doc/book/src/old/Book-Info.xml
delete mode 100644 qpid/doc/book/src/old/Book.xml
delete mode 100644 qpid/doc/book/src/old/Broker-CPP.xml
delete mode 100644 qpid/doc/book/src/old/Broker-Java.xml
delete mode 100644 qpid/doc/book/src/old/Clients.xml
delete mode 100644 qpid/doc/book/src/old/Connection-URL-Format.xml
delete mode 100644 qpid/doc/book/src/old/Download.xml
delete mode 100644 qpid/doc/book/src/old/Excel-AddIn.xml
delete mode 100644 qpid/doc/book/src/old/FAQ.xml
delete mode 100644 qpid/doc/book/src/old/Getting-Started.xml
delete mode 100644 qpid/doc/book/src/old/How-to-Use-JNDI.xml
delete mode 100644 qpid/doc/book/src/old/InfoPlugin.xml
delete mode 100644 qpid/doc/book/src/old/Introduction.xml
delete mode 100644 qpid/doc/book/src/old/Java-Broker-StatusLogMessages.xml
delete mode 100644 qpid/doc/book/src/old/Java-JMS-Selector-Syntax.xml
delete mode 100644 qpid/doc/book/src/old/Management-Design-notes.xml
delete mode 100644 qpid/doc/book/src/old/NET-User-Guide.xml
delete mode 100644 qpid/doc/book/src/old/PythonBrokerTest.xml
delete mode 100644 qpid/doc/book/src/old/QMan-Qpid-Management-bridge.xml
delete mode 100644 qpid/doc/book/src/old/Qpid-ACLs.xml
delete mode 100644 qpid/doc/book/src/old/Qpid-Book.xml
delete mode 100644 qpid/doc/book/src/old/Qpid-Compatibility-And-Interoperability-Book.xml
delete mode 100644 qpid/doc/book/src/old/SASL-Compatibility.xml
delete mode 100644 qpid/doc/book/src/old/SSL.xml
delete mode 100644 qpid/doc/book/src/old/Security-Plugins.xml
delete mode 100644 qpid/doc/book/src/old/System-Properties.xml
delete mode 100644 qpid/doc/book/src/old/Using-Qpid-with-other-JNDI-Providers.xml
delete mode 100644 qpid/doc/book/src/old/WCF.xml
delete mode 100644 qpid/doc/book/src/old/schemas.xml
delete mode 100644 qpid/doc/book/src/programming/Makefile
delete mode 100644 qpid/doc/book/src/programming/Message-Groups-Guide.xml
delete mode 100644 qpid/doc/book/src/programming/Programming-In-Apache-Qpid.xml
delete mode 100644 qpid/doc/book/src/qmf/QmfBook.xml
delete mode 100644 qpid/doc/book/src/qmf/QmfIntroduction.xml
delete mode 100644 qpid/doc/book/xsl/html-custom.xsl
delete mode 100644 qpid/doc/dev-readme/QPID-Component-README.odg
delete mode 100644 qpid/doc/dev-readme/QPID-Component-README.pdf
delete mode 100644 qpid/doc/dev-readme/README.txt
delete mode 100644 qpid/doc/website/README.txt
delete mode 100644 qpid/etc/LICENSE
delete mode 100644 qpid/etc/NOTICE
delete mode 100644 qpid/etc/svn-auto-props
delete mode 100644 qpid/extras/dispatch/README
delete mode 100644 qpid/packaging/windows/INSTALL_NOTES.html
delete mode 100644 qpid/packaging/windows/LICENSE.rtf
delete mode 100644 qpid/packaging/windows/build_installer.bat
delete mode 100644 qpid/packaging/windows/installer.proj
delete mode 100644 qpid/packaging/windows/qpid-icon.ico
delete mode 100644 qpid/packaging/windows/qpid-install-background.bmp
delete mode 100644 qpid/packaging/windows/qpid-install-banner.bmp
delete mode 100644 qpid/packaging/windows/qpidc.wxs
delete mode 100644 qpid/review/LICENSE
delete mode 100644 qpid/review/NOTICE
delete mode 100755 qpid/review/agenda.py
delete mode 100755 qpid/review/changeLogToWiki.py
delete mode 100644 qpid/review/jiraRSS2wiki.xsl
delete mode 100644 qpid/review/svnlog2wiki.xsl
delete mode 100644 qpid/sandbox/models/fedsim/__init__.py
delete mode 100644 qpid/sandbox/models/fedsim/fedsim.py
delete mode 100644 qpid/sandbox/models/fedsim/testBig.py
delete mode 100644 qpid/sandbox/models/fedsim/testRing.py
delete mode 100644 qpid/sandbox/models/fedsim/testStar.py
delete mode 100644 qpid/sandbox/models/fedsim/testStarAdd.py
delete mode 100644 qpid/wcf/LICENSE.txt
delete mode 100644 qpid/wcf/NOTICE.txt
delete mode 100644 qpid/wcf/QpidWcf.sln
delete mode 100644 qpid/wcf/ReadMe.txt
delete mode 100644 qpid/wcf/samples/Channel/AppConfig/ConfigDemo.cs
delete mode 100644 qpid/wcf/samples/Channel/AppConfig/ConfigDemo.csproj
delete mode 100644 qpid/wcf/samples/Channel/HelloWorld/HelloWorld.cs
delete mode 100644 qpid/wcf/samples/Channel/HelloWorld/HelloWorld.csproj
delete mode 100644 qpid/wcf/samples/Channel/WCFToWCFDirect/Client/Client.cs
delete mode 100644 qpid/wcf/samples/Channel/WCFToWCFDirect/Client/Client.csproj
delete mode 100644 qpid/wcf/samples/Channel/WCFToWCFDirect/Client/Properties/AssemblyInfo.cs
delete mode 100644 qpid/wcf/samples/Channel/WCFToWCFDirect/Service/Properties/AssemblyInfo.cs
delete mode 100644 qpid/wcf/samples/Channel/WCFToWCFDirect/Service/Service.cs
delete mode 100644 qpid/wcf/samples/Channel/WCFToWCFDirect/Service/Service.csproj
delete mode 100644 qpid/wcf/samples/Channel/WCFToWCFDirect/WCFToWCFDirect.sln
delete mode 100644 qpid/wcf/samples/Channel/WCFToWCFPubSub/Another_Topic_Consumer/Another_Topic_Consumer.cs
delete mode 100644 qpid/wcf/samples/Channel/WCFToWCFPubSub/Another_Topic_Consumer/Another_Topic_Consumer.csproj
delete mode 100644 qpid/wcf/samples/Channel/WCFToWCFPubSub/Another_Topic_Consumer/Properties/AssemblyInfo.cs
delete mode 100644 qpid/wcf/samples/Channel/WCFToWCFPubSub/Topic_Consumer/Properties/AssemblyInfo.cs
delete mode 100644 qpid/wcf/samples/Channel/WCFToWCFPubSub/Topic_Consumer/Topic_Consumer.cs
delete mode 100644 qpid/wcf/samples/Channel/WCFToWCFPubSub/Topic_Consumer/Topic_Consumer.csproj
delete mode 100644 qpid/wcf/samples/Channel/WCFToWCFPubSub/Topic_Producer/Properties/AssemblyInfo.cs
delete mode 100644 qpid/wcf/samples/Channel/WCFToWCFPubSub/Topic_Producer/Topic_Producer.cs
delete mode 100644 qpid/wcf/samples/Channel/WCFToWCFPubSub/Topic_Producer/Topic_Producer.csproj
delete mode 100644 qpid/wcf/samples/Channel/WCFToWCFPubSub/WCFToWCFPubSub.sln
delete mode 100644 qpid/wcf/samples/Integration/Drain/Drain.cs
delete mode 100644 qpid/wcf/samples/Integration/Drain/Drain.csproj
delete mode 100644 qpid/wcf/samples/Integration/Integration.sln
delete mode 100644 qpid/wcf/samples/Integration/Spout/Spout.cs
delete mode 100644 qpid/wcf/samples/Integration/Spout/Spout.csproj
delete mode 100644 qpid/wcf/samples/Integration/Util/Options.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/AmqpTypes/AmqpBoolean.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/AmqpTypes/AmqpInt.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/AmqpTypes/AmqpProperties.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/AmqpTypes/AmqpString.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/AmqpTypes/AmqpType.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/AmqpTypes/AmqpTypes.csproj
delete mode 100644 qpid/wcf/src/Apache/Qpid/AmqpTypes/AmqpUbyte.cs
delete mode 100755 qpid/wcf/src/Apache/Qpid/AmqpTypes/CreateNetModule.bat
delete mode 100644 qpid/wcf/src/Apache/Qpid/AmqpTypes/Properties/AssemblyInfo.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/AmqpTypes/PropertyName.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/AmqpBinaryBinding.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/AmqpBinaryBindingCollectionElement.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/AmqpBinaryBindingConfigurationElement.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/AmqpBinding.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/AmqpBindingCollectionElement.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/AmqpBindingConfigurationElement.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/AmqpChannelFactory.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/AmqpChannelHelpers.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/AmqpChannelListener.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/AmqpCredential.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/AmqpCredentialType.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/AmqpSecurity.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/AmqpSecurityElement.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/AmqpSecurityMode.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/AmqpTransportBindingElement.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/AmqpTransportChannel.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/AmqpTransportSecurity.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/Channel.csproj
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/ConnectionManager.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/Properties/AssemblyInfo.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/RawMessage.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/RawMessageEncoder.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/RawMessageEncoderFactory.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/RawMessageEncodingBindingElement.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/RawXmlReader.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/Channel/RawXmlWriter.cs
delete mode 100644 qpid/wcf/src/Apache/Qpid/DtcPlugin/DtcPlugin.cpp
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/AmqpConnection.cpp
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/AmqpConnection.h
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/AmqpMessage.cpp
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/AmqpMessage.h
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/AmqpSession.cpp
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/AmqpSession.h
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/AssemblyInfo.cpp
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/CompletionWaiter.cpp
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/CompletionWaiter.h
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/DtxResourceManager.cpp
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/DtxResourceManager.h
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/InputLink.cpp
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/InputLink.h
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/Interop.vcproj
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/MessageBodyStream.cpp
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/MessageBodyStream.h
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/MessageWaiter.cpp
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/MessageWaiter.h
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/OutputLink.cpp
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/OutputLink.h
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/QpidAddress.cpp
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/QpidAddress.h
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/QpidException.h
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/QpidMarshal.h
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/XaTransaction.cpp
delete mode 100644 qpid/wcf/src/Apache/Qpid/Interop/XaTransaction.h
delete mode 100644 qpid/wcf/src/wcfnet.snk
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/AsyncTest.cs
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/BasicTransactionTest.cs
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/ChannelAbortCommitTest.cs
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/ChannelContextParameters.cs
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/ChannelEntity.cs
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/ChannelReceiver.cs
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/ChannelSender.cs
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/CustomAmqpBindingTest.cs
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/FunctionalTests.csproj
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/IGenericObjectService.cs
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/IInteropService.cs
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/IQueuedDatagramService1.cs
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/IQueuedDatagramService2.cs
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/IQueuedDatagramService3.cs
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/IQueuedServiceUsingTSRAttribute.cs
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/IQueuedServiceUsingTransactionScope.cs
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/MessageBodyTest.cs
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/MessageClient.cs
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/MessageProperties.txt
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/MessagePropertiesTest.cs
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/MessageService.cs
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/MultipleEndpointsSameQueueTest.cs
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/Properties/AssemblyInfo.cs
delete mode 100755 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/RunTests.bat
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/Functional/Util.cs
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/WcfPerftest/RawBodyUtility.cs
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/WcfPerftest/WcfPerftest.cs
delete mode 100644 qpid/wcf/test/Apache/Qpid/Test/Channel/WcfPerftest/WcfPerftest.csproj
delete mode 100644 qpid/wcf/tools/QCreate/QCreate.cpp
delete mode 100644 qpid/wcf/tools/QCreate/QCreate.sln
delete mode 100644 qpid/wcf/tools/QCreate/QCreate.vcproj
delete mode 100644 qpid/wcf/tools/QCreate/ReadMe.txt
delete mode 100644 qpid/wcf/tools/QCreate/stdafx.cpp
delete mode 100644 qpid/wcf/tools/QCreate/stdafx.h
delete mode 100644 qpid/wcf/tools/QCreate/targetver.h
diff --git a/qpid/LICENSE b/qpid/LICENSE
deleted file mode 100644
index 2cbe987a10..0000000000
--- a/qpid/LICENSE
+++ /dev/null
@@ -1,8 +0,0 @@
-Please see the individual LICENSE[.txt] files in each main directory, e.g:
-
-cpp/LICENSE
-java/LICENSE
-python/LICENSE.txt
-tools/LICENSE.txt
-tools/src/java/LICENSE
-wcf/LICENSE.txt
diff --git a/qpid/NOTICE b/qpid/NOTICE
deleted file mode 100644
index 39a002e222..0000000000
--- a/qpid/NOTICE
+++ /dev/null
@@ -1,8 +0,0 @@
-Please see the individual NOTICE[.txt] files in each main directory, e.g:
-
-cpp/NOTICE
-java/NOTICE
-python/NOTICE.txt
-tools/NOTICE.txt
-tools/src/java/NOTICE
-wcf/NOTICE.txt
diff --git a/qpid/QPID_VERSION.txt b/qpid/QPID_VERSION.txt
deleted file mode 100644
index c74e8a041a..0000000000
--- a/qpid/QPID_VERSION.txt
+++ /dev/null
@@ -1 +0,0 @@
-0.35
diff --git a/qpid/README.txt b/qpid/README.txt
deleted file mode 100644
index ccd92c757b..0000000000
--- a/qpid/README.txt
+++ /dev/null
@@ -1,57 +0,0 @@
-Apache Qpid is a high-speed, language independent, platform
-independent enterprise messaging system. It currently provides two
-messaging brokers (one implemented in C++, one implemented in Java),
-and messaging client libraries for Java JMS, C++, C# .NET, Python,
-Ruby, and WCF. The messaging protocol for Apache Qpid is AMQP
-(Advanced Message Queuing Protocol). You can read more about Qpid
-here:
-
- http://qpid.apache.org/
-
-Documentation can be found here:
-
- http://qpid.apache.org/documentation.html
-
-Qpid includes many components, which are built in various ways. Each
-component has a README.txt. Here are the subdirectories that contain
-the basic components:
-
-Messaging Broker (implemented in C++):
-
- ./cpp
-
-Messaging Broker (implemented in Java):
-
- ./java
-
-C++ Messaging Client Libraries
-
- ./cpp
-
-Java JMS Client Libraries
-
- ./java/client
-
-Python Client Libraries
-
- ./python
-
-WCF Support
-
- ./wcf
-
-Management Tools (implemented in Python):
-
- ./tools
-
-Management Tools (implemented in Java):
-
- ./java/management
-
-Documentation:
-
- ./doc
-
-
-Further information about the organization of Qpid source components may
-be found in ./doc/dev-readme/QPID-Component-README.pdf.
diff --git a/qpid/bin/LICENSE b/qpid/bin/LICENSE
deleted file mode 100644
index bc46b77047..0000000000
--- a/qpid/bin/LICENSE
+++ /dev/null
@@ -1,206 +0,0 @@
-=========================================================================
-== Apache License ==
-=========================================================================
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
diff --git a/qpid/bin/NOTICE b/qpid/bin/NOTICE
deleted file mode 100644
index 05f39ba176..0000000000
--- a/qpid/bin/NOTICE
+++ /dev/null
@@ -1,8 +0,0 @@
-// ------------------------------------------------------------------
-// NOTICE file corresponding to the section 4d of The Apache License,
-// Version 2.0, in this case for Qpid bin scripts
-// ------------------------------------------------------------------
-
-Apache Qpid
-Copyright 2006-2008 Apache Software Foundation
-
diff --git a/qpid/bin/install-cpp-python b/qpid/bin/install-cpp-python
deleted file mode 100755
index d43e8e4899..0000000000
--- a/qpid/bin/install-cpp-python
+++ /dev/null
@@ -1,76 +0,0 @@
-#!/bin/sh
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-
-#
-# Install C++ build and python tools to the standard places in a Unix buld
-# WARNING: Will destroy any existing installation!
-#
-
-# NOTE: build must be configured like this:
-# ../qpid/cpp/configure --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib64
-# NOTE: Must run as root.
-
-usage() {
- cat <
--p : Prefix to install python
--s : Skip C++ installation
-EOF
-
- exit 1
-}
-
-fail() { echo $*; exit 1; }
-
-while getopts "ps" opt; do
- case $opt in
- p) PY_PREFIX="--prefix $OPTARG";;
- s) SKIP_CPP=1;;
- *) usage;;
- esac
-done
-shift `expr $OPTIND - 1`
-BUILD=$1
-SRC=$(dirname $0)/..
-
-# Install python
-cd $SRC || fail "No such directory: $SRC"
-for d in python tools extras/qmf; do
- (
- cd $d || fail "No such directory: $(pwd)/$d"
- ./setup.py install || fail Python install failed in $(pwd)
- )
-done
-
-if test $SKIP_CPP; then exit; fi
-
-test -n "$BUILD" || { echo "No build directory."; usage; }
-test -d "$BUILD" || fail "No such directory: $BUILD"
-SRC=$(dirname $BUILD)
-
- # Install C++
-cd $BUILD
-make -j1 install || fail "C++ install failed in $BUILD"
-
-# NOTE: setup.py does not uninstall, but you can get a list of files installed with:
-# setup.py install --record
-
-
diff --git a/qpid/bin/mvn-deploy-qpid-java.sh b/qpid/bin/mvn-deploy-qpid-java.sh
deleted file mode 100755
index 3c2a9fd05f..0000000000
--- a/qpid/bin/mvn-deploy-qpid-java.sh
+++ /dev/null
@@ -1,71 +0,0 @@
-#
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-#
-
-#!/bin/sh
-
-qpid_version=$1
-repo=$2
-
-if [ -z "$qpid_version" -o -z "$repo" ]; then
- echo "Usage: mvn-deploy-qpid-java.sh "
- exit 1
-fi
-
-set -xe
-
-
-build_dir=build/lib
-
-deploy_artifact() {
- mvn deploy:deploy-file -DuniqueVersion=false -Durl=$repo -Dfile=${build_dir}/$1-${qpid_version}.jar -DgroupId=org.apache.qpid -DartifactId=$1 -Dversion=${qpid_version} -Dpackaging=jar
-}
-
-deploy_artifact_with_classifier() {
- mvn deploy:deploy-file -DuniqueVersion=false -Durl=$repo -Dfile=${build_dir}/$1-$2-${qpid_version}.jar -DgroupId=org.apache.qpid -DartifactId=$1 -Dclassifier=$2 -Dversion=${qpid_version} -Dpackaging=jar
-}
-
-deploy_artifact qpid-broker
-deploy_artifact_with_classifier qpid-broker-plugins tests
-deploy_artifact_with_classifier qpid-broker tests
-deploy_artifact qpid-client-example
-deploy_artifact_with_classifier qpid-client-example tests
-deploy_artifact qpid-client
-deploy_artifact_with_classifier qpid-client tests
-deploy_artifact qpid-common
-deploy_artifact_with_classifier qpid-common tests
-deploy_artifact qpid-integrationtests
-deploy_artifact_with_classifier qpid-integrationtests tests
-deploy_artifact qpid-junit-toolkit
-deploy_artifact_with_classifier qpid-junit-toolkit tests
-deploy_artifact qpid-management-eclipse-plugin
-deploy_artifact_with_classifier qpid-management-eclipse-plugin tests
-deploy_artifact qpid-perftests
-deploy_artifact_with_classifier qpid-perftests tests
-deploy_artifact qpid-systests
-deploy_artifact_with_classifier qpid-systests tests
-deploy_artifact qpid-testkit
-deploy_artifact_with_classifier qpid-testkit tests
-deploy_artifact qpid-tools
-deploy_artifact_with_classifier qpid-tools tests
-
-build_dir=build/lib/plugins
-
-deploy_artifact qpid-broker-plugins
diff --git a/qpid/bin/set_svn_properties.sh b/qpid/bin/set_svn_properties.sh
deleted file mode 100755
index cc29490eea..0000000000
--- a/qpid/bin/set_svn_properties.sh
+++ /dev/null
@@ -1,133 +0,0 @@
-#
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-# This script will set the proper svn properties on all the files in the tree.
-# It pretty much requires a gnu compatible xargs (for the -r flag). Running
-# on Linux is probably the best option, or gnuxargs is available for OS X from
-# darwinports.
-
-
-find . -name "*.java" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "*.java" | grep -v ".svn" | xargs -n 1 -r svn propset svn:keywords "Rev Date"
-
-find . -name "*.py" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-
-find . -name "*.rb" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-
-find . -name "*.xml" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/xml
-find . -name "*.xml" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "*.xml" | grep -v ".svn" | xargs -n 1 -r svn propset svn:keywords "Rev Date"
-
-find . -name "*.xsl" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/xml
-find . -name "*.xsl" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "*.xsl" | grep -v ".svn" | xargs -n 1 -r svn propset svn:keywords "Rev Date"
-
-find . -name "*.xsd" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/xml
-find . -name "*.xsd" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "*.xsd" | grep -v ".svn" | xargs -n 1 -r svn propset svn:keywords "Rev Date"
-
-find . -name "*.wsdl" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/xml
-find . -name "*.wsdl" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "*.wsdl" | grep -v ".svn" | xargs -n 1 -r svn propset svn:keywords "Rev Date"
-
-find . -name "*.properties" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain
-find . -name "*.properties" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "*.properties" | grep -v ".svn" | xargs -n 1 -r svn propset svn:keywords "Rev Date"
-
-find . -name "*.txt" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "*.txt" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain
-
-find . -name "*.htm*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "*.htm*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/html
-find . -name "*.htm*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:keywords "Rev Date"
-
-find . -name "README*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "README*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain
-
-find . -name "LICENSE*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "LICENSE*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain
-
-find . -name "NOTICE*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "NOTICE*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain
-
-find . -name "TODO*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "TODO*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain
-
-find . -name "KEYS*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "KEYS*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain
-
-find . -name "*.png" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type image/png
-find . -name "*.gif" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type image/gif
-find . -name "*.jpg" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type image/jpeg
-find . -name "*.jpeg" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type image/jpeg
-
-
-find . -name "*.scdl" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "*.scdl" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/xml
-
-find . -name "*.fragment" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "*.fragment" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/xml
-
-find . -name "*.componentType" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "*.componentType" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/xml
-
-find . -name "*.wsdd" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/xml
-find . -name "*.wsdd" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-
-find . -name "sca.subsystem" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/xml
-find . -name "sca.subsystem" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "Tuscany-model.config" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/xml
-find . -name "Tuscany-model.config" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-
-
-
-find . -name "*.cpp" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "*.cpp" | grep -v ".svn" | xargs -n 1 -r svn propset svn:keywords "Rev Date"
-
-find . -name "*.c" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "*.c" | grep -v ".svn" | xargs -n 1 -r svn propset svn:keywords "Rev Date"
-
-find . -name "*.h" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "*.h" | grep -v ".svn" | xargs -n 1 -r svn propset svn:keywords "Rev Date"
-
-find . -name "*.am" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "*.am" | grep -v ".svn" | xargs -n 1 -r svn propset svn:keywords "Rev Date"
-
-find . -name "ChangeLog*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "ChangeLog*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain
-
-find . -name "*.sh" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "*.sh" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain
-find . -name "*.sh" | grep -v ".svn" | xargs -n 1 -r svn propset svn:executable ""
-
-find . -name "*.bat" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style CRLF
-find . -name "*.bat" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain
-
-find . -name "*.cmd" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "*.cmd" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain
-find . -name "*.cmd" | grep -v ".svn" | xargs -n 1 -r svn propset svn:executable ""
-
-find . -name "INSTALL*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "INSTALL*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain
-find . -name "COPYING*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "COPYING*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain
-find . -name "NEWS*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:eol-style native
-find . -name "NEWS*" | grep -v ".svn" | xargs -n 1 -r svn propset svn:mime-type text/plain
-
diff --git a/qpid/buildtools/LICENSE b/qpid/buildtools/LICENSE
deleted file mode 100644
index bc46b77047..0000000000
--- a/qpid/buildtools/LICENSE
+++ /dev/null
@@ -1,206 +0,0 @@
-=========================================================================
-== Apache License ==
-=========================================================================
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
diff --git a/qpid/buildtools/NOTICE b/qpid/buildtools/NOTICE
deleted file mode 100644
index 5813a7a09a..0000000000
--- a/qpid/buildtools/NOTICE
+++ /dev/null
@@ -1,8 +0,0 @@
-// ------------------------------------------------------------------
-// NOTICE file corresponding to the section 4d of The Apache License,
-// Version 2.0, in this case for Qpid buildTools
-// ------------------------------------------------------------------
-
-Apache Qpid
-Copyright 2006-2008 Apache Software Foundation
-
diff --git a/qpid/buildtools/buildCreator/build.config b/qpid/buildtools/buildCreator/build.config
deleted file mode 100644
index cb45e99a6e..0000000000
--- a/qpid/buildtools/buildCreator/build.config
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
- M4.0-beta
-
-
-
-
-
-
-
- qpid.build
-
-
diff --git a/qpid/buildtools/buildCreator/buildCreator.py b/qpid/buildtools/buildCreator/buildCreator.py
deleted file mode 100755
index 0a26ce09b0..0000000000
--- a/qpid/buildtools/buildCreator/buildCreator.py
+++ /dev/null
@@ -1,1472 +0,0 @@
-#!/usr/bin/env python
-#
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-import os
-import re
-import datetime
-import urllib
-import sys
-import string
-
-from xml.dom import minidom
-from optparse import OptionParser
-
-if map(int, string.split(string.split(sys.version)[0], ".")) < [2, 4, 0]:
- print ("subprocess is required for this tool and is not present in versions prior to 2.4.0")
- try:
- import subprocess
- except ImportError:
- print ("subprocess module not found please install it locally or upgrade your python version")
- sys.exit(1)
-
-import subprocess
-from subprocess import Popen
-
-TOOL_NAME="buildCreator.py"
-
-#Default Build script
-DEFAULT_BUILD="build.config"
-
-# Path locations
-DEFAULT_ROOTDIR="builder"
-SOURCE_DIR="src"
-PATCH_DIR="patch"
-BUILD_DIR="build"
-RELEASE_DIR="release"
-
-# Command Binaries
-SVN='svn'
-SVN_BIN='svn'
-HTTP='http'
-FTP='ftp'
-WGET_BIN='wget'
-FILE='file'
-CP_BIN='cp'
-PATCH_BIN='patch'
-FILE_BIN='file'
-LS_BIN='ls'
-TAR_BIN='tar'
-BZIP2_BIN='bzip2'
-UNZIP_BIN='unzip'
-ECHO_BIN='echo'
-SVNVERSION_BIN='svnversion'
-
-
-
-GZIP_DATA='gzip compressed data'
-BZIP2_DATA='bzip2 compressed data'
-ZIP_DATA='Zip archive data'
-TAR_DATA='POSIX tar archive'
-DIFF_FILE="'diff' output text"
-
-#Build Targets
-DISTCLEAN='distclean'
-CLEAN='clean'
-RETRIEVE='retrieve'
-PREPARE='prepare'
-PATCH='patch'
-SHOWBUILDS='showbuilds'
-BUILD='build'
-RELEASE='release'
-FULL='full'
-HELP='help'
-DEFAULT_TARGET=FULL
-
-# XML Elements toplevel
-BUILDER="builder"
-ENVIRONMENT="environment"
-SOURCES="sources"
-SOURCE="source"
-PATCHES="patches"
-PATCH="patch"
-BUILDS="builds"
-INCLUDE="include"
-DEPENDENCY='dependency'
-TARGETS='targets'
-SCRIPT='script'
-
-# XML Elements - Source/Patch elements
-NAME="name"
-TYPE="type"
-URL="url"
-REVISION="revision"
-ROOTDIR="root"
-VERSION="version"
-PREFIX='prefix'
-PATH='path'
-
-PATH_SEP=os.sep
-
-_source=None
-_target=DEFAULT_BUILD
-_log = True
-_verbose = False
-_debug = False
-_ignoreErrors = False
-
-_charIndex = 0
-_waitingChars = ['-', '/' , '|', '\\']
-
-def showUsage():
- print TOOL_NAME+" [-c|--configure ] [-v| --verbose] [-q|--quiet] [-i|--ignore-errors] [] [options]"
- print "Available Targets:"
- print " distclean [source] - Remove all or specified retrieved source"
- print " clean [source] - Remove all or specified source build directory"
- print " retrieve [source] - Retrieve all or specified source"
- print " prepare [source] - Prepare all or specified source : i.e. extract archives"
- print " patch [source] - Patch all or specified source"
- print " showbuilds - List all builds"
- print " build [build] - Perform the build scripts for all or specified build"
- print " release [build] - Perform the release scripts for all or specified source"
- print " full - Perfrom clean, retrieve, prepare, patch, build, release for all builds (DEFAULT)"
-
-def main():
- global _log, _verbose, _debug, _rootDir, _target, _source, _baseConfiguration, _ignoreErrors
-
- # Load the
- parser = OptionParser()
- parser.add_option("-c", "--config", dest="config",
- action="store", default=DEFAULT_BUILD,
- help="set configuration file : default = " + DEFAULT_BUILD)
-
- parser.add_option("-v", "--verbose", dest="verbose",
- action="store_true", default=False, help="enable verbose output")
-
- parser.add_option("-d", "--debug", dest="debug",
- action="store_true", default=False, help="enable debug output")
-
- parser.add_option("-q", "--quiet", dest="quiet",
- action="store_false", default=True, help="Enable quiet ouptut")
-
- parser.add_option("-i", "--ignore-errors", dest="ignoreErrors",
- action="store_true", default=False, help="Ignore errors")
-
-
- (options, args) = parser.parse_args()
-
- _verbose = options.verbose
- _debug = options.debug
- _log = options.quiet
- _ignoreErrors = options.ignoreErrors
-
- log("Logging Enabled")
- verbose("Verbose Output Enabled")
- debug("Debug Enabled")
-
- if (len(args) > 2):
- showUsage()
- sys.exit(1)
- else:
- # NOTE : Would be good to be able to do builder.py clean build release
- if (len(args) > 0 ):
- # Override the default target
- _target = checkTarget(args[0])
- # limit the comand to just the specified source
- if (len(args) > 1 ):
- _source = args[1]
- else:
- _source = None
- else:
- _target = FULL
-
-
- _baseConfiguration = loadBaseConfiguration(options.config)
-
- debug ("Loading Environment")
- prepareEnvironment(_baseConfiguration.getElementsByTagName(ENVIRONMENT)[0])
-
- if _target == DISTCLEAN:
- distclean()
-
- if _target == CLEAN or _target == FULL:
- clean()
-
- if _target == RETRIEVE or _target == FULL:
- try:
- retrieve()
- except KeyboardInterrupt:
- log ("User Interrupted preparation")
- sys.exit(0)
-
- if _target == PREPARE or _target == FULL:
- prepare()
-
- if _target == PATCH or _target == FULL:
- patch()
-
- if _target == SHOWBUILDS:
- showBuilds()
-
- if _target == BUILD or _target == FULL:
- build()
-
- if _target == RELEASE or _target == FULL:
- release()
-
- log("Complete")
-
-def checkTarget(target):
-
- if target == HELP:
- showUsage()
- sys.exit(0)
-
- if target == DISTCLEAN:
- return DISTCLEAN
-
- if target == CLEAN:
- return CLEAN
-
- if target == RETRIEVE:
- return RETRIEVE
-
- if target == PREPARE:
- return PREPARE
-
- if target == PATCH:
- return PATCH
-
- if target == SHOWBUILDS:
- return SHOWBUILDS
-
- if target == BUILD:
- return BUILD
-
- if target == RELEASE:
- return RELEASE
-
- if target == FULL:
- return FULL
-
- warn("Target: '"+target+"' not valid")
- showUsage()
- sys.exit(1)
-
-
-################################################################################
-#
-# Environment
-#
-################################################################################
-def prepareEnvironment(env):
- global _rootDir
-
- rootdir = env.getElementsByTagName(ROOTDIR)
- if (rootdir.length > 0):
- _rootDir = getValue(rootdir[0])
- else:
- verbose ("Using default build dir: "+DEFAULT_ROOTDIR)
- _rootDir = os.getcwd() + PATH_SEP + DEFAULT_ROOTDIR
-
- if _rootDir == "":
- verbose (ROOTDIR+" value is empty. Please specify a value for "+ ROOTDIR)
- attemptExit(0)
-
- if (os.path.exists(_rootDir)):
- verbose ("Using Existing root dir: "+_rootDir)
- else:
- mkdir(_rootDir)
-
-################################################################################
-#
-# Clean Methods
-#
-################################################################################
-def clean():
- global _source
- sources = getSourceList()
-
- if len(sources) > 0:
- log ("Removing built code...")
- performed = False
- for source in sources:
- if _source != None:
- if getName(source) == _source:
- performed = True
- removeDir(source, BUILD_DIR)
- else:
- removeDir(source, BUILD_DIR)
-
- if _source == None:
- deleteDir(_rootDir + PATH_SEP + BUILD_DIR)
-
- builds = getBuildList()
- if len(builds) > 0:
- log ("Removing built releases...")
- for build in builds:
- if _source != None:
- if getName(build) == _source:
- performed = True
- removeDir(build, RELEASE_DIR)
- else:
- removeDir(build, RELEASE_DIR)
- if _source == None:
- deleteDir(_rootDir + PATH_SEP + RELEASE_DIR)
-
- if _source != None:
- if not performed:
- fatal("No such source:" + _source);
-
-
-
-def distclean():
- sources = getSourceList()
-
- if len(sources) > 0:
- log ("Removing source...")
- for source in sources:
- if _source != None:
- if getName(source) == _source:
- performed = True
- removeDir(source, SOURCE_DIR)
- else:
- removeDir(source, SOURCE_DIR)
-
- if _source == None:
- deleteDir(_rootDir + PATH_SEP + SOURCE_DIR)
-
- log ("Removing built code...")
- for source in sources:
- if _source != None:
- if getName(source) == _source:
- performed = True
- removeDir(source, BUILD_DIR)
- else:
- removeDir(source, BUILD_DIR)
- if _source == None:
- deleteDir(_rootDir + PATH_SEP + BUILD_DIR)
-
- patches =getPatchList()
- if len(patches) > 0:
- log ("Removing patches...")
- for patch in patches:
- if _source != None:
- if getName(patch) == _source:
- performed = True
- removeDir(patch, PATCH_DIR)
- else:
- removeDir(patch, PATCH_DIR)
- if _source == None:
- deleteDir(_rootDir + PATH_SEP + PATCH_DIR)
-
-
- builds = getBuildList()
- if len(builds) > 0:
- log ("Removing built releases...")
- for build in builds:
- if _source != None:
- if getName(build) == _source:
- performed = True
- removeDir(build, RELEASE_DIR)
- else:
- removeDir(build, RELEASE_DIR)
- if _source == None:
- deleteDir(_rootDir + PATH_SEP + RELEASE_DIR)
-
-
- if _source == None:
- deleteDir(_rootDir)
-
- if _source != None:
- if not performed:
- fatal("No such source:" + _source);
-
-
-
-def removeDir(source, rootdir):
- name = getName(source)
- deleteDir(_rootDir + PATH_SEP + rootdir + PATH_SEP + name)
-
-################################################################################
-#
-# Retrieve Methods
-#
-################################################################################
-def retrieve():
- global _source
- sources = getSourceList()
-
- # Retreive Source
- performed=False
- if len(sources) > 0:
- log ("Retrieving source...")
-
- mkdir(_rootDir + PATH_SEP + SOURCE_DIR)
-
- for source in sources:
- if _source != None:
- if getName(source) == _source:
- performed = True
- downloadSource(source, SOURCE_DIR)
- else:
- downloadSource(source, SOURCE_DIR)
-
- # Retreive Patches
- patches = getPatchList()
- if len(patches) > 0:
-
- log ("Retrieving patches...")
-
- mkdir(_rootDir + PATH_SEP + PATCH_DIR)
-
- for patch in patches:
- if _source != None:
- if getName(patch) == _source:
- performed = True
- downloadSource(patch, PATCH_DIR)
- else:
- downloadSource(patch, PATCH_DIR)
-
- if _source != None:
- if not performed:
- fatal("No such patch:" + _source);
-
-
-################################################################################
-#
-# Prepare Methods
-#
-################################################################################
-
-def prepare():
- verbose("Prepare")
-
- mkdir(_rootDir + PATH_SEP + BUILD_DIR)
-
- sources = getSourceList()
- performed = False
- if len(sources) > 0:
- log ("Preparing source...")
- for source in sources:
- if _source != None:
- if getName(source) == _source:
- log_no_newline("Preparing "+getName(source)+": ")
- performed = True
- postProcess(source, SOURCE_DIR)
- else:
- log_no_newline("Preparing "+getName(source)+": ")
- postProcess(source, SOURCE_DIR)
- if _source != None:
- if not performed:
- fatal("No such source:" + _source);
-
- patches = getPatchList()
- if len(patches) > 0:
- log ("Preparing patches...")
- for patch in patches:
- if _source != None:
- if getName(patch) == _source:
- performed = True
- log("Preparing "+getName(patch))
- postProcess(patch, PATCH_DIR)
- else:
- log("Preparing "+getName(patch))
- postProcess(patch, PATCH_DIR)
-
- if _source != None:
- if not performed:
- fatal("No such patch:" + _source);
-
-
-def postProcess(item, destination):
- name = getName(item)
- type = getType(item)
-
- verbose("Post Processing:"+name)
-
- targetdir = _rootDir + PATH_SEP + destination + PATH_SEP + name
-
- builddir = _rootDir + PATH_SEP + BUILD_DIR + PATH_SEP + name
-
-
- if type == SVN:
- # Do we want to perform an export?
-
- #extractcommand=SVN_BIN+" export "+ targetdir +" "+ builddir
- # Use -v just now so we can show progress
- extractcommand=CP_BIN+" -rvf "+ targetdir +" "+ builddir
-
- runCommand(extractcommand, False)
-
- else:
- if type == FILE or type == HTTP or type == FTP:
-
- mkdir(builddir)
-
- # Look at all the files and see if they need unpacks
- for root, dirs, files in os.walk(targetdir, topdown=False):
- for file in files:
- command = FILE_BIN+" "+root+PATH_SEP+file
-
- result = Popen(command, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
- stderr=subprocess.PIPE)
- line = result.stdout.readline()
- firstline=line
- while (line != "" ):
- # process nextline
- line=result.stdout.readline()
-
- result.wait()
-
- if result.returncode != 0:
- fatal("Download (" + name + ") contained unrecognized file type:"+ firstline)
-
-
- extractcommand=""
-
- if firstline.find(GZIP_DATA) != -1:
- extractcommand=TAR_BIN+" -vxzf "+root+PATH_SEP+file+" -C " + builddir
-
- if firstline.find(BZIP2_DATA) != -1:
- extractcommand=TAR_BIN+" -vxjf "+root+PATH_SEP+file+" -C " + builddir
-
- if firstline.find(ZIP_DATA) != -1:
- extractcommand=UNZIP_BIN+" -v "+root+PATH_SEP+file+" -d "+ builddir
-
- if firstline.find(TAR_DATA) != -1:
- extractcommand=TAR_BIN+" -vxf "+root+PATH_SEP+file+" -C "+ builddir
-
- if firstline.find(DIFF_FILE) != -1 or firstline.find("text"):
- extractcommand=CP_BIN+" -r "+root+PATH_SEP+file+" "+ builddir
-
-
-
- if not extractcommand=="":
- log_no_newline("Extracting archive:" + file+": " )
- runCommand(extractcommand, False)
- else:
- fatal("Download (" + name + ") contained unsupported file type:"+ firstline)
-
-
-
-################################################################################
-#
-# Patch Methods
-#
-################################################################################
-def patch():
-
- # Retreive Patches
- patches= getPatchList()
- if len(patches) > 0:
- performed = False
- for patch in patches:
- if _source != None:
- if getName(source) == _source:
- performed = True
- applyPatch(patch)
- else:
- applyPatch(patch)
-
- if _source != None:
- if not performed:
- fatal("No such patch:" + _source);
-
-
-def applyPatch(patch):
- global _rootDir
-
- name = getName(patch)
- type = getType(patch)
- source = getValue(patch.getElementsByTagName(SOURCE)[0])
- if (patch.getElementsByTagName(PREFIX).length > 0):
- prefix = getValue(patch.getElementsByTagName(PREFIX)[0])
- else:
- prefix = None
-
- if (patch.getElementsByTagName(PATH).length > 0):
- path= getValue(patch.getElementsByTagName(PATH)[0])
- else:
- path = None
-
-
- basecommand = PATCH_BIN
-
- if prefix != None:
- basecommand = basecommand + " -p "+prefix
-
- basecommand = basecommand + " -E -d "+ _rootDir + PATH_SEP + BUILD_DIR + PATH_SEP + source + PATH_SEP
-
- if path != None:
- basecommand = basecommand + path
-
- basecommand = basecommand + " < "
-
- patchSource= _rootDir + PATH_SEP + PATCH_DIR + PATH_SEP + name
-
- for root, dirs, files in os.walk(patchSource):
- if '.svn' in dirs:
- dirs.remove('.svn')
- files.sort()
- for patchName in files:
- log("Applying patch '" + name + "'("+patchName+") to " + source)
- runCommandShowError(basecommand + patchSource + PATH_SEP + patchName)
-
-
-################################################################################
-#
-# build Methods
-#
-################################################################################
-def showBuilds():
- builds = getNamesfromBuildList(getBuildList())
- if len(builds) > 0:
- log("Available Builds:")
- for build in builds:
- log(" "+build)
- else:
- log("No builds available")
-
-#
-# Given a list of build elements extract the Name values and return as a list
-#
-def getNamesfromBuildList(list):
- names=[]
- for item in list:
- name = getName(item)
- if name != None:
- names.append(name)
- return names
-
-def build():
- doBuildAction(BUILD)
-
-
-
-################################################################################
-#
-# Release Methods
-#
-################################################################################
-def release():
- log ("Releasing...")
- mkdir(_rootDir + PATH_SEP + RELEASE_DIR)
-
- builds = getBuildList()
-
- for build in builds:
- if _source != None:
- if getName(build) == _source:
- mkdir(_rootDir + PATH_SEP + RELEASE_DIR + PATH_SEP + getName(build))
- else:
- mkdir(_rootDir + PATH_SEP + RELEASE_DIR + PATH_SEP + getName(build))
-
- doBuildAction(RELEASE)
-
-
-
-################################################################################
-#
-# Build Helper Methods
-#
-################################################################################
-
-def doBuildAction(action):
- config = _baseConfiguration
-
- if len(getSourceList()) > 0:
- log("Performing "+ action.title() +"...")
-
- builds = getBuildList()
-
- performed = False
- for build in builds:
- if _source != None:
- if getName(build) == _source:
- performed = True
- performScript(build , action)
- else:
- performScript(build, action)
-
- if _source != None:
- if not performed:
- fatal("No such build:" + _source);
-
-
-def performScript(build, scriptName):
- name = getName(build)
-
- checkDependencies(build)
-
- verbose("Running "+scriptName+":"+name)
-
- targets = build.getElementsByTagName(TARGETS)
-
- if targets.length > 0:
- target = targets[0].getElementsByTagName(scriptName)
-
- if target.length > 1:
- fatal("More than one build target specified")
-
- if target.length == 0:
- fatal("No build target specified")
-
- script = getValue(target[0].getElementsByTagName(SCRIPT)[0])
-
- script = peformSubstitutionsInScript(build, script)
-
- debug(script)
-
- runScript(script)
-
- else:
- fatal("Build "+name+" has no build targets")
-
-
-def checkDependencies(build):
- name = getName(build)
- dependencies = build.getElementsByTagName(DEPENDENCY)
-
- if dependencies > 0:
- for dependency in dependencies :
- sources = dependency.getElementsByTagName(SOURCE)
- if sources.length == 0:
- fatal("No sources specified in dependency block for build:"+name)
- else:
- for source in sources:
- sourceDependency = getValue(source)
- if not (sourceDefined(sourceDependency)):
- fatal("Unable to build "+name+" as specifed dependency("+sourceDependency +") is not available")
-
-def sourceDefined(name):
- for source in getSourceList():
- sourcename = getValue(source.getElementsByTagName(NAME)[0])
- if sourcename == name:
- return True
- return False
-
-
-def runScript(script):
- (returncode, stdout, stderr) = runCommandWithOutput(script)
-
- if _debug:
- for line in stdout:
- debug(line)
- for line in stderr:
- debug(line)
-
- if returncode != 0:
- for line in stdout:
- warn(line)
- for line in stderr:
- warn(line)
-
- warn("Script Failed")
-
- attemptExit(1)
-
-
-################################################################################
-#
-# XML Helper Methods
-#
-################################################################################
-
-def loadBaseConfiguration(config):
- log ("Loading configuration:" + config)
- full = minidom.parse(config)
- return full.getElementsByTagName(BUILDER)[0]
-
-#
-# Assumes that we have a text element and returns the text value.
-#
-def getValue(node):
- if node.childNodes.length > 0:
- return node.childNodes[0].data
- else:
- return ""
-
-def getEnvironment():
- env = _baseConfiguration.getElementsByTagName(ENVIRONMENT)
- if env.length > 0:
- return env[0]
- else:
- return None
-
-#
-# Returns the value of the NAME element contained in the specified item
-#
-def getName(item):
- name = item.getElementsByTagName(NAME)
- if name.length > 0:
- return getValue(name[0])
-
-#
-# Returns the value of the TYPE element contained in the specified item
-#
-def getType(item):
- type = item.getElementsByTagName(TYPE)
- if type.length > 0:
- return getValue(type[0])
-
-#
-# Returns the value of the URL element contained in the specified item
-#
-def getURL(item):
- url = item.getElementsByTagName(URL)
- if url.length > 0:
- return getValue(url[0])
-
-#
-# Return the list of sources in this build configuration
-# If no sources are available then this is logged as a fatal error.
-#
-def getSourceList():
- config = _baseConfiguration
- sourceCount = config.getElementsByTagName(SOURCES).length
- if sourceCount > 0:
- return config.getElementsByTagName(SOURCES)[0].getElementsByTagName(SOURCE)
- else:
- fatal("No source elements defined.")
-#
-# Return the list of patches in this build configuration
-#
-def getPatchList():
- config = _baseConfiguration
- patchCount = config.getElementsByTagName(PATCHES).length
- if patchCount > 0:
- return config.getElementsByTagName(PATCHES)[0].getElementsByTagName(PATCH)
- else:
- return []
-
-# Returns a list of build elements including any any included build files
-# Currently nested build elements are not supported so all builds must be specified via the tag.
-#
-def getBuildList():
- config = _baseConfiguration
-
- builds = config.getElementsByTagName(BUILDS)
- buildcount = builds.length
-
- if buildcount > 0:
- build = builds[0]
- useInclude = build.getElementsByTagName(INCLUDE).length > 0
-
- # If we are using includes then build a list of all the files we need to include
- if useInclude:
- return getIncludeList(build)
-
- else:
- warn("Nested builds not currently supported")
- else:
- fatal("No Builds defined in config")
-
-#
-# Look at all values in the given element and return the list of inlcudes
-#
-def getIncludeList(build):
- includelist=[]
- for include in build.getElementsByTagName(INCLUDE):
- for item in getIncludeValue(getValue(include)):
- includelist.append(item)
-
- return includelist
-
-#
-# Process in the given include value.
-# This is done by performing `ls `
-# This means includes such as 'builds/*.config' will match multiple includes and return all entries
-#
-# Any error in performing the ls is printed and the tool exits (unless ignore errors)
-#
-def getIncludeValue(include):
- debug("Loading Includes:"+include+" ")
-
- command = LS_BIN+" "+include
- (returncode, stdout, stderr) = runCommandWithOutput(command)
-
- if returncode == 0:
- values=[]
- for line in stdout:
- include = loadIncludeFile(line)
- if not include == None:
- values.append(include)
- return values
- else:
- for line in stderr:
- warn(line)
- attemptExit(1)
-
-#
-# Given a file name parse the XML. Any trailing '\n's that the ls command may have added are removed here.
-# The file is checked to ensure that it is a file
-# The first element is returned.
-#
-# TODO: Allow multiple builds per file.
-#
-def loadIncludeFile(file):
- buildFile = minidom.parse(file.rstrip('\n'))
-
- builds = buildFile.getElementsByTagName(BUILDS)
-
- if builds.length != 1:
- warn("Build Configuration does not contain any <"+BUILDS+"> definitions")
- else:
- buildElements = builds[0].getElementsByTagName(BUILD)
- if not buildElements.length > 0:
- warn("Build Configuration does not contain any <"+BUILD+"> definitions")
- else:
- if buildElements.length > 0:
- build = buildElements[0]
- # getElementsByTagName is recursive so this will pick up the sub element build
- # Only use the first element
- namecount = build.getElementsByTagName(NAME).length
- if namecount > 0:
- return build
- else:
- return None
-
-#
-# Given the build target and a script substitute $value entries in script for values in
-# the Environment
-# the Source entries
+
To stop the broker, you can simply type ^C in the
+command prompt window where the broker is running.
+
+
For a full list of options for the broker, you can use the
+--help option.
+
+
Using the Example Programs
+
+
If you installed the example programs, a new environment variable was
+set. QPID_ROOT refers to the Qpid installation directory. The
+Visual Studio project files located in the examples area refer to
+QPID_ROOT to locate both header files and library files.
+
+
The example programs are located in the examples subdirectory
+of the Qpid installation directory. There are a number of examples, each with
+its own subdirectory under examples. You can use the examples to
+
+
Study to learn Qpid programming techniques you may want to use
+
Build and run to observe and test Qpid features
+
+Each example's directory contains source code and Visual Studio 2008 project
+files you can use to build the examples.
+
+
Reading the C++ API Reference Documentation
+
The C++ API reference documentation is HTML and can be viewed using
+your web browser. It is located in the docs\api\html subdirectory
+of the installation directory, but there is also a shortcut to the
+documentation in Start > All Programs > Apache Qpid > Qpid C++ Reference
+Documentation. Selecting that menu item will launch the documentation's
+main page in your default web browser.
+
+
Complete Source Code is Available
+
If you wish to view Qpid's source code, please visit
+
+http://qpid.apache.org/download.html. The source components used to build
+this installed kit are "C++ broker & client" and "C# (.NET, WCF) WCF
+channel (C++ Broker Compatible)."
+
+
Notes
+
Please read the following sections for important notes regarding this
+release.
+
+
CLFS-Based Broker Persistence Module
+
This release includes a second persistence module. The broker can use this
+module to facilitate durable queues, exchanges, bindings, configuration, and
+messages. The new persistence module, like the SQL-based store introduced in
+Qpid 0.6, uses SQL Server Express (or SQL Server) 2005 or newer. However, it
+also used Common Log File System (CLFS) to store message and transaction-related
+information. CLFS and, thus, the new store, is available on Windows Vista and
+Server 2005 and newer.
+The persistence module is a Qpid broker plugin. It is not loaded by
+default; therefore, to gain support for durable items the persistence plugin
+must be loaded into the broker. This can be done using the
+--load-module option to load the needed plugins. For example:
+
+The --load-module option can also take a full path. The option
+can also be included in the broker configuration file. A sample is located
+in the conf\qpidd.conf file under the installation directory.
+
+
The Qpid site contains more information about Qpid and AMQP as well as
+directions for joining and reading the Qpid-related email lists.
+
+
diff --git a/qpid/cpp/packaging/windows/LICENSE.rtf b/qpid/cpp/packaging/windows/LICENSE.rtf
new file mode 100644
index 0000000000..04fddfe8b6
--- /dev/null
+++ b/qpid/cpp/packaging/windows/LICENSE.rtf
@@ -0,0 +1,110 @@
+{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Courier New;}}
+{\*\generator Msftedit 5.41.21.2500;}\viewkind4\uc1\pard\qc\lang1033\f0\fs20 Apache License\par
+Version 2.0, January 2004\par
+http://www.apache.org/licenses/\par
+\pard\par
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\par
+\par
+1. Definitions.\par
+\par
+"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\par
+\par
+"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\par
+\par
+"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\par
+\par
+"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.\par
+\par
+"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation, source, and configuration files.\par
+\par
+"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\par
+\par
+"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\par
+\par
+"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\par
+\par
+"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."\par
+\par
+"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\par
+\par
+2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\par
+\par
+3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license plies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\par
+\par
+4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\par
+\par
+ (a) You must give any other recipients of the Work or\par
+ Derivative Works a copy of this License; and\par
+\par
+ (b) You must cause any modified files to carry prominent notices\par
+ stating that You changed the files; and\par
+\par
+ (c) You must retain, in the Source form of any Derivative Works\par
+ that You distribute, all copyright, patent, trademark, and\par
+ attribution notices from the Source form of the Work,\par
+ excluding those notices that do not pertain to any part of\par
+ the Derivative Works; and\par
+\par
+ (d) If the Work includes a "NOTICE" text file as part of its\par
+ distribution, then any Derivative Works that You distribute\par
+ must include a readable copy of the attribution notices\par
+ contained within such NOTICE file, excluding those notices\par
+ that do not pertain to any part of the Derivative Works, in\par
+ at least one of the following places: within a NOTICE text\par
+ file distributed as part of the Derivative Works; within the\par
+ Source form or documentation, if provided along with the\par
+ Derivative Works; or, within a display generated by the\par
+ Derivative Works, if and wherever such third-party notices\par
+ normally appear. The contents of the NOTICE file are for\par
+ informational purposes only and do not modify the License.\par
+ You may add Your own attribution notices within Derivative\par
+ Works that You distribute, alongside or as an addendum to the\par
+ NOTICE text from the Work, provided that such additional\par
+ attribution notices cannot be construed as modifying the\par
+ License.\par
+\par
+You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\par
+\par
+5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\par
+\par
+6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\par
+\par
+7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\par
+\par
+8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\par
+\par
+9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\par
+\par
+END OF TERMS AND CONDITIONS\par
+\par
+APPENDIX: How to apply the Apache License to your work.\par
+\par
+To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.\par
+\par
+ Copyright [yyyy] [name of copyright owner]\par
+\par
+ Licensed under the Apache License, Version 2.0 (the "License");\par
+ you may not use this file except in compliance with the License.\par
+ You may obtain a copy of the License at\par
+\par
+ http://www.apache.org/licenses/LICENSE-2.0\par
+\par
+ Unless required by applicable law or agreed to in writing, software\par
+ distributed under the License is distributed on an "AS IS" BASIS,\par
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\par
+ implied. See the License for the specific language governing\par
+ permissions and limitations under the License.\par
+\par
+=======================================================================\par
+\par
+Boost Software License - Version 1.0 - August 17th, 2003\par
+\par
+Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following:\par
+\par
+The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor.\par
+\par
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\par
+\par
+\par
+}
+
\ No newline at end of file
diff --git a/qpid/cpp/packaging/windows/build_installer.bat b/qpid/cpp/packaging/windows/build_installer.bat
new file mode 100644
index 0000000000..addc33f32b
--- /dev/null
+++ b/qpid/cpp/packaging/windows/build_installer.bat
@@ -0,0 +1,55 @@
+rem
+rem Licensed to the Apache Software Foundation (ASF) under one
+rem or more contributor license agreements. See the NOTICE file
+rem distributed with this work for additional information
+rem regarding copyright ownership. The ASF licenses this file
+rem to you under the Apache License, Version 2.0 (the
+rem "License"); you may not use this file except in compliance
+rem with the License. You may obtain a copy of the License at
+rem
+rem http://www.apache.org/licenses/LICENSE-2.0
+rem
+rem Unless required by applicable law or agreed to in writing,
+rem software distributed under the License is distributed on an
+rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+rem KIND, either express or implied. See the License for the
+rem specific language governing permissions and limitations
+rem under the License.
+
+@set vshome="%ProgramFiles%\Microsoft Visual Studio 9.0"
+if "%ProgramFiles(x86)%" == "" goto x86only
+@set vshome="%ProgramFiles(x86)%\Microsoft Visual Studio 9.0"
+if /i %1 == x86 goto x86
+if /i %1 == x64 goto x64
+echo Error in script usage. The correct usage is:
+echo %0 [arch]
+echo where [arch] is: x86 ^| x64
+goto :eof
+
+:x86only
+@set vsarch=x86
+@set bits=32
+goto run
+
+:x86
+@set vsarch=x86
+@set bits=32
+goto run
+
+:x64
+@set vsarch=amd64
+@set bits=64
+
+:run
+rem Two environment variables need to be set:
+rem QPID_BUILD_ROOT: root of the build directory; $cwd\build unless the
+rem build_dir property is set in msbuild properties below.
+rem BOOST_ROOT: root of the Boost installation
+
+set QPID_BUILD_ROOT=%CD%\build
+
+rem If the local cmake needs help, add options to the cmake_options property.
+rem For example: cmake_options="-DBOOST_INCLUDE_DIR=C:/Boost/boost-1_40
+rem -DBOOST_LIBRARYDIR=C:/Boost/boost-1_40/lib64"
+call %vshome%\VC\vcvarsall.bat %vsarch%
+msbuild /property:bits=%bits% installer.proj
diff --git a/qpid/cpp/packaging/windows/installer.proj b/qpid/cpp/packaging/windows/installer.proj
new file mode 100644
index 0000000000..d42d6ad9d4
--- /dev/null
+++ b/qpid/cpp/packaging/windows/installer.proj
@@ -0,0 +1,243 @@
+
+
+
+
+
+
+
+ $(MSBuildProjectDirectory)\build
+ $(MSBuildProjectDirectory)\..\..
+ $(MSBuildProjectDirectory)\stage
+ 32
+ 0.35
+ qpidc
+ Package
+ C:\Program Files (x86)\Windows Installer XML v3.5\bin
+ $(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\wix.targets
+
+
+
+
+
+ ProgramFiles64Folder
+ %22Visual Studio 9 2008 Win64%22
+ x64
+ x64
+ x64
+
+
+
+
+ ProgramFilesFolder
+ %22Visual Studio 9 2008%22
+ x86
+ Win32
+ Win32
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $(WixToolPath)\WixUtilExtension.dll
+
+
+ $(WixToolPath)\WixUIExtension.dll
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/qpid/cpp/packaging/windows/qpid-icon.ico b/qpid/cpp/packaging/windows/qpid-icon.ico
new file mode 100644
index 0000000000..112f5d8f1f
Binary files /dev/null and b/qpid/cpp/packaging/windows/qpid-icon.ico differ
diff --git a/qpid/cpp/packaging/windows/qpid-install-background.bmp b/qpid/cpp/packaging/windows/qpid-install-background.bmp
new file mode 100644
index 0000000000..7a287f107f
Binary files /dev/null and b/qpid/cpp/packaging/windows/qpid-install-background.bmp differ
diff --git a/qpid/cpp/packaging/windows/qpid-install-banner.bmp b/qpid/cpp/packaging/windows/qpid-install-banner.bmp
new file mode 100644
index 0000000000..73184a9235
Binary files /dev/null and b/qpid/cpp/packaging/windows/qpid-install-banner.bmp differ
diff --git a/qpid/cpp/packaging/windows/qpidc.wxs b/qpid/cpp/packaging/windows/qpidc.wxs
new file mode 100644
index 0000000000..d249423c99
--- /dev/null
+++ b/qpid/cpp/packaging/windows/qpidc.wxs
@@ -0,0 +1,343 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ = 502)]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/qpid/doc/book/.gitignore b/qpid/doc/book/.gitignore
deleted file mode 100644
index 21f1f20096..0000000000
--- a/qpid/doc/book/.gitignore
+++ /dev/null
@@ -1,21 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-/build
-/out
diff --git a/qpid/doc/book/Makefile b/qpid/doc/book/Makefile
deleted file mode 100644
index 6e97a0c5cc..0000000000
--- a/qpid/doc/book/Makefile
+++ /dev/null
@@ -1,38 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-DIRS = src/cpp-broker src/programming
-
-
-.PHONY: all $(DIRS)
-
-all: $(DIRS)
-
-clean:
- rm -rf build
-
-html: TARGET = html
-html: all
-
-pdf: TARGET = pdf
-pdf: all
-
-$(DIRS):
- $(MAKE) -C $@ $(TARGET) OUTPUTDIR=../../build/
-
diff --git a/qpid/doc/book/src/Makefile.inc b/qpid/doc/book/src/Makefile.inc
deleted file mode 100644
index 4de5733740..0000000000
--- a/qpid/doc/book/src/Makefile.inc
+++ /dev/null
@@ -1,63 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-BOOK=$(wildcard *Book.xml Programming-In-Apache-Qpid.xml )
-XML=$(wildcard *.xml) $(wildcard ../common/*.xml)
-IMAGES=$(wildcard images/*.png)
-CSS=$(wilcard ../common/css/*.css)
-
-OUTPUTDIR=output
-OUTPUT= $(BOOK:%.xml=$(OUTPUTDIR)/%/)
-
-all: html pdf
-
-pdf: $(OUTPUT)/pdf $(BOOK:%.xml=$(OUTPUT)/pdf/%.pdf)
-
-html: $(OUTPUT)/html $(BOOK:%.xml=$(OUTPUT)/html/index.html)
-
-$(OUTPUT)/html/images: $(IMAGES)
- -mkdir -p $(OUTPUT)/html/images
- -cp images/*.png $(OUTPUT)/html/images/
-
-$(OUTPUT)/html/css: $(CSS)
- -mkdir -p $(OUTPUT)/html/css
- -cp ../common/css/*.css $(OUTPUT)/html/css
-
-$(OUTPUT)/html:
- -mkdir -p $(OUTPUT)/html
-
-$(OUTPUT)/pdf:
- -mkdir -p $(OUTPUT)/pdf
-
-$(OUTPUT)/html/index.html: $(BOOK) $(OUTPUT)/html/css $(OUTPUT)/html/images $(XML)
- xsltproc -o $(OUTPUT)/html/ --xinclude --stringparam chunk.section.depth 1 --stringparam section.autolabel 1 --stringparam callout.graphics 0 --stringparam callout.unicode 0 --stringparam section.label.includes.component.label 1 --stringparam use.id.as.filename 1 --stringparam html.stylesheet css/style.css --stringparam section.autolabel.max.depth 3 --stringparam toc.section.depth 2 --stringparam chunker.output.encoding UTF-8 --stringparam css.decoration 0 ../../xsl/html-custom.xsl $<
-
-%.fo: %.xml
- xsltproc --xinclude --stringparam section.autolabel 1 --stringparam callout.graphics 0 --stringparam callout.unicode 0 --stringparam section.label.includes.component.label 1 http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl $< > $@
-
-
-%.pdf: %.fo
- fop $< $@
-
-$(OUTPUT)/pdf/%.pdf: %.pdf
- @mv $< $@
-
-clean:
- -rm -rf $(OUTPUT) *.fo
-
diff --git a/qpid/doc/book/src/common/css/style.css b/qpid/doc/book/src/common/css/style.css
deleted file mode 100644
index c681596592..0000000000
--- a/qpid/doc/book/src/common/css/style.css
+++ /dev/null
@@ -1,279 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
- */
-ul {
- list-style-type:square;
-}
-
-th {
- font-weight: bold;
-}
-
-.navfooter td {
- font-size:10pt;
-}
-
-.navheader td {
- font-size:10pt;
-}
-
-body {
- margin:0;
- background:#FFFFFF;
- font-family:"Verdana", sans-serif;
- font-size:10pt;
-}
-
-.container {
- width:950px;
- margin:0 auto;
-}
-
-body a {
- color:#000000;
-}
-
-
-div.book {
- margin-left:10pt;
- margin-right:10pt;
-}
-
-div.preface {
- margin-left:10pt;
- margin-right:10pt;
-}
-
-div.chapter {
- margin-left:10pt;
- margin-right:10pt;
-}
-
-div.section {
- margin-left:10pt;
- margin-right:10pt;
-}
-
-div.titlepage {
- margin-left:-10pt;
- margin-right:-10pt;
-}
-
-.calloutlist td {
- font-size:10pt;
-}
-
-.table-contents table {
- border-spacing: 0px;
-}
-
-.table-contents td {
- font-size:10pt;
- padding-left:6px;
- padding-right:6px;
-}
-
-div.breadcrumbs {
- font-size:9pt;
- margin-right:10pt;
- padding-bottom:16px;
-}
-
-.chapter h2.title {
- font-size:20pt;
- color:#0c3b82;
-}
-
-.chapter .section h2.title {
- font-size:18pt;
- color:#0c3b82;
-}
-
-.section h2.title {
- font-size:16pt;
- color:#0c3b82;
-}
-
-.section h3.title {
- font-size:14pt;
- color:#0c3b82;
-}
-
-.section h4.title {
- font-size:12pt;
- color:#0c3b82;
-}
-
-.section h5.title {
- font-size:12pt;
- color:#0c3b82;
-}
-
-.section h6.title {
- font-size:12pt;
- color:#0c3b82;
-}
-
-.toc a {
- font-size:9pt;
-}
-
-.header {
- height:100px;
- width:950px;
- background:url(http://qpid.apache.org/images/header.png)
-}
-
-.logo {
- text-align:center;
- font-weight:600;
- padding:0 0 0 0;
- font-size:14px;
- font-family:"Verdana", cursive;
-}
-
-.logo a {
- color:#000000;
- text-decoration:none;
-}
-
-.main_text_area {
- margin-left:200px;
-}
-
-.main_text_area_top {
- height:14px;
- font-size:1px;
-}
-
-.main_text_area_bottom {
- display:none;
-/* height:14px;
- margin-bottom:4px;*/
-}
-
-.main_text_area_body {
- padding:5px 24px;
-}
-
-.main_text_area_body p {
- text-align:justify;
-}
-
-.main_text_area br {
- line-height:10px;
-}
-
-.main_text_area h1 {
- font-size:28px;
- font-weight:600;
- margin:0 0 24px 0;
- color:#0c3b82;
- font-family:"Verdana", Times, serif;
-}
-
-.main_text_area h2 {
- font-size:24px;
- font-weight:600;
- margin:24px 0 8px 0;
- color:#0c3b82;
- font-family:"Verdana",Times, serif;
-}
-
-.main_text_area ol, .main_text_area ul {
- padding:0;
- margin:10px 0;
- margin-left:20px;
-}
-
-.main_text_area li {
-/* margin-left:40px; */
-}
-
-.main_text_area, .menu_box {
- font-size:13px;
- line-height:17px;
- color:#000000;
-}
-
-.main_text_area {
- font-size:14px;
-}
-
-.main_text_area a {
- color:#000000;
-}
-
-.main_text_area a:hover {
- color:#000000;
-}
-
-.menu_box {
- width:196px;
- float:left;
- margin-left:4px;
-}
-
-.menu_box_top {
- background:url(http://qpid.apache.org/images/menu_top.png) no-repeat;
- height:14px;
- font-size:1px;
-}
-
-.menu_box_body {
- background:url(http://qpid.apache.org/images/menu_body.png) repeat-y;
- padding:5px 24px 5px 24px;
-}
-
-.menu_box_bottom {
- background:url(http://qpid.apache.org/images/menu_bottom.png) no-repeat;
- height:14px;
- font-size:1px;
- margin-bottom:1px;
-}
-
-.menu_box h3 {
- font-size:20px;
- font-weight:500;
- margin:0 0 8px 0;
- color:#0c3b82;
- font-family:"Verdana",Times, serif;
-}
-
-.menu_box ul {
- margin:12px;
- padding:0px;
-}
-
-.menu_box li {
- list-style:square;
-}
-
-.menu_box a {
- color:#000000;
- text-decoration:none;
-}
-
-.menu_box a:hover {
- color:#000000;
- text-decoration:underline;
-}
-
-
diff --git a/qpid/doc/book/src/cpp-broker/.gitignore b/qpid/doc/book/src/cpp-broker/.gitignore
deleted file mode 100644
index 6d31bdba7f..0000000000
--- a/qpid/doc/book/src/cpp-broker/.gitignore
+++ /dev/null
@@ -1,20 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-/output
diff --git a/qpid/doc/book/src/cpp-broker/AMQP-Compatibility.xml b/qpid/doc/book/src/cpp-broker/AMQP-Compatibility.xml
deleted file mode 100644
index e5aa98cf96..0000000000
--- a/qpid/doc/book/src/cpp-broker/AMQP-Compatibility.xml
+++ /dev/null
@@ -1,713 +0,0 @@
-
-
-
-
-
- AMQP compatibility
-
-
- Qpid provides the most complete and compatible implementation
- of AMQP. And is the most aggressive in implementing the latest
- version of the specification.
-
-
- There are two brokers:
-
-
-
- C++ with support for AMQP 0-10
- Java with support for AMQP 0-8 and 0-9 (0-10 planned)
-
-
- There are client libraries for C++, Java (JMS), .Net (written in
- C#), python and ruby.
-
-
- All clients support 0-10 and interoperate with the C++
- broker.
-
-
-
- The JMS client supports 0-8, 0-9 and 0-10 and interoperates
- with both brokers.
-
-
-
- The python and ruby clients will also support all versions,
- but the API is dynamically driven by the specification used and
- so differs between versions. To work with the Java broker you
- must use 0-8 or 0-9, to work with the C++ broker you must use
- 0-10.
-
-
-
- There are two separate C# clients, one for 0-8 that
- interoperates with the Java broker, one for 0-10 that
- inteoperates with the C++ broker.
-
-
-
- QMF Management is supported in Ruby, Python, C++, and via QMan
- for Java JMX & WS-DM.
-
-
-
- AMQP
- Compatibility of Qpid releases:
-
-
- Qpid implements the AMQP Specification, and as the specification
- has progressed Qpid is keeping up with the updates. This means
- that different Qpid versions support different versions of AMQP.
- Here is a simple guide on what use.
-
-
- Here is a matrix that describes the different versions supported
- by each release. The status symbols are interpreted as follows:
-
-
-
-
- Y
- supported
-
-
- N
- unsupported
-
-
- IP
- in progress
-
-
- P
- planned
-
-
-
-
- AMQP Version Support by Qpid Release
-
-
-
-
- Component
-
-
- Spec
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- M2.1
-
-
- M3
-
-
- M4
-
-
- 0.5
-
-
-
-
- java client
-
-
- 0-10
-
-
-
-
-
- Y
-
-
- Y
-
-
- Y
-
-
-
-
-
-
-
- 0-9
-
-
- Y
-
-
- Y
-
-
- Y
-
-
- Y
-
-
-
-
-
-
-
- 0-8
-
-
- Y
-
-
- Y
-
-
- Y
-
-
- Y
-
-
-
-
- java broker
-
-
- 0-10
-
-
-
-
-
-
-
-
-
-
-
- P
-
-
-
-
-
-
-
- 0-9
-
-
- Y
-
-
- Y
-
-
- Y
-
-
- Y
-
-
-
-
-
-
-
- 0-8
-
-
- Y
-
-
- Y
-
-
- Y
-
-
- Y
-
-
-
-
- c++ client/broker
-
-
- 0-10
-
-
-
-
-
- Y
-
-
- Y
-
-
- Y
-
-
-
-
-
-
-
- 0-9
-
-
- Y
-
-
-
-
-
-
-
-
-
-
-
-
-
- python client
-
-
- 0-10
-
-
-
-
-
- Y
-
-
- Y
-
-
- Y
-
-
-
-
-
-
-
- 0-9
-
-
- Y
-
-
- Y
-
-
- Y
-
-
- Y
-
-
-
-
-
-
-
- 0-8
-
-
- Y
-
-
- Y
-
-
- Y
-
-
- Y
-
-
-
-
- ruby client
-
-
- 0-10
-
-
-
-
-
-
-
-
- Y
-
-
- Y
-
-
-
-
-
-
-
- 0-8
-
-
- Y
-
-
- Y
-
-
- Y
-
-
- Y
-
-
-
-
- C# client
-
-
- 0-10
-
-
-
-
-
-
-
-
- Y
-
-
- Y
-
-
-
-
-
-
-
- 0-8
-
-
- Y
-
-
- Y
-
-
- Y
-
-
- Y
-
-
-
-
-
-
-
-
-
-
- Interop
- table by AMQP specification version
-
-
- Above table represented in another format.
-
-
- AMQP Version Support - alternate format
-
-
-
-
-
-
-
- release
-
-
- 0-8
-
-
- 0-9
-
-
- 0-10
-
-
-
-
- java client
-
-
- M3 M4 0.5
-
-
- Y
-
-
- Y
-
-
- Y
-
-
-
-
- java client
-
-
- M2.1
-
-
- Y
-
-
- Y
-
-
- N
-
-
-
-
- java broker
-
-
- M3 M4 0.5
-
-
- Y
-
-
- Y
-
-
- N
-
-
-
-
- java broker
-
-
- trunk
-
-
- Y
-
-
- Y
-
-
- P
-
-
-
-
- java broker
-
-
- M2.1
-
-
- Y
-
-
- Y
-
-
- N
-
-
-
-
- c++ client/broker
-
-
- M3 M4 0.5
-
-
- N
-
-
- N
-
-
- Y
-
-
-
-
- c++ client/broker
-
-
- M2.1
-
-
- N
-
-
- Y
-
-
- N
-
-
-
-
- python client
-
-
- M3 M4 0.5
-
-
- Y
-
-
- Y
-
-
- Y
-
-
-
-
- python client
-
-
- M2.1
-
-
- Y
-
-
- Y
-
-
- N
-
-
-
-
- ruby client
-
-
- M3 M4 0.5
-
-
- Y
-
-
- Y
-
-
- N
-
-
-
-
- ruby client
-
-
- trunk
-
-
- Y
-
-
- Y
-
-
- P
-
-
-
-
- C# client
-
-
- M3 M4 0.5
-
-
- Y
-
-
- N
-
-
- N
-
-
-
-
- C# client
-
-
- trunk
-
-
- Y
-
-
- N
-
-
- Y
-
-
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/cpp-broker/AMQP-Messaging-Broker-CPP-Book.xml b/qpid/doc/book/src/cpp-broker/AMQP-Messaging-Broker-CPP-Book.xml
deleted file mode 100644
index 6122b12e18..0000000000
--- a/qpid/doc/book/src/cpp-broker/AMQP-Messaging-Broker-CPP-Book.xml
+++ /dev/null
@@ -1,74 +0,0 @@
-
-
-
-
- AMQP Messaging Broker (Implemented in C++)
-
- Introduction
-
- Qpid provides two AMQP messaging brokers:
-
-
- Implemented in C++ - high performance, low latency, and RDMA support.
- Implemented in Java - Fully JMS compliant, runs on any Java platform.
-
-
- Both AMQP messaging brokers support clients in multiple
- languages, as long as the messaging client and the messaging
- broker use the same version of AMQP. See AMQP Compatibility to see
- which messaging clients work with each broker.
-
- This manual contains information specific to the broker that is implemented in C++.
-
-
-
-
- Running the AMQP Messaging Broker
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Managing the AMQP Messaging Broker
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/cpp-broker/Active-Passive-Cluster.xml b/qpid/doc/book/src/cpp-broker/Active-Passive-Cluster.xml
deleted file mode 100644
index 461b75d320..0000000000
--- a/qpid/doc/book/src/cpp-broker/Active-Passive-Cluster.xml
+++ /dev/null
@@ -1,1229 +0,0 @@
-
-
-
-
- Active-Passive Messaging Clusters
-
-
- Overview
-
-
- The High Availability (HA) module provides
- active-passive, hot-standby
- messaging clusters to provide fault tolerant message delivery.
-
-
- In an active-passive cluster only one broker, known as the
- primary, is active and serving clients at a time. The other
- brokers are standing by as backups. Changes on the primary
- are replicated to all the backups so they are always up-to-date or "hot". Backup
- brokers reject client connection attempts, to enforce the requirement that clients
- only connect to the primary.
-
-
- If the primary fails, one of the backups is promoted to take over as the new
- primary. Clients fail-over to the new primary automatically. If there are multiple
- backups, the other backups also fail-over to become backups of the new primary.
-
-
- This approach relies on an external cluster resource manager
- to detect failures, choose the new primary and handle network partitions. rgmanager is supported
- initially, but others may be supported in the future.
-
-
- Avoiding message loss
-
- In order to avoid message loss, the primary broker delays
- acknowledgement of messages received from clients until the
- message has been replicated and acknowledged by all of the back-up
- brokers, or has been consumed from the primary queue.
-
-
- This ensures that all acknowledged messages are safe: they have either
- been consumed or backed up to all backup brokers. Messages that are
- consumed before they are replicated do not need to
- be replicated. This reduces the work load when replicating a queue with
- active consumers.
-
-
- Clients keep unacknowledged messages in a buffer
-
-
- You can control the maximum number of messages in the buffer by setting the
- client's capacity. For details of how to set the capacity
- in client code see "Using the Qpid Messaging API" in
- Programming in Apache Qpid.
-
-
- until they are acknowledged by the primary. If the primary fails, clients will
- fail-over to the new primary and re-send all their
- unacknowledged messages.
-
-
- Clients must use "at-least-once" reliability to enable re-send of unacknowledged
- messages. This is the default behaviour, no options need be set to enable it. For
- details of client addressing options see "Using the Qpid Messaging API"
- in Programming in Apache Qpid.
-
-
-
-
- If the primary crashes, all the acknowledged
- messages will be available on the backup that takes over as the new
- primary. The unacknowledged messages will be
- re-sent by the clients. Thus no messages are lost.
-
-
- Note that this means it is possible for messages to be
- duplicated. In the event of a failure it is possible for a
- message to received by the backup that becomes the new primary
- and re-sent by the client. The application must take steps
- to identify and eliminate duplicates.
-
-
- When a new primary is promoted after a fail-over it is initially in
- "recovering" mode. In this mode, it delays acknowledgement of messages
- on behalf of all the backups that were connected to the previous
- primary. This protects those messages against a failure of the new
- primary until the backups have a chance to connect and catch up.
-
-
- Not all messages need to be replicated to the back-up brokers. If a
- message is consumed and acknowledged by a regular client before it has
- been replicated to a backup, then it doesn't need to be replicated.
-
-
- HA Broker States
-
- Stand-alone
-
-
- Broker is not part of a HA cluster.
-
-
-
-
- Joining
-
-
- Newly started broker, not yet connected to any existing primary.
-
-
-
-
- Catch-up
-
-
- A backup broker that is connected to the primary and downloading
- existing state (queues, messages etc.)
-
-
-
-
- Ready
-
-
- A backup broker that is fully caught-up and ready to take over as
- primary.
-
-
-
-
- Recovering
-
-
- Newly-promoted primary, waiting for backups to connect and catch up.
- Clients can connect but they are stalled until the primary is active.
-
-
-
-
- Active
-
-
- The active primary broker with all backups connected and caught-up.
-
-
-
-
-
-
- Limitations
-
- There are a some known limitations in the current implementation. These
- will be fixed in future versions.
-
-
-
-
- Transactional changes to queue state are not replicated atomically. If
- the primary crashes during a transaction, it is possible that the
- backup could contain only part of the changes introduced by a
- transaction.
-
-
-
-
- Configuration changes (creating or deleting queues, exchanges and
- bindings) are replicated asynchronously. Management tools used to
- make changes will consider the change complete when it is complete
- on the primary, it may not yet be replicated to all the backups.
-
-
-
-
- Federation links to the primary will fail over
- correctly. Federated links from the primary
- will be lost in fail over, they will not be re-connected to the new
- primary. It is possible to work around this by replacing the
- qpidd-primary start up script with a script that
- re-creates federation links when the primary is promoted.
-
-
-
-
-
-
-
- Virtual IP Addresses
-
- Some resource managers (including rgmanager) support
- virtual IP addresses. A virtual IP address is an IP
- address that can be relocated to any of the nodes in a cluster. The
- resource manager associates this address with the primary node in the
- cluster, and relocates it to the new primary when there is a failure. This
- simplifies configuration as you can publish a single IP address rather
- than a list.
-
-
- A virtual IP address can be used by clients to connect to the primary. The
- following sections will explain how to configure virtual IP addresses for
- clients or brokers.
-
-
-
-
- Configuring the Brokers
-
- The broker must load the ha module, it is loaded by
- default. The following broker options are available for the HA module.
-
-
-
- Broker management is required for HA to operate, it is enabled by
- default. The option mgmt-enable must not be set to
- "no"
-
-
-
-
- Incorrect security settings are a common cause of problems when
- getting started, see .
-
-
-
- Broker Options for High Availability Messaging Cluster
-
-
-
-
-
-
- Options for High Availability Messaging Cluster
-
-
-
-
-
-
- ha-cluster yes|no
-
-
- Set to "yes" to have the broker join a cluster.
-
-
-
-
- ha-queue-replication yes|no
-
-
- Enable replication of specific queues without joining a cluster, see .
-
-
-
-
- ha-brokers-url URL
-
-
-
- The URL
-
-
- The full format of the URL is given by this grammar:
-
-url = ["amqp:"][ user ["/" password] "@" ] addr ("," addr)*
-addr = tcp_addr / rmda_addr / ssl_addr / ...
-tcp_addr = ["tcp:"] host [":" port]
-rdma_addr = "rdma:" host [":" port]
-ssl_addr = "ssl:" host [":" port]'
-
-
-
- used by cluster brokers to connect to each other. The URL should
- contain a comma separated list of the broker addresses, rather than a
- virtual IP address.
-
-
-
-
- ha-public-url URL
-
-
- This option is only needed for backwards compatibility if you
- have been using the amq.failover exchange.
- This exchange is now obsolete, it is recommended to use a
- virtual IP address instead.
-
-
- If set, this URL is advertised by the
- amq.failover exchange and overrides the
- broker option known-hosts-url
-
-
-
-
- ha-replicate VALUE
-
-
- Specifies whether queues and exchanges are replicated by default.
- VALUE is one of: none,
- configuration, all.
- For details see .
-
-
-
-
-
- ha-username USER
- ha-password PASS
- ha-mechanism MECHANISM
-
-
- Authentication settings used by HA brokers to connect to each other,
- see
-
-
-
- ha-backup-timeoutSECONDS
-
-
- Values specified as SECONDS can be a
- fraction of a second, e.g. "0.1" for a tenth of a second.
- They can also have an explicit unit,
- e.g. 10s (seconds), 10ms (milliseconds), 10us (microseconds), 10ns (nanoseconds)
-
-
-
-
-
- Maximum time that a recovering primary will wait for an expected
- backup to connect and become ready.
-
-
-
-
-
- link-maintenance-interval SECONDS
-
-
-
-
- HA uses federation links to connect from backup to primary.
- Backup brokers check the link to the primary on this interval
- and re-connect if need be. Default 2 seconds. Set lower for
- faster failover, e.g. 0.1 seconds. Setting too low will result
- in excessive link-checking on the backups.
-
-
-
-
-
- link-heartbeat-interval SECONDS
-
-
-
-
- HA uses federation links to connect from backup to primary.
- If no heart-beat is received for twice this interval the primary will consider that
- backup dead (e.g. if backup is hung or partitioned.)
- This interval is also used to time-out for broker status checks,
- it may take up to this interval for rgmanager to detect a hung or partitioned broker.
- Clients sending messages may be held up during this time.
- Default 120 seconds: you will probably want to set this to a lower value e.g. 10.
- If set too low rgmanager may consider a slow broker to have failed and kill it.
-
-
-
-
-
-
-
- To configure a HA cluster you must set at least ha-cluster and
- ha-brokers-url.
-
-
-
-
- The Cluster Resource Manager
-
- Broker fail-over is managed by a cluster resource
- manager. An integration with rgmanager is
- provided, but it is possible to integrate with other resource managers.
-
-
- The resource manager is responsible for starting the qpidd broker
- on each node in the cluster. The resource manager then promotes
- one of the brokers to be the primary. The other brokers connect to the primary as
- backups, using the URL provided in the ha-brokers-url configuration
- option.
-
-
- Once connected, the backup brokers synchronize their state with the
- primary. When a backup is synchronized, or "hot", it is ready to take
- over if the primary fails. Backup brokers continually receive updates
- from the primary in order to stay synchronized.
-
-
- If the primary fails, backup brokers go into fail-over mode. The resource
- manager must detect the failure and promote one of the backups to be the
- new primary. The other backups connect to the new primary and synchronize
- their state with it.
-
-
- The resource manager is also responsible for protecting the cluster from
- split-brain conditions resulting from a network partition. A
- network partition divide a cluster into two sub-groups which cannot see each other.
- Usually a quorum voting algorithm is used that disables nodes
- in the inquorate sub-group.
-
-
-
-
- Configuring with rgmanager as resource manager
-
- This section assumes that you are already familiar with setting up and configuring
- clustered services using cman and
- rgmanager. It will show you how to configure an active-passive,
- hot-standby qpidd HA cluster with rgmanager.
-
-
-
- Once all components are installed it is important to take the following step:
-
-chkconfig rgmanager on
-chkconfig cman on
-chkconfig qpidd off
-
-
-
- The qpidd service must be off in
- chkconfig because rgmanager will
- start and stop qpidd. If the normal system init
- process also attempts to start and stop qpidd it can cause rgmanager to
- lose track of qpidd processes. The symptom when this happens is that
- clustat shows a qpidd service to
- be stopped when in fact there is a qpidd process
- running. The qpidd log will show errors like this:
-
-critical Unexpected error: Daemon startup failed: Cannot lock /var/lib/qpidd/lock: Resource temporarily unavailable
-
-
-
-
- You must provide a cluster.conf file to configure
- cman and rgmanager. Here is
- an example cluster.conf file for a cluster of 3 nodes named
- node1, node2 and node3. We will go through the configuration step-by-step.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- status_poll_interval is the interval in seconds that the resource manager checks the status
- of managed services. This affects how quickly the manager will detect failed services.
- -->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ]]>
-
-
-
- There is a failoverdomain for each node containing just that
- one node. This lets us stipulate that the qpidd service should always run on all
- nodes.
-
-
- The resources section defines the qpidd
- script used to start the qpidd service. It also defines the
- qpid-primary script which does not
- actually start a new service, rather it promotes the existing
- qpidd broker to primary status.
-
-
- The resources section also defines a virtual IP
- address for clients: 20.0.20.200.
-
-
- qpidd.conf should contain these lines:
-
-
-ha-cluster=yes
-ha-brokers-url=20.0.20.1,20.0.20.2,20.0.20.3
-
-
- The brokers connect to each other directly via the addresses
- listed in ha-brokers-url. Note the client and broker
- addresses are on separate sub-nets, this is recommended but not required.
-
-
- The service section defines 3 qpidd
- services, one for each node. Each service is in a restricted fail-over
- domain containing just that node, and has the restart
- recovery policy. The effect of this is that rgmanager will run
- qpidd on each node, restarting if it fails.
-
-
- There is a single qpidd-primary-service using the
- qpidd-primary script which is not restricted to a
- domain and has the relocate recovery policy. This means
- rgmanager will start qpidd-primary on one of the nodes
- when the cluster starts and will relocate it to another node if the
- original node fails. Running the qpidd-primary script
- does not start a new broker process, it promotes the existing broker to
- become the primary.
-
-
-
- Shutting down qpidd on a HA node
-
- As explained above both the per-node qpidd service
- and the re-locatable qpidd-primary service are
- implemented by the same qpidd daemon.
-
-
- As a result, stopping the qpidd service will not stop
- a qpidd daemon that is acting as primary, and
- stopping the qpidd-primary service will not stop a
- qpidd process that is acting as backup.
-
-
- To shut down a node that is acting as primary you need to shut down the
- qpidd service and relocate the
- primary:
-
-
-
-clusvcadm -d somenode-qpidd-service
-clusvcadm -r qpidd-primary-service
-
-
-
- This will shut down the qpidd daemon on that node and
- prevent the primary service service from relocating back to the node
- because the qpidd service is no longer running there.
-
-
-
-
-
- Broker Administration Tools
-
- Normally, clients are not allowed to connect to a backup broker. However
- management tools are allowed to connect to a backup brokers. If you use
- these tools you must not add or remove messages from
- replicated queues, nor create or delete replicated queues or exchanges as
- this will disrupt the replication process and may cause message loss.
-
-
- qpid-ha allows you to view and change HA configuration settings.
-
-
- The tools qpid-config, qpid-route and
- qpid-stat will connect to a backup if you pass the flag ha-admin on the
- command line.
-
-
-
-
- Controlling replication of queues and exchanges
-
- By default, queues and exchanges are not replicated automatically. You can change
- the default behaviour by setting the ha-replicate configuration
- option. It has one of the following values:
-
-
-
- all: Replicate everything automatically: queues,
- exchanges, bindings and messages.
-
-
-
-
- configuration: Replicate the existence of queues,
- exchange and bindings but don't replicate messages.
-
-
-
-
- none: Don't replicate anything, this is the default.
-
-
-
-
-
- You can over-ride the default for a particular queue or exchange by passing the
- argument qpid.replicate when creating the queue or exchange. It
- takes the same values as ha-replicate
-
-
- Bindings are automatically replicated if the queue and exchange being bound both
- have replication all or configuration, they
- are not replicated otherwise.
-
-
- You can create replicated queues and exchanges with the
- qpid-config management tool like this:
-
-
-qpid-config add queue myqueue --replicate all
-
-
- To create replicated queues and exchanges via the client API, add a
- node entry to the address like this:
-
-
-"myqueue;{create:always,node:{x-declare:{arguments:{'qpid.replicate':all}}}}"
-
-
- There are some built-in exchanges created automatically by the broker, these
- exchanges are never replicated. The built-in exchanges are the default (nameless)
- exchange, the AMQP standard exchanges (amq.direct, amq.topic, amq.fanout and
- amq.match) and the management exchanges (qpid.management, qmf.default.direct and
- qmf.default.topic)
-
-
- Note that if you bind a replicated queue to one of these exchanges, the
- binding will not be replicated, so the queue will not
- have the binding after a fail-over.
-
-
-
-
- Client Connection and Fail-over
-
- Clients can only connect to the primary broker. Backup brokers reject any
- connection attempt by a client. Clients rejected by a backup broker will
- automatically fail-over until they connect to the primary.
-
-
- Clients are configured with the URL for the cluster (details below for
- each type of client). There are two possibilities
-
-
-
- The URL contains multiple addresses, one for each broker in the cluster.
-
-
-
-
- The URL contains a single virtual IP address
- that is assigned to the primary broker by the resource manager.
- This is the recommended configuration.
-
-
-
- In the first case, clients will repeatedly re-try each address in the URL
- until they successfully connect to the primary. In the second case the
- resource manager will assign the virtual IP address to the primary broker,
- so clients only need to re-try on a single address.
-
-
- When the primary broker fails, clients re-try all known cluster addresses
- until they connect to the new primary. The client re-sends any messages
- that were previously sent but not acknowledged by the broker at the time
- of the failure. Similarly messages that have been sent by the broker, but
- not acknowledged by the client, are re-queued.
-
-
- TCP can be slow to detect connection failures. A client can configure a
- connection to use a heartbeat to detect connection
- failure, and can specify a time interval for the heartbeat. If heartbeats
- are in use, failures will be detected no later than twice the heartbeat
- interval. The following sections explain how to enable heartbeat in each
- client.
-
-
- Note: the following sections explain how to configure clients with
- multiple dresses, but if you are using a virtual IP address you only need
- to configure that one address for clients, you don't need to list all the
- addresses.
-
-
- Suppose your cluster has 3 nodes: node1,
- node2 and node3 all using the
- default AMQP port, and you are not using a virtual IP address. To connect
- a client you need to specify the address(es) and set the
- reconnect property to true. The
- following sub-sections show how to connect each type of client.
-
-
- C++ clients
-
- With the C++ client, you specify multiple cluster addresses in a single URL
-
-
- The full grammar for the URL is:
-
-
-url = ["amqp:"][ user ["/" password] "@" ] addr ("," addr)*
-addr = tcp_addr / rmda_addr / ssl_addr / ...
-tcp_addr = ["tcp:"] host [":" port]
-rdma_addr = "rdma:" host [":" port]
-ssl_addr = "ssl:" host [":" port]'
-
-
- You also need to specify the connection option
- reconnect to be true. For example:
-
-
-qpid::messaging::Connection c("node1,node2,node3","{reconnect:true}");
-
-
- Heartbeats are disabled by default. You can enable them by specifying a
- heartbeat interval (in seconds) for the connection via the
- heartbeat option. For example:
-
-
-qpid::messaging::Connection c("node1,node2,node3","{reconnect:true,heartbeat:10}");
-
-
-
- Python clients
-
- With the python client, you specify reconnect=True
- and a list of host:port addresses as
- reconnect_urls when calling
- Connection.establish or
- Connection.open
-
-
-connection = qpid.messaging.Connection.establish("node1", reconnect=True, reconnect_urls=["node1", "node2", "node3"])
-
-
- Heartbeats are disabled by default. You can
- enable them by specifying a heartbeat interval (in seconds) for the
- connection via the 'heartbeat' option. For example:
-
-
-connection = qpid.messaging.Connection.establish("node1", reconnect=True, reconnect_urls=["node1", "node2", "node3"], heartbeat=10)
-
-
-
- Java JMS Clients
-
- In Java JMS clients, client fail-over is handled automatically if it is
- enabled in the connection. You can configure a connection to use
- fail-over using the failover property:
-
-
-
- connectionfactory.qpidConnectionfactory = amqp://guest:guest@clientid/test?brokerlist='tcp://localhost:5672'&failover='failover_exchange'
-
-
- This property can take three values:
-
-
- Fail-over Modes
-
- failover_exchange
-
-
- If the connection fails, fail over to any other broker in the cluster.
-
-
-
-
-
-
- roundrobin
-
-
- If the connection fails, fail over to one of the brokers specified in the brokerlist.
-
-
-
-
-
-
- singlebroker
-
-
- Fail-over is not supported; the connection is to a single broker only.
-
-
-
-
-
-
-
-
- In a Connection URL, heartbeat is set using the heartbeat property, which is an integer corresponding to the heartbeat period in seconds. For instance, the following line from a JNDI properties file sets the heartbeat time out to 3 seconds:
-
-
-
- connectionfactory.qpidConnectionfactory = amqp://guest:guest@clientid/test?brokerlist='tcp://localhost:5672'&heartbeat='3'
-
-
-
-
-
- Security and Access Control.
-
- This section outlines the HA specific aspects of security configuration.
- Please see for
- more details on enabling authentication and setting up Access Control Lists.
-
-
-
- Unless you disable authentication with auth=no in
- your configuration, you must set the options below
- and you must have an ACL file with at least the
- entry described below.
-
-
- Backups will be unable to connect to the primary if
- the security configuration is incorrect. See also
-
-
-
- When authentication is enabled you must set the credentials used by HA
- brokers with following options:
-
-
- HA Security Options
-
-
-
-
-
-
- HA Security Options
-
-
-
-
-
- ha-usernameUSER
- User name for HA brokers. Note this must not include the @QPID suffix.
-
-
- ha-passwordPASS
- Password for HA brokers.
-
-
- ha-mechanismMECHANISM
-
-
- Mechanism for HA brokers. Any mechanism you enable for
- broker-to-broker communication can also be used by a client, so
- do not use ha-mechanism=ANONYMOUS in a secure environment.
-
-
-
-
-
-
-
- This identity is used to authorize federation links from backup to
- primary. It is also used to authorize actions on the backup to replicate
- primary state, for example creating queues and exchanges.
-
-
- When authorization is enabled you must have an Access Control List with the
- following rule to allow HA replication to function. Suppose
- ha-username=USER
-
-
-acl allow USER@QPID all all
-
-
-
-
- Integrating with other Cluster Resource Managers
-
- To integrate with a different resource manager you must configure it to:
-
- Start a qpidd process on each node of the cluster.
- Restart qpidd if it crashes.
- Promote exactly one of the brokers to primary.
- Detect a failure and promote a new primary.
-
-
-
- The qpid-ha command allows you to check if a broker is
- primary, and to promote a backup to primary.
-
-
- To test if a broker is the primary:
-
- qpid-ha -b broker-address status --expect=primary
-
- This will return 0 if the broker at broker-address is the primary,
- non-0 otherwise.
-
-
- To promote a broker to primary:
- qpid-ha --cluster-manager -b broker-address promote
-
-
- Note that promote is considered a "cluster manager
- only" command. Incorrect use of promote outside of the
- cluster manager could create a cluster with multiple primaries. Such a
- cluster will malfunction and lose data. "Cluster manager only" commands
- are not accessible in qpid-ha without the
- --cluster-manager option.
-
-
- To list the full set of commands use:
-
-
-qpid-ha --cluster-manager --help
-
-
-
-
- Using a message store in a cluster
-
- If you use a persistent store for your messages then each broker in a
- cluster will have its own store. If the entire cluster fails and is
- restarted, the *first* broker that becomes primary will recover from its
- store. All the other brokers will clear their stores and get an update
- from the primary to ensure consistency.
-
-
-
-
- Troubleshooting a cluster
-
- This section applies to clusters that are using rgmanager as the
- cluster manager.
-
-
- No primary broker
-
- When you initially start a HA cluster, all brokers are in
- joining mode. The brokers do not automatically select
- a primary, they rely on the cluster manager rgmanager
- to do so. If rgmanager is not running or is not
- configured correctly, brokers will remain in the
- joining state. See
-
-
-
- Authentication and ACL failures
-
- If a broker is unable to establish a connection to another broker in the
- cluster due to authentication or ACL problems the logs may contain
- errors like the following:
-
-info SASL: Authentication failed: SASL(-13): user not found: Password verification failed
-
-
-warning Client closed connection with 320: User anonymous@QPID federation connection denied. Systems with authentication enabled must specify ACL create link rules.
-
-
-warning Client closed connection with 320: ACL denied anonymous@QPID creating a federation link.
-
-
-
- Set the HA security configuration and ACL file as described in . Once the cluster is running and the primary is
- promoted , run:
- qpid-ha status --all
- to make sure that the brokers are running as one cluster.
-
-
-
- Slow recovery times
-
- The following configuration settings affect recovery time. The
- values shown are examples that give fast recovery on a lightly
- loaded system. You should run tests to determine if the values are
- appropriate for your system and load conditions.
-
-
- cluster.conf:
-
-<rm status_poll_interval=1>
-
-
- status_poll_interval is the interval in seconds that the
- resource manager checks the status of managed services. This
- affects how quickly the manager will detect failed services.
-
-
-<ip address="20.0.20.200" monitor_link="yes" sleeptime="0"/>
-
-
- This is a virtual IP address for client traffic.
- monitor_link="yes" means monitor the health of the network interface
- used for the VIP. sleeptime="0" means don't delay when
- failing over the VIP to a new address.
-
-
-
- qpidd.conf
-
-link-maintenance-interval=0.1
-
-
- Interval for backup brokers to check the link to the primary
- re-connect if need be. Default 2 seconds. Can be set lower for
- faster fail-over. Setting too low will result in excessive
- link-checking activity on the broker.
-
-
-link-heartbeat-interval=5
-
-
- Heartbeat interval for federation links. The HA cluster uses
- federation links between the primary and each backup. The
- primary can take up to twice the heartbeat interval to detect a
- failed backup. When a sender sends a message the primary waits
- for all backups to acknowledge before acknowledging to the
- sender. A disconnected backup may cause the primary to block
- senders until it is detected via heartbeat.
-
-
- This interval is also used as the timeout for broker status
- checks by rgmanager. It may take up to this interval for
- rgmanager to detect a hung broker.
-
-
- The default of 120 seconds is very high, you will probably want
- to set this to a lower value. If set too low, under network
- congestion or heavy load, a slow-to-respond broker may be
- re-started by rgmanager.
-
-
-
-
- Total cluster failure
-
- Note: for definition of broker states joining,
- catch-up, ready,
- recovering and active see
-
-
-
- The cluster can only guarantee availability as long as there is at
- least one active primary broker or ready backup broker left alive.
- If all the brokers fail simultaneously, the cluster will fail and
- non-persistent data will be lost.
-
-
- While there is an active primary broker, clients can get service.
- If the active primary fails, one of the "ready" backup
- brokers will take over, recover and become active. Note a backup
- can only be promoted to primary if it is in the "ready"
- state (with the exception of the first primary in a new cluster
- where all brokers are in the "joining" state)
-
-
- Given a stable cluster of N brokers with one active primary and
- N-1 ready backups, the system can sustain up to N-1 failures in
- rapid succession. The surviving broker will be promoted to active
- and continue to give service.
-
-
- However at this point the system cannot
- sustain a failure of the surviving broker until at least one of
- the other brokers recovers, catches up and becomes a ready backup.
- If the surviving broker fails before that the cluster will fail in
- one of two modes (depending on the exact timing of failures)
-
-
- 1. The cluster hangs
-
- All brokers are in joining or catch-up mode. rgmanager tries to
- promote a new primary but cannot find any candidates and so
- gives up. clustat will show that the qpidd services are running
- but the the qpidd-primary service has stopped, something like
- this:
-
-
-Service Name Owner (Last) State
-------- ---- ----- ------ -----
-service:mrg33-qpidd-service 20.0.10.33 started
-service:mrg34-qpidd-service 20.0.10.34 started
-service:mrg35-qpidd-service 20.0.10.35 started
-service:qpidd-primary-service (20.0.10.33) stopped
-
-
- Eventually all brokers become stuck in "joining" mode,
- as shown by: qpid-ha status --all
-
-
- At this point you need to restart the cluster in one of the
- following ways:
-
-
- Restart the entire cluster:
- In luci:your-cluster:Nodes
- click reboot to restart the entire cluster
-
-
- Stop and restart the cluster with
- ccs --stopall; ccs --startall
-
-
- Restart just the Qpid services:In luci:your-cluster:Service Groups
-
- Select all the qpidd (not qpidd-primary) services, click restart
- Select the qpidd-primary service, click restart
-
-
-
- Stop the qpidd-primary and
- qpidd services with clusvcadm,
- then restart (qpidd-primary last)
-
-
-
-
-
- 2. The cluster reboots
-
- A new primary is promoted and the cluster is functional but all
- non-persistent data from before the failure is lost.
-
-
-
-
- Fencing and network partitions
-
- A network partition is a a network failure that divides the
- cluster into two or more sub-clusters, where each broker can
- communicate with brokers in its own sub-cluster but not with
- brokers in other sub-clusters. This condition is also referred to
- as a "split brain".
-
-
- Nodes in one sub-cluster can't tell whether nodes in other
- sub-clusters are dead or are still running but disconnected. We
- cannot allow each sub-cluster to independently declare its own
- qpidd primary and start serving clients, as the cluster will
- become inconsistent. We must ensure only one sub-cluster continues
- to provide service.
-
-
- A quorum determines which sub-cluster
- continues to operate, and power fencing
- ensures that nodes in non-quorate sub-clusters cannot attempt to
- provide service inconsistently. For more information see:
-
-
- https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html-single/High_Availability_Add-On_Overview/index.html,
- chapter 2. Quorum and 4. Fencing.
-
-
-
-
diff --git a/qpid/doc/book/src/cpp-broker/Cheat-Sheet-for-configuring-Exchange-Options.xml b/qpid/doc/book/src/cpp-broker/Cheat-Sheet-for-configuring-Exchange-Options.xml
deleted file mode 100644
index fccdae1b9a..0000000000
--- a/qpid/doc/book/src/cpp-broker/Cheat-Sheet-for-configuring-Exchange-Options.xml
+++ /dev/null
@@ -1,144 +0,0 @@
-
-
-
-
-
-
- Cheat Sheet for configuring Exchange Options
-
-
-
-
- Configuring Exchange Options
-
-
- The C++ Broker M4 or later supports the following additional
- Exchange options in addition to the standard AMQP define options
-
- Exchange Level Message sequencing
-
- Initial Value Exchange
-
-
- Note that these features can be used on any exchange type, that
- has been declared with the options set.
-
- It also supports an additional option to the bind operation on a
- direct exchange
-
- Exclusive binding for key
-
-
-
-
- Exchange Level Message sequencing
-
-
- This feature can be used to place a sequence number into each
- message's headers, based on the order they pass through an
- exchange. The sequencing starts at 0 and then wraps in an AMQP
- int64 type.
-
- The field name used is "qpid.msg_sequence"
-
- To use this feature an exchange needs to be declared specifying
- this option in the declare
-
-
-....
- FieldTable args;
- args.setInt("qpid.msg_sequence",1);
-
-...
- // now declare the exchange
- session.exchangeDeclare(arg::exchange="direct", arg::arguments=args);
-
-
- Then each message passing through that exchange will be numbers
- in the application headers.
-
-
- unit64_t seqNo;
- //after message transfer
- seqNo = message.getHeaders().getAsInt64("qpid.msg_sequence");
-
-
-
- Initial
- Value Exchange
-
-
- This feature caches a last message sent to an exchange. When a
- new binding is created onto the exchange it will then attempt to
- route this cached messaged to the queue, based on the binding.
- This allows for topics or the creation of configurations where a
- new consumer can receive the last message sent to the broker,
- with matching routing.
-
- To use this feature an exchange needs to be declared specifying
- this option in the declare
-
-
-....
- FieldTable args;
- args.setInt("qpid.ive",1);
-
-...
- // now declare the exchange
- session.exchangeDeclare(arg::exchange="direct", arg::arguments=args);
-
-
- now use the exchange in the same way you would use any other
- exchange.
-
-
-
-
- Exclusive
- binding for key
-
-
- Direct exchanges in qpidd support a qpid.exclusive-binding option
- on the bind operation that causes the binding specified to be the
- only one for the given key. I.e. if there is already a binding at
- this exchange with this key it will be atomically updated to bind
- the new queue. This means that the binding can be changed
- concurrently with an incoming stream of messages and each message
- will be routed to exactly one queue.
-
-
-....
- FieldTable args;
- args.setInt("qpid.exclusive-binding",1);
-
- //the following will cause the only binding from amq.direct with 'my-key'
- //to be the one to 'my-queue'; if there were any previous bindings for that
- //key they will be removed. This is atomic w.r.t message routing through the
- //exchange.
- session.exchangeBind(arg::exchange="amq.direct", arg::queue="my-queue",
- arg::bindingKey="my-key", arg::arguments=args);
-
-...
-
-
-
-
diff --git a/qpid/doc/book/src/cpp-broker/Cheat-Sheet-for-configuring-Queue-Options.xml b/qpid/doc/book/src/cpp-broker/Cheat-Sheet-for-configuring-Queue-Options.xml
deleted file mode 100644
index 125372e463..0000000000
--- a/qpid/doc/book/src/cpp-broker/Cheat-Sheet-for-configuring-Queue-Options.xml
+++ /dev/null
@@ -1,198 +0,0 @@
-
-
-
-
-
- Cheat Sheet for configuring Queue Options
-
-
-
- Configuring
- Queue Options
-
-
-
- The C++ Broker M4 or later supports the following additional
- Queue constraints.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- The 0.10 C++ Broker supports the following additional Queue configuration options:
-
-
-
-
-
-
-
-
- Applying Queue Sizing Constraints
-
-
-
- This allows to specify how to size a queue and what to do when
- the sizing constraints have been reached. The queue size can be
- limited by the number messages (message depth) or byte depth on
- the queue.
-
- Once the Queue meets/ exceeds these constraints the follow
- policies can be applied
-
- REJECT - Reject the published message
-
- FLOW_TO_DISK - Flow the messages to disk, to preserve memory
-
- RING - start overwriting messages in a ring based on sizing.
- If head meets tail, advance head
-
- RING_STRICT - start overwriting messages in a ring based on
- sizing. If head meets tail, AND the consumer has the tail message
- acquired it will reject
-
-
- Examples:
-
- Create a queue an auto delete queue that will support 100 000
- bytes, and then REJECT
-
-
-#include "qpid/client/QueueOptions.h"
-
- QueueOptions qo;
- qo.setSizePolicy(REJECT,100000,0);
-
- session.queueDeclare(arg::queue=queue, arg::autoDelete=true, arg::arguments=qo);
-
-
- Create a queue that will support 1000 messages into a RING buffer
-
-
-#include "qpid/client/QueueOptions.h"
-
- QueueOptions qo;
- qo.setSizePolicy(RING,0,1000);
-
- session.queueDeclare(arg::queue=queue, arg::arguments=qo);
-
-
-
- Changing the Queue ordering Behaviors (FIFO/LVQ)
-
-
- The default ordering in a queue in Qpid is FIFO. However
- additional ordering semantics can be used namely LVQ (Last Value
- Queue). Last Value Queue is define as follows.
-
- If I publish symbols RHT, IBM, JAVA, MSFT, and then publish RHT
- before the consumer is able to consume RHT, that message will be
- over written in the queue and the consumer will receive the last
- published value for RHT.
-
- Example:
-
-
-#include "qpid/client/QueueOptions.h"
-
- QueueOptions qo;
- qo.setOrdering(LVQ);
-
- session.queueDeclare(arg::queue=queue, arg::arguments=qo);
-
- .....
- string key;
- qo.getLVQKey(key);
-
- ....
- for each message, set the into application headers before transfer
- message.getHeaders().setString(key,"RHT");
-
-
-
- Notes:
-
- Messages that are dequeued and the re-queued will have the
- following exceptions. a.) if a new message has been queued with
- the same key, the re-queue from the consumer, will combine these
- two messages. b.) If an update happens for a message of the same
- key, after the re-queue, it will not update the re-queued
- message. This is done to protect a client from being able to
- adversely manipulate the queue.
-
- Acquire: When a message is acquired from the queue, no matter
- it's position, it will behave the same as a dequeue
-
- LVQ does not support durable messages. If the queue or
- messages are declared durable on an LVQ, the durability will be
- ignored.
-
-
- A fully worked can be found here
-
-
-
- Setting additional behaviors
-
-
-
- Other
- Clients
-
-
- Note that these options can be set from any client. QueueOptions
- just correctly formats the arguments passed to the QueueDeclare()
- method.
-
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/cpp-broker/HA-Queue-Replication.xml b/qpid/doc/book/src/cpp-broker/HA-Queue-Replication.xml
deleted file mode 100644
index 81b55a3914..0000000000
--- a/qpid/doc/book/src/cpp-broker/HA-Queue-Replication.xml
+++ /dev/null
@@ -1,126 +0,0 @@
-
-
-
-
- Replicating Queues with the HA module
-
- As well as support for an active-passive cluster, the
- HA module allows you to replicate individual queues,
- even if the brokers are not in a cluster. The original
- queue is used as normal. The replica queue is
- updated automatically as messages are added to or removed from the original
- queue.
-
-
-
- It is not safe to modify the replica queue
- other than via the automatic updates from the original. Adding or removing
- messages on the replica queue will make replication inconsistent and may
- cause message loss.
- The HA module does not enforce
- restricted access to the replica queue (as it does in the case of a cluster)
- so it is up to the application to ensure the replica is not used until it has
- been disconnected from the original.
-
-
-
- Replicating queues
-
- To create a replica queue, the HA module must be
- loaded on both the original and replica brokers (it is loaded by default.)
- You also need to set the configuration option:
-
- ha-queue-replication=yes
-
- to enable this feature on a stand-alone broker. It is automatically
- enabled for brokers that are part of a cluster.
-
-
- Suppose that myqueue is a queue on
- node1 and we want to create a replica of
- myqueue on node2 (where both brokers
- are using the default AMQP port.) This is accomplished by the command:
-
- qpid-config --broker=node2 add queue --start-replica node1 myqueue
-
- If myqueue already exists on the replica
- broker you can start replication from the original queue like this:
-
- qpid-ha replicate -b node2 node1 myqueue
-
-
-
-
- Replicating queues between clusters
-
- You can replicate queues between two standalone brokers, between a
- standalone broker and a cluster, or between two clusters (see .) For failover in a cluster there are two cases to
- consider.
-
-
-
-
- When the original queue is on the active node
- of a cluster, failover is automatic. If the active node
- fails, the replication link will automatically reconnect and the
- replica will continue to be updated from the new primary.
-
-
-
-
- When the replica queue is on the active node of a
- cluster, there is no automatic failover. However you can use the
- following workaround.
-
-
-
-
- Work around for fail-over of replica queue in a cluster
-
- When a primary broker fails the cluster resource manager calls a script
- to promote a backup broker to be the new primary. By default this script
- is /etc/init.d/qpidd-primary but you can modify
- that in your cluster.conf file (see .)
-
-
- You can modify this script (on each host in your cluster) by adding
- commands to create your replica queues just before the broker is
- promoted, as indicated in the following exceprt from the script:
-
-start() {
- service qpidd start
- echo -n $"Promoting qpid daemon to cluster primary: "
- ################################
- #### Add your commands here ####
- ################################
- $QPID_HA -b localhost:$QPID_PORT promote
- [ "$?" -eq 0 ] && success || failure
-}
-
- Your commands will be run, and your replicas created, whenever
- the system fails over to a new primary.
-
-
-
-
diff --git a/qpid/doc/book/src/cpp-broker/LVQ.xml b/qpid/doc/book/src/cpp-broker/LVQ.xml
deleted file mode 100644
index b57c6268be..0000000000
--- a/qpid/doc/book/src/cpp-broker/LVQ.xml
+++ /dev/null
@@ -1,181 +0,0 @@
-
-
-
-
- LVQ - Last Value Queue
-
-
- Understanding LVQ
-
- A Last Value Queue is configured with the name of a message header that
- is used as a key. The queue behaves as a normal FIFO queue with the
- exception that when a message is enqueued, any other message in the
- queue with the same value in the key header is removed and discarded.
- Thus, for any given key value, the queue holds only the most recent
- message.
-
-
- The following example illustrates the operation of a Last Value Queue.
- The example shows an empty queue with no consumers and a sequence of
- produced messages. The numbers represent the key for each message.
-
-
- <empty queue>
- 1 =>
- 1
- 2 =>
- 1 2
- 3 =>
- 1 2 3
- 4 =>
- 1 2 3 4
- 2 =>
- 1 3 4 2
- 1 =>
- 3 4 2 1
-
-
- Note that the first four messages are enqueued normally in FIFO order.
- The fifth message has key '2' and is also enqueued on the tail of the
- queue. However the message already in the queue with the same key is
- discarded.
-
-
- If the set of keys used in the messages in a LVQ is constrained, the
- number of messages in the queue shall not exceed the number of
- distinct keys in use.
-
-
-
-
- Common Use-Cases
-
-
-
- LVQ with zero or one consuming subscriptions - In this case, if
- the consumer drops momentarily or is slower than the producer(s),
- it will only receive current information relative to the message
- keys.
-
-
-
-
- LVQ with zero or more browsing subscriptions - A browsing consumer
- can subscribe to the LVQ and get an immediate dump of all of the
- "current" messages and track updates thereafter. Any number of
- independent browsers can subscribe to the same LVQ with the same
- effect. Since messages are never consumed, they only disappear
- when replaced with a newer message with the same key or when their
- TTL expires.
-
-
-
-
-
-
-
- Creating a Last Value Queue
-
- Using Addressing Syntax
-
- A LVQ may be created using directives in the API's address syntax.
- The important argument is "qpid.last_value_queue_key". The following
- Python example shows how a producer of stock price updates can create
- a LVQ to hold the latest stock prices for each ticker symbol. The
- message header used to hold the ticker symbol is called "ticker".
-
-
- conn = Connection(url)
- conn.open()
- sess = conn.session()
- tx = sess.sender("prices;{create:always, node:{type:queue, x-declare:{arguments:{'qpid.last_value_queue_key':'ticker'}}}}")
-
-
-
- Using qpid-config
-
- The same LVQ as shown in the previous example can be created using the
- qpid-config utility:
-
-
- $ qpid-config add queue prices --lvq-key ticker
-
-
-
-
-
- LVQ Example
-
-
- LVQ Sender
-
- from qpid.messaging import Connection, Message
-
- def send(sender, key, message):
- message.properties["ticker"] = key
- sender.send(message)
-
- conn = Connection("localhost")
- conn.open()
- sess = conn.session()
- tx = sess.sender("prices;{create:always, node:{type:queue,x-declare:{arguments:{'qpid.last_value_queue_key':ticker}}}}")
-
- msg = Message("Content")
- send(tx, "key1", msg);
- send(tx, "key2", msg);
- send(tx, "key3", msg);
- send(tx, "key4", msg);
- send(tx, "key2", msg);
- send(tx, "key1", msg);
-
- conn.close()
-
-
-
-
- LVQ Browsing Receiver
-
- from qpid.messaging import Connection, Message
-
- conn = Connection("localhost")
- conn.open()
- sess = conn.session()
- rx = sess.receiver("prices;{mode:browse}")
-
- while True:
- msg = rx.fetch()
- sess.acknowledge()
- print msg
-
-
-
-
-
- Deprecated LVQ Modes
-
- There are two legacy modes (still implemented as of Qpid 0.14)
- controlled by the qpid.last_value_queue and
- qpid.last_value_queue_no_browse argument values. These modes are
- deprecated and should not be used.
-
-
-
diff --git a/qpid/doc/book/src/cpp-broker/Makefile b/qpid/doc/book/src/cpp-broker/Makefile
deleted file mode 100644
index 0266a0f54d..0000000000
--- a/qpid/doc/book/src/cpp-broker/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-include ../Makefile.inc
diff --git a/qpid/doc/book/src/cpp-broker/Managing-CPP-Broker.xml b/qpid/doc/book/src/cpp-broker/Managing-CPP-Broker.xml
deleted file mode 100644
index ab72bf286b..0000000000
--- a/qpid/doc/book/src/cpp-broker/Managing-CPP-Broker.xml
+++ /dev/null
@@ -1,480 +0,0 @@
-
-
-
-
- Managing the C++ Broker
-
- There are quite a few ways to interact with the C++ broker. The
- command line tools
- include:
-
- qpid-route - used to configure federation (a set of federated
- brokers)
-
- qpid-config - used to configure queues, exchanges, bindings
- and list them etc
-
- qpid-tool - used to view management information/statistics
- and call any management actions on the broker
-
- qpid-printevents - used to receive and print QMF events
-
- qpid-ha - used to interact with the High Availability module
-
-
-
-
- Using qpid-config
-
-
- This utility can be used to create queues exchanges and bindings,
- both durable and transient. Always check for latest options by
- running --help command.
-
-
-$ qpid-config --help
-Usage: qpid-config [OPTIONS]
- qpid-config [OPTIONS] exchanges [filter-string]
- qpid-config [OPTIONS] queues [filter-string]
- qpid-config [OPTIONS] add exchange <type> <name> [AddExchangeOptions]
- qpid-config [OPTIONS] del exchange <name>
- qpid-config [OPTIONS] add queue <name> [AddQueueOptions]
- qpid-config [OPTIONS] del queue <name>
- qpid-config [OPTIONS] bind <exchange-name> <queue-name> [binding-key]
- qpid-config [OPTIONS] unbind <exchange-name> <queue-name> [binding-key]
-
-Options:
- -b [ --bindings ] Show bindings in queue or exchange list
- -a [ --broker-addr ] Address (localhost) Address of qpidd broker
- broker-addr is in the form: [username/password@] hostname | ip-address [:<port>]
- ex: localhost, 10.1.1.7:10000, broker-host:10000, guest/guest@localhost
-
-Add Queue Options:
- --durable Queue is durable
- --file-count N (8) Number of files in queue's persistence journal
- --file-size N (24) File size in pages (64Kib/page)
- --max-queue-size N Maximum in-memory queue size as bytes
- --max-queue-count N Maximum in-memory queue size as a number of messages
- --limit-policy [none | reject | flow-to-disk | ring | ring-strict]
- Action taken when queue limit is reached:
- none (default) - Use broker's default policy
- reject - Reject enqueued messages
- flow-to-disk - Page messages to disk
- ring - Replace oldest unacquired message with new
- ring-strict - Replace oldest message, reject if oldest is acquired
- --order [fifo | lvq | lvq-no-browse]
- Set queue ordering policy:
- fifo (default) - First in, first out
- lvq - Last Value Queue ordering, allows queue browsing
- lvq-no-browse - Last Value Queue ordering, browsing clients may lose data
-
-Add Exchange Options:
- --durable Exchange is durable
- --sequence Exchange will insert a 'qpid.msg_sequence' field in the message header
- with a value that increments for each message forwarded.
- --ive Exchange will behave as an 'initial-value-exchange', keeping a reference
- to the last message forwarded and enqueuing that message to newly bound
- queues.
-
-
- Get the summary page
-
-
-$ qpid-config
-Total Exchanges: 6
- topic: 2
- headers: 1
- fanout: 1
- direct: 2
- Total Queues: 7
- durable: 0
- non-durable: 7
-
-
- List the queues
-
-
-$ qpid-config queues
-Queue Name Attributes
-=================================================================
-pub_start
-pub_done
-sub_ready
-sub_done
-perftest0 --durable
-reply-dhcp-100-18-254.bos.redhat.com.20713 auto-del excl
-topic-dhcp-100-18-254.bos.redhat.com.20713 auto-del excl
-
-
-
- List the exchanges with bindings
-
-
-$ ./qpid-config -b exchanges
-Exchange '' (direct)
- bind pub_start => pub_start
- bind pub_done => pub_done
- bind sub_ready => sub_ready
- bind sub_done => sub_done
- bind perftest0 => perftest0
- bind mgmt-3206ff16-fb29-4a30-82ea-e76f50dd7d15 => mgmt-3206ff16-fb29-4a30-82ea-e76f50dd7d15
- bind repl-3206ff16-fb29-4a30-82ea-e76f50dd7d15 => repl-3206ff16-fb29-4a30-82ea-e76f50dd7d15
-Exchange 'amq.direct' (direct)
- bind repl-3206ff16-fb29-4a30-82ea-e76f50dd7d15 => repl-3206ff16-fb29-4a30-82ea-e76f50dd7d15
- bind repl-df06c7a6-4ce7-426a-9f66-da91a2a6a837 => repl-df06c7a6-4ce7-426a-9f66-da91a2a6a837
- bind repl-c55915c2-2fda-43ee-9410-b1c1cbb3e4ae => repl-c55915c2-2fda-43ee-9410-b1c1cbb3e4ae
-Exchange 'amq.topic' (topic)
-Exchange 'amq.fanout' (fanout)
-Exchange 'amq.match' (headers)
-Exchange 'qpid.management' (topic)
- bind mgmt.# => mgmt-3206ff16-fb29-4a30-82ea-e76f50dd7d15
-
-
-
-
- Using qpid-route
-
-
- This utility is to create federated networks of brokers, This
- allows you for forward messages between brokers in a network.
- Messages can be routed statically (using "qpid-route route add")
- where the bindings that control message forwarding are supplied
- in the route. Message routing can also be dynamic (using
- "qpid-route dynamic add") where the messages are automatically
- forwarded to clients based on their bindings to the local broker.
-
-
-$ qpid-route
-Usage: qpid-route [OPTIONS] dynamic add <dest-broker> <src-broker> <exchange> [tag] [exclude-list]
- qpid-route [OPTIONS] dynamic del <dest-broker> <src-broker> <exchange>
-
- qpid-route [OPTIONS] route add <dest-broker> <src-broker> <exchange> <routing-key> [tag] [exclude-list]
- qpid-route [OPTIONS] route del <dest-broker> <src-broker> <exchange> <routing-key>
- qpid-route [OPTIONS] queue add <dest-broker> <src-broker> <exchange> <queue>
- qpid-route [OPTIONS] queue del <dest-broker> <src-broker> <exchange> <queue>
- qpid-route [OPTIONS] route list [<dest-broker>]
- qpid-route [OPTIONS] route flush [<dest-broker>]
- qpid-route [OPTIONS] route map [<broker>]
-
- qpid-route [OPTIONS] link add <dest-broker> <src-broker>
- qpid-route [OPTIONS] link del <dest-broker> <src-broker>
- qpid-route [OPTIONS] link list [<dest-broker>]
-
-Options:
- -v [ --verbose ] Verbose output
- -q [ --quiet ] Quiet output, don't print duplicate warnings
- -d [ --durable ] Added configuration shall be durable
- -e [ --del-empty-link ] Delete link after deleting last route on the link
- -s [ --src-local ] Make connection to source broker (push route)
- -t <transport> [ --transport <transport>]
- Specify transport to use for links, defaults to tcp
-
- dest-broker and src-broker are in the form: [username/password@] hostname | ip-address [:<port>]
- ex: localhost, 10.1.1.7:10000, broker-host:10000, guest/guest@localhost
-
-
- A few examples:
-
-
-qpid-route dynamic add host1 host2 fed.topic
-qpid-route dynamic add host2 host1 fed.topic
-
-qpid-route -v route add host1 host2 hub1.topic hub2.topic.stock.buy
-qpid-route -v route add host1 host2 hub1.topic hub2.topic.stock.sell
-qpid-route -v route add host1 host2 hub1.topic 'hub2.topic.stock.#'
-qpid-route -v route add host1 host2 hub1.topic 'hub2.#'
-qpid-route -v route add host1 host2 hub1.topic 'hub2.topic.#'
-qpid-route -v route add host1 host2 hub1.topic 'hub2.global.#'
-
-
- The link map feature can be used to display the entire federated
- network configuration by supplying a single broker as an entry
- point:
-
-
-$ qpid-route route map localhost:10001
-
-Finding Linked Brokers:
- localhost:10001... Ok
- localhost:10002... Ok
- localhost:10003... Ok
- localhost:10004... Ok
- localhost:10005... Ok
- localhost:10006... Ok
- localhost:10007... Ok
- localhost:10008... Ok
-
-Dynamic Routes:
-
- Exchange fed.topic:
- localhost:10002 <=> localhost:10001
- localhost:10003 <=> localhost:10002
- localhost:10004 <=> localhost:10002
- localhost:10005 <=> localhost:10002
- localhost:10006 <=> localhost:10005
- localhost:10007 <=> localhost:10006
- localhost:10008 <=> localhost:10006
-
- Exchange fed.direct:
- localhost:10002 => localhost:10001
- localhost:10004 => localhost:10003
- localhost:10003 => localhost:10002
- localhost:10001 => localhost:10004
-
-Static Routes:
-
- localhost:10003(ex=amq.direct) <= localhost:10005(ex=amq.direct) key=rkey
- localhost:10003(ex=amq.direct) <= localhost:10005(ex=amq.direct) key=rkey2
-
-
-
-
- Using qpid-tool
-
-
- This utility provided a telnet style interface to be able to
- view, list all stats and action
- all the methods. Simple capture below. Best to just play with it
- and mail the list if you have
- questions or want features added.
-
-
-qpid:
-qpid: help
-Management Tool for QPID
-Commands:
- list - Print summary of existing objects by class
- list <className> - Print list of objects of the specified class
- list <className> all - Print contents of all objects of specified class
- list <className> active - Print contents of all non-deleted objects of specified class
- list <list-of-IDs> - Print contents of one or more objects (infer className)
- list <className> <list-of-IDs> - Print contents of one or more objects
- list is space-separated, ranges may be specified (i.e. 1004-1010)
- call <ID> <methodName> <args> - Invoke a method on an object
- schema - Print summary of object classes seen on the target
- schema <className> - Print details of an object class
- set time-format short - Select short timestamp format (default)
- set time-format long - Select long timestamp format
- quit or ^D - Exit the program
-qpid: list
-Management Object Types:
- ObjectType Active Deleted
- ================================
- qpid.binding 21 0
- qpid.broker 1 0
- qpid.client 1 0
- qpid.exchange 6 0
- qpid.queue 13 0
- qpid.session 4 0
- qpid.system 1 0
- qpid.vhost 1 0
-qpid: list qpid.system
-Objects of type qpid.system
- ID Created Destroyed Index
- ==================================
- 1000 21:00:02 - host
-qpid: list 1000
-Object of type qpid.system: (last sample time: 21:26:02)
- Type Element 1000
- =======================================================
- config sysId host
- config osName Linux
- config nodeName localhost.localdomain
- config release 2.6.24.4-64.fc8
- config version #1 SMP Sat Mar 29 09:15:49 EDT 2008
- config machine x86_64
-qpid: schema queue
-Schema for class 'qpid.queue':
- Element Type Unit Access Notes Description
- ===================================================================================================================
- vhostRef reference ReadCreate index
- name short-string ReadCreate index
- durable boolean ReadCreate
- autoDelete boolean ReadCreate
- exclusive boolean ReadCreate
- arguments field-table ReadOnly Arguments supplied in queue.declare
- storeRef reference ReadOnly Reference to persistent queue (if durable)
- msgTotalEnqueues uint64 message Total messages enqueued
- msgTotalDequeues uint64 message Total messages dequeued
- msgTxnEnqueues uint64 message Transactional messages enqueued
- msgTxnDequeues uint64 message Transactional messages dequeued
- msgPersistEnqueues uint64 message Persistent messages enqueued
- msgPersistDequeues uint64 message Persistent messages dequeued
- msgDepth uint32 message Current size of queue in messages
- msgDepthHigh uint32 message Current size of queue in messages (High)
- msgDepthLow uint32 message Current size of queue in messages (Low)
- byteTotalEnqueues uint64 octet Total messages enqueued
- byteTotalDequeues uint64 octet Total messages dequeued
- byteTxnEnqueues uint64 octet Transactional messages enqueued
- byteTxnDequeues uint64 octet Transactional messages dequeued
- bytePersistEnqueues uint64 octet Persistent messages enqueued
- bytePersistDequeues uint64 octet Persistent messages dequeued
- byteDepth uint32 octet Current size of queue in bytes
- byteDepthHigh uint32 octet Current size of queue in bytes (High)
- byteDepthLow uint32 octet Current size of queue in bytes (Low)
- enqueueTxnStarts uint64 transaction Total enqueue transactions started
- enqueueTxnCommits uint64 transaction Total enqueue transactions committed
- enqueueTxnRejects uint64 transaction Total enqueue transactions rejected
- enqueueTxnCount uint32 transaction Current pending enqueue transactions
- enqueueTxnCountHigh uint32 transaction Current pending enqueue transactions (High)
- enqueueTxnCountLow uint32 transaction Current pending enqueue transactions (Low)
- dequeueTxnStarts uint64 transaction Total dequeue transactions started
- dequeueTxnCommits uint64 transaction Total dequeue transactions committed
- dequeueTxnRejects uint64 transaction Total dequeue transactions rejected
- dequeueTxnCount uint32 transaction Current pending dequeue transactions
- dequeueTxnCountHigh uint32 transaction Current pending dequeue transactions (High)
- dequeueTxnCountLow uint32 transaction Current pending dequeue transactions (Low)
- consumers uint32 consumer Current consumers on queue
- consumersHigh uint32 consumer Current consumers on queue (High)
- consumersLow uint32 consumer Current consumers on queue (Low)
- bindings uint32 binding Current bindings
- bindingsHigh uint32 binding Current bindings (High)
- bindingsLow uint32 binding Current bindings (Low)
- unackedMessages uint32 message Messages consumed but not yet acked
- unackedMessagesHigh uint32 message Messages consumed but not yet acked (High)
- unackedMessagesLow uint32 message Messages consumed but not yet acked (Low)
- messageLatencySamples delta-time nanosecond Broker latency through this queue (Samples)
- messageLatencyMin delta-time nanosecond Broker latency through this queue (Min)
- messageLatencyMax delta-time nanosecond Broker latency through this queue (Max)
- messageLatencyAverage delta-time nanosecond Broker latency through this queue (Average)
-Method 'purge' Discard all messages on queue
-qpid: list queue
-Objects of type qpid.queue
- ID Created Destroyed Index
- ===========================================================================
- 1012 21:08:13 - 1002.pub_start
- 1014 21:08:13 - 1002.pub_done
- 1016 21:08:13 - 1002.sub_ready
- 1018 21:08:13 - 1002.sub_done
- 1020 21:08:13 - 1002.perftest0
- 1038 21:09:08 - 1002.mgmt-3206ff16-fb29-4a30-82ea-e76f50dd7d15
- 1040 21:09:08 - 1002.repl-3206ff16-fb29-4a30-82ea-e76f50dd7d15
- 1046 21:09:32 - 1002.mgmt-df06c7a6-4ce7-426a-9f66-da91a2a6a837
- 1048 21:09:32 - 1002.repl-df06c7a6-4ce7-426a-9f66-da91a2a6a837
- 1054 21:10:01 - 1002.mgmt-c55915c2-2fda-43ee-9410-b1c1cbb3e4ae
- 1056 21:10:01 - 1002.repl-c55915c2-2fda-43ee-9410-b1c1cbb3e4ae
- 1063 21:26:00 - 1002.mgmt-8d621997-6356-48c3-acab-76a37081d0f3
- 1065 21:26:00 - 1002.repl-8d621997-6356-48c3-acab-76a37081d0f3
-qpid: list 1020
-Object of type qpid.queue: (last sample time: 21:26:02)
- Type Element 1020
- ==========================================================================
- config vhostRef 1002
- config name perftest0
- config durable False
- config autoDelete False
- config exclusive False
- config arguments {'qpid.max_size': 0, 'qpid.max_count': 0}
- config storeRef NULL
- inst msgTotalEnqueues 500000 messages
- inst msgTotalDequeues 500000
- inst msgTxnEnqueues 0
- inst msgTxnDequeues 0
- inst msgPersistEnqueues 0
- inst msgPersistDequeues 0
- inst msgDepth 0
- inst msgDepthHigh 0
- inst msgDepthLow 0
- inst byteTotalEnqueues 512000000 octets
- inst byteTotalDequeues 512000000
- inst byteTxnEnqueues 0
- inst byteTxnDequeues 0
- inst bytePersistEnqueues 0
- inst bytePersistDequeues 0
- inst byteDepth 0
- inst byteDepthHigh 0
- inst byteDepthLow 0
- inst enqueueTxnStarts 0 transactions
- inst enqueueTxnCommits 0
- inst enqueueTxnRejects 0
- inst enqueueTxnCount 0
- inst enqueueTxnCountHigh 0
- inst enqueueTxnCountLow 0
- inst dequeueTxnStarts 0
- inst dequeueTxnCommits 0
- inst dequeueTxnRejects 0
- inst dequeueTxnCount 0
- inst dequeueTxnCountHigh 0
- inst dequeueTxnCountLow 0
- inst consumers 0 consumers
- inst consumersHigh 0
- inst consumersLow 0
- inst bindings 1 binding
- inst bindingsHigh 1
- inst bindingsLow 1
- inst unackedMessages 0 messages
- inst unackedMessagesHigh 0
- inst unackedMessagesLow 0
- inst messageLatencySamples 0
- inst messageLatencyMin 0
- inst messageLatencyMax 0
- inst messageLatencyAverage 0
-qpid:
-
-
-
-
- Using
- qpid-printevents
-
-
- This utility connects to one or more brokers and collects events,
- printing out a line per event.
-
-
-$ qpid-printevents --help
-Usage: qpid-printevents [options] [broker-addr]...
-
-Collect and print events from one or more Qpid message brokers. If no broker-
-addr is supplied, qpid-printevents will connect to 'localhost:5672'. broker-
-addr is of the form: [username/password@] hostname | ip-address [:<port>] ex:
-localhost, 10.1.1.7:10000, broker-host:10000, guest/guest@localhost
-
-Options:
- -h, --help show this help message and exit
-
-
- You get the idea... have fun!
-
-
-
- Using qpid-ha
- This utility lets you monitor and control the activity of the clustering behavior provided by the HA module.
-
-
- []
-
-Commands are:
-
- ready Test if a backup broker is ready.
- query Print HA configuration settings.
- set Set HA configuration settings.
- promote Promote broker from backup to primary.
- replicate Set up replication from on to on the current broker.
-
-For help with a command type: qpid-ha --help
-]]>
-
-
-
diff --git a/qpid/doc/book/src/cpp-broker/QMF-Python-Console-Tutorial.xml b/qpid/doc/book/src/cpp-broker/QMF-Python-Console-Tutorial.xml
deleted file mode 100644
index 2cb802671b..0000000000
--- a/qpid/doc/book/src/cpp-broker/QMF-Python-Console-Tutorial.xml
+++ /dev/null
@@ -1,894 +0,0 @@
-
-
-
-
- QMF Python Console Tutorial
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Prerequisite
- - Install Qpid Messaging
-
-
-
- QMF uses AMQP Messaging (QPid) as its means of communication. To
- use QMF, Qpid messaging must be installed somewhere in the
- network. Qpid can be downloaded as source from Apache, is
- packaged with a number of Linux distributions, and can be
- purchased from commercial vendors that use Qpid. Please see
- http://qpid.apache.orgfor
- information as to where to get Qpid Messaging.
-
- Qpid Messaging includes a message broker (qpidd) which typically
- runs as a daemon on a system. It also includes client bindings in
- various programming languages. The Python-language client library
- includes the QMF console libraries needed for this tutorial.
-
- Please note that Qpid Messaging has two broker implementations.
- One is implemented in C++ and the other in Java. At press time,
- QMF is supported only by the C++ broker.
-
- If the goal is to get the tutorial examples up and running as
- quickly as possible, all of the Qpid components can be installed
- on a single system (even a laptop). For more realistic
- deployments, the broker can be deployed on a server and the
- client/QMF libraries installed on other systems.
-
-
-
-
- Synchronous
- Console Operations
-
-
-
- The Python console API for QMF can be used in a synchronous
- style, an asynchronous style, or a combination of both.
- Synchronous operations are conceptually simple and are well
- suited for user-interactive tasks. All operations are performed
- in the context of a Python function call. If communication over
- the message bus is required to complete an operation, the
- function call blocks and waits for the expected result (or
- timeout failure) before returning control to the caller.
-
- Creating a QMF Console Session and Attaching to a Broker
-
-
-
- For the purposes of this tutorial, code examples will be shown as
- they are entered in an interactive python session.
-
-
-$ python
-Python 2.5.2 (r252:60911, Sep 30 2008, 15:41:38)
-[GCC 4.3.2 20080917 (Red Hat 4.3.2-4)] on linux2
-Type "help", "copyright", "credits" or "license" for more information.
->>>
-
-
- We will begin by importing the required libraries. If the Python
- client is properly installed, these libraries will be found
- normally by the Python interpreter.
-
-
->>> from qmf.console import Session
-
-
- We must now create a Session object to manage this QMF
- console session.
-
-
->>> sess = Session()
-
-
- If no arguments are supplied to the creation of Session,
- it defaults to synchronous-only operation. It also defaults to
- user-management of connections. More on this in a moment.
-
- We will now establish a connection to the messaging broker. If
- the broker daemon is running on the local host, simply use the
- following:
-
-
->>> broker = sess.addBroker()
-
-
- If the messaging broker is on a remote host, supply the URL to
- the broker in the addBroker function call. Here's how to
- connect to a local broker using the URL.
-
-
->>> broker = sess.addBroker("amqp://localhost")
-
-
- The call to addBroker is synchronous and will return
- only after the connection has been successfully established or
- has failed. If a failure occurs, addBroker will raise an
- exception that can be handled by the console script.
-
-
->>> try:
-... broker = sess.addBroker("amqp://localhost:1000")
-... except:
-... print "Connection Failed"
-...
-Connection Failed
->>>
-
-
- This operation fails because there is no Qpid Messaging broker
- listening on port 1000 (the default port for qpidd is 5672).
-
- If preferred, the QMF session can manage the connection for you.
- In this case, addBroker returns immediately and the
- session attempts to establish the connection in the background.
- This will be covered in detail in the section on asynchronous
- operations.
-
-
-
-
- Accessing
- Managed Objects
-
-
-
- The Python console API provides access to remotely managed
- objects via a proxy model. The API gives the client an
- object that serves as a proxy representing the "real" object
- being managed on the agent application. Operations performed on
- the proxy result in the same operations on the real object.
-
- The following examples assume prior knowledge of the kinds of
- objects that are actually available to be managed. There is a
- section later in this tutorial that describes how to discover
- what is manageable on the QMF bus.
-
- Proxy objects are obtained by calling the
- Session.getObjects function.
-
- To illustrate, we'll get a list of objects representing queues in
- the message broker itself.
-
-
->>> queues = sess.getObjects(_class="queue", _package="org.apache.qpid.broker")
-
-
- queues is an array of proxy objects representing real
- queues on the message broker. A proxy object can be printed to
- display a description of the object.
-
-
->>> for q in queues:
-... print q
-...
-org.apache.qpid.broker:queue[0-1537-1-0-58] 0-0-1-0-1152921504606846979:reply-localhost.localdomain.32004
-org.apache.qpid.broker:queue[0-1537-1-0-61] 0-0-1-0-1152921504606846979:topic-localhost.localdomain.32004
->>>
-
-
- Viewing Properties and Statistics of an Object
-
-
-
- Let us now focus our attention on one of the queue objects.
-
-
->>> queue = queues[0]
-
-
- The attributes of an object are partitioned into
- properties and statistics. Though the
- distinction is somewhat arbitrary, properties tend to
- be fairly static and may also be large and statistics
- tend to change rapidly and are relatively small (counters, etc.).
-
- There are two ways to view the properties of an object. An array
- of properties can be obtained using the getProperties
- function:
-
-
->>> props = queue.getProperties()
->>> for prop in props:
-... print prop
-...
-(vhostRef, 0-0-1-0-1152921504606846979)
-(name, u'reply-localhost.localdomain.32004')
-(durable, False)
-(autoDelete, True)
-(exclusive, True)
-(arguments, {})
->>>
-
-
- The getProperties function returns an array of tuples.
- Each tuple consists of the property descriptor and the property
- value.
-
- A more convenient way to access properties is by using the
- attribute of the proxy object directly:
-
-
->>> queue.autoDelete
-True
->>> queue.name
-u'reply-localhost.localdomain.32004'
->>>
-
-
- Statistics are accessed in the same way:
-
-
->>> stats = queue.getStatistics()
->>> for stat in stats:
-... print stat
-...
-(msgTotalEnqueues, 53)
-(msgTotalDequeues, 53)
-(msgTxnEnqueues, 0)
-(msgTxnDequeues, 0)
-(msgPersistEnqueues, 0)
-(msgPersistDequeues, 0)
-(msgDepth, 0)
-(byteDepth, 0)
-(byteTotalEnqueues, 19116)
-(byteTotalDequeues, 19116)
-(byteTxnEnqueues, 0)
-(byteTxnDequeues, 0)
-(bytePersistEnqueues, 0)
-(bytePersistDequeues, 0)
-(consumerCount, 1)
-(consumerCountHigh, 1)
-(consumerCountLow, 1)
-(bindingCount, 2)
-(bindingCountHigh, 2)
-(bindingCountLow, 2)
-(unackedMessages, 0)
-(unackedMessagesHigh, 0)
-(unackedMessagesLow, 0)
-(messageLatencySamples, 0)
-(messageLatencyMin, 0)
-(messageLatencyMax, 0)
-(messageLatencyAverage, 0)
->>>
-
-
- or alternatively:
-
-
->>> queue.byteTotalEnqueues
-19116
->>>
-
-
- The proxy objects do not automatically track changes that occur
- on the real objects. For example, if the real queue enqueues more
- bytes, viewing the byteTotalEnqueues statistic will show
- the same number as it did the first time. To get updated data on
- a proxy object, use the update function call:
-
-
->>> queue.update()
->>> queue.byteTotalEnqueues
-19783
->>>
-
-
- Be Advised
-
- The update method was added after the M4 release
- of Qpid/Qmf. It may not be available in your
- distribution.
-
-
-
-
-
- Invoking
- Methods on an Object
-
-
-
- Up to this point, we have used the QMF Console API to find
- managed objects and view their attributes, a read-only activity.
- The next topic to illustrate is how to invoke a method on a
- managed object. Methods allow consoles to control the managed
- agents by either triggering a one-time action or by changing the
- values of attributes in an object.
-
- First, we'll cover some background information about methods. A
- QMF object class (of which a QMF object is an
- instance), may have zero or more methods. To obtain a list of
- methods available for an object, use the getMethods
- function.
-
-
->>> methodList = queue.getMethods()
-
-
- getMethods returns an array of method descriptors (of
- type qmf.console.SchemaMethod). To get a summary of a method, you
- can simply print it. The _repr_ function returns a
- string that looks like a function prototype.
-
-
->>> print methodList
-[purge(request)]
->>>
-
-
- For the purposes of illustration, we'll use a more interesting
- method available on the broker object which represents
- the connected Qpid message broker.
-
-
->>> br = sess.getObjects(_class="broker", _package="org.apache.qpid.broker")[0]
->>> mlist = br.getMethods()
->>> for m in mlist:
-... print m
-...
-echo(sequence, body)
-connect(host, port, durable, authMechanism, username, password, transport)
-queueMoveMessages(srcQueue, destQueue, qty)
->>>
-
-
- We have just learned that the broker object has three
- methods: echo, connect, and
- queueMoveMessages. We'll use the echo method to
- "ping" the broker.
-
-
->>> result = br.echo(1, "Message Body")
->>> print result
-OK (0) - {'body': u'Message Body', 'sequence': 1}
->>> print result.status
-0
->>> print result.text
-OK
->>> print result.outArgs
-{'body': u'Message Body', 'sequence': 1}
->>>
-
-
- In the above example, we have invoked the echo method on
- the instance of the broker designated by the proxy "br" with a
- sequence argument of 1 and a body argument of "Message Body". The
- result indicates success and contains the output arguments (in
- this case copies of the input arguments).
-
- To be more precise... Calling echo on the proxy causes
- the input arguments to be marshalled and sent to the remote agent
- where the method is executed. Once the method execution
- completes, the output arguments are marshalled and sent back to
- the console to be stored in the method result.
-
- You are probably wondering how you are supposed to know what
- types the arguments are and which arguments are input, which are
- output, or which are both. This will be addressed later in the
- "Discovering what Kinds of Objects are Available" section.
-
-
-
-
-
-
- Asynchronous
- Console Operations
-
-
-
- QMF is built on top of a middleware messaging layer (Qpid
- Messaging). Because of this, QMF can use some communication
- patterns that are difficult to implement using network transports
- like UDP, TCP, or SSL. One of these patterns is called the
- Publication and Subscription pattern (pub-sub for
- short). In the pub-sub pattern, data sources publish
- information without a particular destination in mind. Data sinks
- (destinations) subscribe using a set of criteria that
- describes what kind of data they are interested in receiving.
- Data published by a source may be received by zero, one, or many
- subscribers.
-
- QMF uses the pub-sub pattern to distribute events, object
- creation and deletion, and changes to properties and statistics.
- A console application using the QMF Console API can receive these
- asynchronous and unsolicited events and updates. This is useful
- for applications that store and analyze events and/or statistics.
- It is also useful for applications that react to certain events
- or conditions.
-
- Note that console applications may always use the synchronous
- mechanisms.
-
-
-
- Creating a Console Class to Receive Asynchronous Data
-
-
-
- Asynchronous API operation occurs when the console application
- supplies a Console object to the session manager. The
- Console object (which overrides the
- qmf.console.Console class) handles all asynchronously
- arriving data. The Console class has the following
- methods. Any number of these methods may be overridden by the
- console application. Any method that is not overridden defaults
- to a null handler which takes no action when invoked.
-
QMF Python Console Class Methods
-
-
-
- Method
-
-
- Arguments
-
-
- Invoked when...
-
-
-
-
- brokerConnected
-
-
- broker
-
-
- a connection to a broker is established
-
-
-
-
- brokerDisconnected
-
-
- broker
-
-
- a connection to a broker is lost
-
-
-
-
- newPackage
-
-
- name
-
-
- a new package is seen on the QMF bus
-
-
-
-
- newClass
-
-
- kind, classKey
-
-
- a new class (event or object) is seen on the QMF bus
-
-
-
-
- newAgent
-
-
- agent
-
-
- a new agent appears on the QMF bus
-
-
-
-
- delAgent
-
-
- agent
-
-
- an agent disconnects from the QMF bus
-
-
-
-
- objectProps
-
-
- broker, object
-
-
- the properties of an object are published
-
-
-
-
- objectStats
-
-
- broker, object
-
-
- the statistics of an object are published
-
-
-
-
- event
-
-
- broker, event
-
-
- an event is published
-
-
-
-
- heartbeat
-
-
- agent, timestamp
-
-
- a heartbeat is published by an agent
-
-
-
-
- brokerInfo
-
-
- broker
-
-
- information about a connected broker is available to be
- queried
-
-
-
-
- methodResponse
-
-
- broker, seq, response
-
-
- the result of an asynchronous method call is received
-
-
-
-
- Supplied with the API is a class called DebugConsole.
- This is a test Console instance that overrides all of
- the methods such that arriving asynchronous data is printed to
- the screen. This can be used to see all of the arriving
- asynchronous data.
-
-
-
-
- Receiving
- Events
-
-
-
- We'll start the example from the beginning to illustrate the
- reception and handling of events. In this example, we will create
- a Console class that handles broker-connect,
- broker-disconnect, and event messages. We will also allow the
- session manager to manage the broker connection for us.
-
- Begin by importing the necessary classes:
-
-
->>> from qmf.console import Session, Console
-
-
- Now, create a subclass of Console that handles the three
- message types:
-
-
->>> class EventConsole(Console):
-... def brokerConnected(self, broker):
-... print "brokerConnected:", broker
-... def brokerDisconnected(self, broker):
-... print "brokerDisconnected:", broker
-... def event(self, broker, event):
-... print "event:", event
-...
->>>
-
-
- Make an instance of the new class:
-
-
->>> myConsole = EventConsole()
-
-
- Create a Session class using the console instance. In
- addition, we shall request that the session manager do the
- connection management for us. Notice also that we are requesting
- that the session manager not receive objects or heartbeats. Since
- this example is concerned only with events, we can optimize the
- use of the messaging bus by telling the session manager not to
- subscribe for object updates or heartbeats.
-
-
->>> sess = Session(myConsole, manageConnections=True, rcvObjects=False, rcvHeartbeats=False)
->>> broker = sess.addBroker()
->>>
-
-
- Once the broker is added, we will begin to receive asynchronous
- events (assuming there is a functioning broker available to
- connect to).
-
-
-brokerConnected: Broker connected at: localhost:5672
-event: Thu Jan 29 19:53:19 2009 INFO org.apache.qpid.broker:bind broker=localhost:5672 ...
-
-
-
-
- Receiving
- Objects
-
-
-
- To illustrate asynchronous handling of objects, a small console
- program is supplied. The entire program is shown below for
- convenience. We will then go through it part-by-part to explain
- its design.
-
- This console program receives object updates and displays a set
- of statistics as they change. It focuses on broker queue objects.
-
-
-# Import needed classes
-from qmf.console import Session, Console
-from time import sleep
-
-# Declare a dictionary to map object-ids to queue names
-queueMap = {}
-
-# Customize the Console class to receive object updates.
-class MyConsole(Console):
-
- # Handle property updates
- def objectProps(self, broker, record):
-
- # Verify that we have received a queue object. Exit otherwise.
- classKey = record.getClassKey()
- if classKey.getClassName() != "queue":
- return
-
- # If this object has not been seen before, create a new mapping from objectID to name
- oid = record.getObjectId()
- if oid not in queueMap:
- queueMap[oid] = record.name
-
- # Handle statistic updates
- def objectStats(self, broker, record):
-
- # Ignore updates for objects that are not in the map
- oid = record.getObjectId()
- if oid not in queueMap:
- return
-
- # Print the queue name and some statistics
- print "%s: enqueues=%d dequeues=%d" % (queueMap[oid], record.msgTotalEnqueues, record.msgTotalDequeues)
-
- # if the delete-time is non-zero, this object has been deleted. Remove it from the map.
- if record.getTimestamps()[2] > 0:
- queueMap.pop(oid)
-
-# Create an instance of the QMF session manager. Set userBindings to True to allow
-# this program to choose which objects classes it is interested in.
-sess = Session(MyConsole(), manageConnections=True, rcvEvents=False, userBindings=True)
-
-# Register to receive updates for broker:queue objects.
-sess.bindClass("org.apache.qpid.broker", "queue")
-broker = sess.addBroker()
-
-# Suspend processing while the asynchronous operations proceed.
-try:
- while True:
- sleep(1)
-except:
- pass
-
-# Disconnect the broker before exiting.
-sess.delBroker(broker)
-
-
- Before going through the code in detail, it is important to
- understand the differences between synchronous object access and
- asynchronous object access. When objects are obtained
- synchronously (using the getObjects function), the
- resulting proxy contains all of the object's attributes, both
- properties and statistics. When object data is published
- asynchronously, the properties and statistics are sent separately
- and only when the session first connects or when the content
- changes.
-
- The script wishes to print the queue name with the updated
- statistics, but the queue name is only present with the
- properties. For this reason, the program needs to keep some state
- to correlate property updates with their corresponding statistic
- updates. This can be done using the ObjectId that
- uniquely identifies the object.
-
-
- # If this object has not been seen before, create a new mapping from objectID to name
- oid = record.getObjectId()
- if oid not in queueMap:
- queueMap[oid] = record.name
-
-
- The above code fragment gets the object ID from the proxy and
- checks to see if it is in the map (i.e. has been seen before). If
- it is not in the map, a new map entry is inserted mapping the
- object ID to the queue's name.
-
-
- # if the delete-time is non-zero, this object has been deleted. Remove it from the map.
- if record.getTimestamps()[2] > 0:
- queueMap.pop(oid)
-
-
- This code fragment detects the deletion of a managed object.
- After reporting the statistics, it checks the timestamps of the
- proxy. getTimestamps returns a list of timestamps in the
- order:
-
-
- Current - The timestamp of the sending of this update.
-
-
- Create - The time of the object's creation
-
-
- Delete - The time of the object's deletion (or zero if
- not deleted)
-
-
- This code structure is useful for getting information about
- very-short-lived objects. It is possible that an object will be
- created, used, and deleted within an update interval. In this
- case, the property update will arrive first, followed by the
- statistic update. Both will indicate that the object has been
- deleted but a full accounting of the object's existence and final
- state is reported.
-
-
-# Create an instance of the QMF session manager. Set userBindings to True to allow
-# this program to choose which objects classes it is interested in.
-sess = Session(MyConsole(), manageConnections=True, rcvEvents=False, userBindings=True)
-
-# Register to receive updates for broker:queue objects.
-sess.bindClass("org.apache.qpid.broker", "queue")
-
-
- The above code is illustrative of the way a console application
- can tune its use of the QMF bus. Note that rcvEvents is
- set to False. This prevents the reception of events. Note also
- the use of userBindings=True and the call to
- sess.bindClass. If userBindings is set to False
- (its default), the session will receive object updates for all
- classes of object. In the case above, the application is only
- interested in broker:queue objects and reduces its bus bandwidth
- usage by requesting updates to only that class.
- bindClass may be called as many times as desired to add
- classes to the list of subscribed classes.
-
-
-
-
- Asynchronous Method Calls and Method Timeouts
-
-
-
- Method calls can also be invoked asynchronously. This is useful
- if a large number of calls needs to be made in a short time
- because the console application will not need to wait for the
- complete round-trip delay for each call.
-
- Method calls are synchronous by default. They can be made
- asynchronous by adding the keyword-argument _async=True
- to the method call.
-
- In a synchronous method call, the return value is the method
- result. When a method is called asynchronously, the return value
- is a sequence number that can be used to correlate the eventual
- result to the request. This sequence number is passed as an
- argument to the methodResponse function in the
- Console interface.
-
- It is important to realize that the methodResponse
- function may be invoked before the asynchronous call returns.
- Make sure your code is written to handle this possibility.
-
-
-
-
-
- Discovering what Kinds of Objects are Available
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/cpp-broker/Qpid-Interoperability-Documentation.xml b/qpid/doc/book/src/cpp-broker/Qpid-Interoperability-Documentation.xml
deleted file mode 100644
index 74546693df..0000000000
--- a/qpid/doc/book/src/cpp-broker/Qpid-Interoperability-Documentation.xml
+++ /dev/null
@@ -1,377 +0,0 @@
-
-
-
-
- Qpid Interoperability Documentation
-
-
- This page documents the various interoperable features of the
- Qpid clients.
-
-
- SASL
-
-
-
-
-
-
- Standard
- Mechanisms
-
-
-
-
-
- This table list the various SASL mechanisms that each component
- supports. The version listed shows when this
- functionality was added to the product.
-
-
-
- 1: Support for these will be in M3 (currently available on
- trunk).
-
-
- 2: C++ Broker uses Cyrus SASL which
- supports CRAM-MD5 and GSSAPI but these have not been tested yet
-
-
-
-
- Custom
- Mechanisms
-
-
-
- There have been some custom mechanisms added to our
- implementations.
-
-
- AMQPLAIN
-
-
-
- CRAM-MD5-HASHED
-
- The Java SASL implementations require that you have the password
- of the user to validate the incoming request. This then means
- that the user's password must be stored on disk. For this to be
- secure either the broker must encrypt the password file or the
- need for the password being stored must be removed.
-
- The CRAM-MD5-HASHED SASL plugin removes the need for the plain
- text password to be stored on disk. The mechanism defers all
- functionality to the build in CRAM-MD5 module the only change is
- on the client side where it generates the hash of the password
- and uses that value as the password. This means that the Java
- Broker only need store the password hash on the file system.
- While a one way hash is not very secure compared to other forms
- of encryption in environments where the having the password in
- plain text is unacceptable this will provide and additional layer
- to protect the password. In particular this offers some
- protection where the same password may be shared amongst many
- systems. It offers no real extra protection against attacks on
- the broker (the secret is now the hash rather than the password).
-
-
-
-
-
diff --git a/qpid/doc/book/src/cpp-broker/Qpid-Management-Framework.xml b/qpid/doc/book/src/cpp-broker/Qpid-Management-Framework.xml
deleted file mode 100644
index 89bfe9d95e..0000000000
--- a/qpid/doc/book/src/cpp-broker/Qpid-Management-Framework.xml
+++ /dev/null
@@ -1,944 +0,0 @@
-
-
-
-
- Qpid Management Framework
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Please visit the for information
- about the future of QMF.
-
-
- What Is QMF
-
-
-
- QMF (Qpid Management Framework) is a general-purpose management
- bus built on Qpid Messaging. It takes advantage of the
- scalability, security, and rich capabilities of Qpid to provide
- flexible and easy-to-use manageability to a large set of
- applications.
-
-
-
-
- Getting
- Started with QMF
-
-
-
- QMF is used through two primary APIs. The console API is
- used for console applications that wish to access and manipulate
- manageable components through QMF. The agent API is used
- for application that wish to be managed through QMF.
-
- The fastest way to get started with QMF is to work through the
- "How To" tutorials for consoles and agents. For a deeper
- understanding of what is happening in the tutorials, it is
- recommended that you look at the Qmf Concepts section.
-
-
-
-
- QMF Concepts
-
-
-
- This section introduces important concepts underlying QMF.
-
-
-
-
- Console,
- Agent, and Broker
-
-
-
- The major architectural components of QMF are the Console, the
- Agent, and the Broker. Console components are the "managing"
- components of QMF and agent components are the "managed" parts.
- The broker is a central (possibly distributed, clustered and
- fault-tolerant) component that manages name spaces and caches
- schema information.
-
- A console application may be a command-line utility, a
- three-tiered web-based GUI, a collection and storage device, a
- specialized application that monitors and reacts to events and
- conditions, or anything else somebody wishes to develop that uses
- QMF management data.
-
- An agent application is any application that has been enhanced to
- allow itself to be managed via QMF.
-
-
- +-------------+ +---------+ +---------------+ +-------------------+
- | CLI utility | | Web app | | Audit storage | | Event correlation |
- +-------------+ +---------+ +---------------+ +-------------------+
- ^ ^ ^ ^ |
- | | | | |
- v v v v v
- +---------------------------------------------------------------------------------+
- | Qpid Messaging Bus (with QMF Broker capability) |
- +---------------------------------------------------------------------------------+
- ^ ^ ^
- | | |
- v v v
- +----------------+ +----------------+ +----------------+
- | Manageable app | | Manageable app | | Manageable app |
- +----------------+ +----------------+ +----------------+
-
-
- In the above diagram, the Manageable apps are agents,
- the CLI utility, Web app, and Audit
- storage are consoles, and Event correlation is both
- a console and an agent because it can create events based on the
- aggregation of what it sees.
-
-
-
-
- Schema
-
-
-
- A schema describes the structure of management data.
- Each agent provides a schema that describes its
- management model including the object classes, methods, events,
- etc. that it provides. In the current QMF distribution, the
- agent's schema is codified in an XML document. In the near
- future, there will also be ways to programatically create QMF
- schemata.
-
- Package
-
-
-
- Each agent that exports a schema identifies itself using a
- package name. The package provides a unique namespace
- for the classes in the agent's schema that prevent collisions
- with identically named classes in other agents' schemata.
-
- Package names are in "reverse domain name" form with levels of
- hierarchy separated by periods. For example, the Qpid messaging
- broker uses package "org.apache.qpid.broker" and the Access
- Control List plugin for the broker uses package
- "org.apache.qpid.acl". In general, the package name should be the
- reverse of the internet domain name assigned to the organization
- that owns the agent software followed by identifiers to uniquely
- identify the agent.
-
- The XML document for a package's schema uses an enclosing
- <schema> tag. For example:
-
-
-<schema package="org.apache.qpid.broker">
-
-</schema>
-
-
-
-
- Object
- Classes
-
-
-
- Object classes define types for manageable objects. The
- agent may create and destroy objects which are instances of
- object classes in the schema. An object class is defined in the
- XML document using the <class> tag. An object class is
- composed of properties, statistics, and methods.
-
-
- <class name="Exchange">
- <property name="vhostRef" type="objId" references="Vhost" access="RC" index="y" parentRef="y"/>
- <property name="name" type="sstr" access="RC" index="y"/>
- <property name="type" type="sstr" access="RO"/>
- <property name="durable" type="bool" access="RC"/>
- <property name="arguments" type="map" access="RO" desc="Arguments supplied in exchange.declare"/>
-
- <statistic name="producerCount" type="hilo32" desc="Current producers on exchange"/>
- <statistic name="bindingCount" type="hilo32" desc="Current bindings"/>
- <statistic name="msgReceives" type="count64" desc="Total messages received"/>
- <statistic name="msgDrops" type="count64" desc="Total messages dropped (no matching key)"/>
- <statistic name="msgRoutes" type="count64" desc="Total routed messages"/>
- <statistic name="byteReceives" type="count64" desc="Total bytes received"/>
- <statistic name="byteDrops" type="count64" desc="Total bytes dropped (no matching key)"/>
- <statistic name="byteRoutes" type="count64" desc="Total routed bytes"/>
- </class>
-
-
-
-
-
- Properties
- and Statistics
-
-
-
- <property> and <statistic> tags must be placed within
- <schema> and </schema> tags.
-
- Properties, statistics, and methods are the building blocks of an
- object class. Properties and statistics are both object
- attributes, though they are treated differently. If an object
- attribute is defining, seldom or never changes, or is large in
- size, it should be defined as a property. If an
- attribute is rapidly changing or is used to instrument the object
- (counters, etc.), it should be defined as a statistic.
-
- The XML syntax for <property> and <statistic> have
- the following XML-attributes:
-
XML Attributes for QMF Properties and Statistics
-
-
-
- Attribute
-
-
- <property>
-
-
- <statistic>
-
-
- Meaning
-
-
-
-
- name
-
-
- Y
-
-
- Y
-
-
- The name of the attribute
-
-
-
-
- type
-
-
- Y
-
-
- Y
-
-
- The data type of the attribute
-
-
-
-
- unit
-
-
- Y
-
-
- Y
-
-
- Optional unit name - use the singular (i.e. MByte)
-
-
-
-
- desc
-
-
- Y
-
-
- Y
-
-
- Description to annotate the attribute
-
-
-
-
- references
-
-
- Y
-
-
-
-
-
- If the type is "objId", names the referenced class
-
-
-
-
- access
-
-
- Y
-
-
-
-
-
- Access rights (RC, RW, RO)
-
-
-
-
- index
-
-
- Y
-
-
-
-
-
- "y" if this property is used to uniquely identify the
- object. There may be more than one index property in a
- class
-
-
-
-
- parentRef
-
-
- Y
-
-
-
-
-
- "y" if this property references an object in which this
- object is in a child-parent relationship.
-
-
-
-
- optional
-
-
- Y
-
-
-
-
-
- "y" if this property is optional (i.e. may be
- NULL/not-present)
-
-
-
-
- min
-
-
- Y
-
-
-
-
-
- Minimum value of a numeric attribute
-
-
-
-
- max
-
-
- Y
-
-
-
-
-
- Maximum value of a numeric attribute
-
-
-
-
- maxLen
-
-
- Y
-
-
-
-
-
- Maximum length of a string attribute
-
-
-
-
-
-
-
-
- Methods
-
-
-
- <method> tags must be placed within <schema> and
- </schema> tags.
-
- A method is an invokable function to be performed on
- instances of the object class (i.e. a Remote Procedure Call). A
- <method> tag has a name, an optional description, and
- encloses zero or more arguments. Method arguments are defined by
- the <arg> tag and have a name, a type, a direction, and an
- optional description. The argument direction can be "I", "O", or
- "IO" indicating input, output, and input/output respectively. An
- example:
-
-
- <method name="echo" desc="Request a response to test the path to the management broker">
- <arg name="sequence" dir="IO" type="uint32"/>
- <arg name="body" dir="IO" type="lstr"/>
- </method>
-
-
-
-
- Event Classes
-
-
-
-
-
- Data Types
-
-
-
- Object attributes, method arguments, and event arguments have
- data types. The data types are based on the rich data typing
- system provided by the AMQP messaging protocol. The following
- table describes the data types available for QMF:
-
QMF Datatypes
-
-
-
- QMF Type
-
-
- Description
-
-
-
-
- REF
-
-
- QMF Object ID - Used to reference another QMF object.
-
-
-
-
- U8
-
-
- 8-bit unsigned integer
-
-
-
-
- U16
-
-
- 16-bit unsigned integer
-
-
-
-
- U32
-
-
- 32-bit unsigned integer
-
-
-
-
- U64
-
-
- 64-bit unsigned integer
-
-
-
-
- S8
-
-
- 8-bit signed integer
-
-
-
-
- S16
-
-
- 16-bit signed integer
-
-
-
-
- S32
-
-
- 32-bit signed integer
-
-
-
-
- S64
-
-
- 64-bit signed integer
-
-
-
-
- BOOL
-
-
- Boolean - True or False
-
-
-
-
- SSTR
-
-
- Short String - String of up to 255 bytes
-
-
-
-
- LSTR
-
-
- Long String - String of up to 65535 bytes
-
-
-
-
- ABSTIME
-
-
- Absolute time since the epoch in nanoseconds (64-bits)
-
-
-
-
- DELTATIME
-
-
- Delta time in nanoseconds (64-bits)
-
-
-
-
- FLOAT
-
-
- Single precision floating point number
-
-
-
-
- DOUBLE
-
-
- Double precision floating point number
-
-
-
-
- UUID
-
-
- UUID - 128 bits
-
-
-
-
- FTABLE
-
-
- Field-table - std::map in C++, dictionary in Python
-
-
-
-
- In the XML schema definition, types go by different names and
- there are a number of special cases. This is because the XML
- schema is used in code-generation for the agent API. It provides
- options that control what kind of accessors are generated for
- attributes of different types. The following table enumerates the
- types available in the XML format, which QMF types they map to,
- and other special handling that occurs.
-
-
- Important
-
- When writing a schema using the XML format, types used in
- <property> or <arg> must be types that have
- Direct accessor style. Any type may be used in
- <statistic> tags.
-
-
-
-
-
-
-
- Class
- Keys and Class Versioning
-
-
-
-
-
-
-
-
-
- The QMF
- Protocol
-
-
-
- The QMF protocol defines the message formats and communication
- patterns used by the different QMF components to communicate with
- one another.
-
- A description of the current version of the QMF protocol can be
- found at .
-
- A proposal for an updated protocol based on map-messages is in
- progress and can be found at .
-
-
-
-
- How
- to Write a QMF Console
-
-
-
- Please see the for information about using the console API with
- Python.
-
-
-
-
- How to
- Write a QMF Agent
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/cpp-broker/Running-CPP-Broker.xml b/qpid/doc/book/src/cpp-broker/Running-CPP-Broker.xml
deleted file mode 100644
index 7f76cbc354..0000000000
--- a/qpid/doc/book/src/cpp-broker/Running-CPP-Broker.xml
+++ /dev/null
@@ -1,846 +0,0 @@
-
-
-
-
-
- Running a Qpid C++ Broker
-
-
-
- Building the
- C++ Broker and Client Libraries
-
-
- The root directory for the C++ distribution is named
- qpidc-0.4. The README file in that directory gives
- instructions for building the broker and client libraries. In
- most cases you will do the following:
-
-
-[qpidc-0.4]$ ./configure
-[qpidc-0.4]$ make
-
-
-
- Running the C++ Broker
-
-
- Once you have built the broker and client libraries, you can
- start the broker from the command line:
-
-
-[qpidc-0.4]$ src/qpidd
-
-
- Use the --daemon option to run the broker as a daemon
- process:
-
-
-[qpidc-0.4]$ src/qpidd --daemon
-
-
- You can stop a running daemon with the --quit option:
-
-
-[qpidc-0.4]$ src/qpidd --quit
-
-
- You can see all available options with the --help option
-
-
-[qpidc-0.4]$ src/qpidd --help
-
-
-
- Most
- common questions getting qpidd running
-
-
- Error
- when starting broker: "no data directory"
-
-
- The C++ Broker requires you to set a data directory or specify
- --no-data-dir (see help for more details). The data
- directory is used for the journal, so it is important when
- reliability counts. Make sure your process has write permission
- to the data directory.
-
- The default location is
-
-
-/lib/var/qpidd
-
-
- An alternate location can be set with --data-dir
-
-
-
- Error
- when starting broker: "that process is locked"
-
-
- Note that when qpidd starts it creates a lock file is data
- directory are being used. If you have a un-controlled exit,
- please mail
- the trace from the core to the dev@qpid.apache.org mailing list.
- To clear the lock run
-
-
-./qpidd -q
-
-
- It should also be noted that multiple brokers can be run on the
- same host. To do so set alternate data directories for each qpidd
- instance.
-
-
-
- Using a configuration
- file
-
-
- Each option that can be specified on the command line can also be
- specified in a configuration file. To see available options, use
- --help on the command line:
-
-
-./qpidd --help
-
-
- A configuration file uses name/value pairs, one on each line. To
- convert a command line option to a configuration file entry:
-
- a.) remove the '--' from the beginning of the option.
- b.) place a '=' between the option and the value (use
- yes or true to enable options that take no
- value when specified on the command line).
- c.) place one option per line.
-
- For instance, the --daemon option takes no value, the
- --log-to-syslog option takes the values yes or
- no. The following configuration file sets these two
- options:
-
-
-daemon=yes
-log-to-syslog=yes
-
-
-
- Can I use
- any Language client with the C++ Broker?
-
-
- Yes, all the clients work with the C++ broker; it is written in
- C+, but uses the AMQP wire protocol. Any broker can be used
- with any client that uses the same AMQP version. When running the
- C+ broker, it is highly recommended to run AMQP 0-10.
-
- Note that JMS also works with the C++ broker.
-
-
-
-
- Authentication
-
-
- Linux
-
-
- The PLAIN authentication is done on a username+password, which is
- stored in the sasldb_path file. Usernames and passwords can be
- added to the file using the command:
-
-
-saslpasswd2 -f /var/lib/qpidd/qpidd.sasldb -u <REALM> <USER>
-
-
- The REALM is important and should be the same as the
- --auth-realm
- option to the broker. This lets the broker properly find the user
- in
- the sasldb file.
-
- Existing user accounts may be listed with:
-
-
-sasldblistusers2 -f /var/lib/qpidd/qpidd.sasldb
-
-
- NOTE: The sasldb file must be readable by the user running the
- qpidd daemon, and should be readable only by that user.
-
-
-
- Windows
-
-
- On Windows, the users are authenticated against the local
- machine. You should add the appropriate users using the standard
- Windows tools (Control Panel->User Accounts). To run many of
- the examples, you will need to create a user "guest" with
- password "guest".
-
- If you cannot or do not want to create new users, you can run
- without authentication by specifying the no-auth option to the
- broker.
-
-
-
-
-
- Slightly more
- complex configuration
-
-
- The easiest way to get a full listing of the broker's options are
- to use the --help command, run it locally for the latest set of
- options. These options can then be set in the conf file for
- convenience (see above)
-
-
-./qpidd --help
-
-Usage: qpidd OPTIONS
-Options:
- -h [ --help ] Displays the help message
- -v [ --version ] Displays version information
- --config FILE (/etc/qpidd.conf) Reads configuration from FILE
-
-Module options:
- --module-dir DIR (/usr/lib/qpidd) Load all .so modules in this directory
- --load-module FILE Specifies additional module(s) to be loaded
- --no-module-dir Don't load modules from module directory
-
-Broker Options:
- --data-dir DIR (/var/lib/qpidd) Directory to contain persistent data generated by the broker
- --no-data-dir Don't use a data directory. No persistent
- configuration will be loaded or stored
- -p [ --port ] PORT (5672) Tells the broker to listen on PORT
- --worker-threads N (3) Sets the broker thread pool size
- --max-connections N (500) Sets the maximum allowed connections
- --connection-backlog N (10) Sets the connection backlog limit for the
- server socket
- --staging-threshold N (5000000) Stages messages over N bytes to disk
- -m [ --mgmt-enable ] yes|no (1) Enable Management
- --mgmt-pub-interval SECONDS (10) Management Publish Interval
- --ack N (0) Send session.ack/solicit-ack at least every
- N frames. 0 disables voluntary ack/solitict
- -ack
-
-Daemon options:
- -d [ --daemon ] Run as a daemon.
- -w [ --wait ] SECONDS (10) Sets the maximum wait time to initialize the
- daemon. If the daemon fails to initialize, prints
- an error and returns 1
- -c [ --check ] Prints the daemon's process ID to stdout and
- returns 0 if the daemon is running, otherwise
- returns 1
- -q [ --quit ] Tells the daemon to shut down
-Logging options:
- -t [ --trace ] Enables all logging
- --log-enable RULE (notice+) Enables logging for selected levels and components.
- RULE is in the form 'LEVEL[+-][:PATTERN]'
- LEVEL is one of:
- trace debug info notice warning error critical
- PATTERN is a logging category name, or a namespace-qualified
- function name or name fragment.
- Logging category names are:
- Security Broker Management Protocol System HA Messaging Store
- Network Test Client Model Unspecified
-
- For example:
- '--log-enable warning+'
- logs all warning, error and critical messages.
-
- '--log-enable trace+:Broker'
- logs all category 'Broker' messages.
-
- '--log-enable debug:framing'
- logs debug messages from all functions with 'framing' in
- the namespace or function name.
-
- This option can be used multiple times
-
- --log-disable RULE Disables logging for selected levels and components.
- RULE is in the form 'LEVEL[+-][:PATTERN]'
- LEVEL is one of:
- trace debug info notice warning error critical
- PATTERN is a logging category name, or a namespace-qualified
- function name or name fragment.
- Logging category names are:
- Security Broker Management Protocol System HA Messaging Store
- Network Test Client Model Unspecified
-
- For example:
- '--log-disable warning-'
- disables logging all warning, notice, info, debug, and
- trace messages.
-
- '--log-disable trace:Broker'
- disables all category 'Broker' trace messages.
-
- '--log-disable debug-:qmf::'
- disables logging debug and trace messages from all functions
- with 'qmf::' in the namespace.
-
- This option can be used multiple times
-
- --log-time yes|no (1) Include time in log messages
- --log-level yes|no (1) Include severity level in log messages
- --log-source yes|no (0) Include source file:line in log
- messages
- --log-thread yes|no (0) Include thread ID in log messages
- --log-function yes|no (0) Include function signature in log
- messages
- --log-hires-timestamp yes|no (0) Use hi-resolution timestamps in log
- messages
- --log-category yes|no (1) Include category in log messages
- --log-prefix STRING Prefix to prepend to all log messages
-
-Logging sink options:
- --log-to-stderr yes|no (1) Send logging output to stderr
- --log-to-stdout yes|no (0) Send logging output to stdout
- --log-to-file FILE Send log output to FILE.
- --log-to-syslog yes|no (0) Send logging output to syslog;
- customize using --syslog-name and
- --syslog-facility
- --syslog-name NAME (qpidd) Name to use in syslog messages
- --syslog-facility LOG_XXX (LOG_DAEMON)
- Facility to use in syslog messages
-
-
-
-
- Loading extra modules
-
-
- By default the broker will load all the modules in the module
- directory, however it will NOT display options for modules that
- are not loaded. So to see the options for extra modules loaded
- you need to load the module and then add the help command like
- this:
-
-
-./qpidd --load-module libbdbstore.so --help
-Usage: qpidd OPTIONS
-Options:
- -h [ --help ] Displays the help message
- -v [ --version ] Displays version information
- --config FILE (/etc/qpidd.conf) Reads configuration from FILE
-
-
- / .... non module options would be here ... /
-
-
-Store Options:
- --store-directory DIR Store directory location for persistence (overrides
- --data-dir)
- --store-async yes|no (1) Use async persistence storage - if store supports
- it, enables AIO O_DIRECT.
- --store-force yes|no (0) Force changing modes of store, will delete all
- existing data if mode is changed. Be SURE you want
- to do this!
- --num-jfiles N (8) Number of files in persistence journal
- --jfile-size-pgs N (24) Size of each journal file in multiples of read
- pages (1 read page = 64kiB)
-
-
-
- Timestamping Received Messages
-
- The AMQP 0-10 specification defines a timestamp message delivery
- property. The timestamp delivery property is a datetime value
- that is written to each message that arrives at the broker. See the description of
- "message.delivery-properties" in the "Command Classes" section of the AMQP 0-10
- specification for more detail.
-
-
- See the Programming in Apache Qpid documentation for
- information regarding how clients may access the timestamp value in received
- messages.
-
-
- By default, this timestamping feature is disabled. To enable timestamping, use the
- enable-timestamp broker configuration option. Setting the
- enable-timestamp option to 'yes' will enable message timestamping:
-
-
-./qpidd --enable-timestamp yes
-
-
- Message timestamping can also be enabled (and disabled) without restarting the broker.
- The QMF Broker management object defines two methods for accessing the timestamp
- configuration:
-
-
- QMF Management - Broker Methods for Managing the Timestamp Configuration
-
-
-
- Method
- Description
-
-
-
-
- getTimestampConfig
- Get the message timestamping configuration. Returns True if received messages are timestamped.
-
-
- setTimestampConfig
- Set the message timestamping configuration. Set True to enable timestamping received messages, False to disable timestamping.
-
-
-
-
-
- Enabling Message Timestamping via QMF - Python
-
- The following code fragment uses these QMF method calls to enable message timestamping.
-
-
-# get the state of the timestamp configuration
-broker = self.qmf.getObjects(_class="broker")[0]
-rc = broker.getTimestampConfig()
-self.assertEqual(rc.status, 0)
-self.assertEqual(rc.text, "OK")
-print("The timestamp setting is %s" % str(rc.receive))
-
-# try to enable it
-rc = broker.setTimestampConfig(True)
-self.assertEqual(rc.status, 0)
-self.assertEqual(rc.text, "OK")
-
-
-
-
- Logging Options
-
- The C++ Broker provides a rich set of logging options. To use logging effectively
- a user must select a useful set of options to expose the log messages of interest.
- This section introduces the logging options and how they are used in practice.
-
-
- Logging Concepts
-
-
- Log Level
-
- The C++ Broker has a traditional set of log severity levels. The log levels
- range from low frequency and high importance critical level
- to high frequency and low importance trace level.
-
-
-
-
-
- Log Category
-
- The C++ Broker groups log messages into categories. The log category
- name may then be used to enable and disable groups of related messages
- at varying log levels.
-
-
- C++ Broker Log Categories
-
-
-
- Name
-
-
-
- Security
- Broker
- Management
- Protocol
- System
- HA
- Messaging
- Store
- Network
- Test
- Client
- Model
- Unspecified
-
-
-
-
- Generally speaking the log categories are groupings of messages from files
- related by
- thier placement in the source code directory structure. The
- Model category is an exception. Debug log entries
- identified by the Model category expose the creation, deletion, and usage
- statistics for managed objects in the broker. Log messages in the Model
- category are emitted by source files scattered throughout the source tree.
-
-
-
-
- Log Statement Attributes
-
- Every log statement in the C++ Broker has fixed attributes that may be
- used in enabling or disabling log messages.
-
-
- C++ Broker Log Statement Attributes
-
-
-
- Name
- Description
-
-
-
-
- Level
- Severity level
-
-
- Category
- Category
-
-
- Function
- Namespace-qualified source function name
-
-
-
-
-
-
-
-
-
- Enabling and Disabling Log Messages
-
- The Qpid C++ Broker has hundreds of log message statements in the source
- code. Under typical conditions
- most of the messages are deselected and never emitted as actual logs.
- However, under some circumstances debug and trace messages must be enabled
- to analyze broker behavior. This section discusses how the broker enables
- and disables log messages.
-
-
- At startup the broker processes command line and option file '--log-enable RULE' and
- '--log-disable RULE' options using the following rule format:
-
-
- LEVEL[+-][:PATTERN}
-
-
- C++ Broker Log Enable/Disable RULE Format
-
-
-
- Name
- Description
-
-
-
-
- LEVEL
- Severity level
-
-
- [+-]
-
- Option level modifiers. '+' indicates
- this level and above.
- '-' indicates this level and below.
-
-
-
- [:PATTERN]
-
- If PATTERN matches a Category name then the log option applies only
- to log messages with the named category. Otherwise, the pattern is stored
- as a function name match string.
-
-
-
-
-
-
- As the options are procesed the results are aggregated into two pairs of tables.
-
-
- C++ Broker Log Enable/Disable Settings Tables
-
-
-
- Name
- Description
-
-
-
-
- Function Table
-
- A set of vectors of accumulated function name patterns.
- There is a separate vector of name patterns for each log level.
-
-
-
- Category Table
-
- A simple two dimensional array of boolean values indexed by
- [Level][Category] indicating
- if all log statements are enabled for the Level and Category pair.
-
-
-
-
-
-
- --log-enable statements and --log-disable statements are aggregated into dedicated
- Function and Category tables. With this scheme multiple conflicting log enable and
- disable commands may be processed in any order yet produce consistent patterns
- of enabled broker log statements.
-
-
-
-
- Determining if a Log Statement is Enabled
-
- Function Table Lookups are simple string pattern matches where the searchable
- text is the domain-name qualified function name from the log statement and the
- search pattern is the set of Function Table entries for a given log level.
-
-
- Category Table Lookups are boolean array queries where the Level and Category
- indexes are from the log statement.
-
-
- Each log statment sends its Level, Category, and FunctionName to the
- Logger for evaluation. As a result the log statement is either visible or hidden.
-
-
- C++ Broker Log Statement Visibility Determination
-
-
-
- Test
- Description
-
-
-
-
- Disabled Function
-
- If the statement matches a Disabled Function pattern then the
- statement is hidden.
-
-
-
- Disabled Category
-
- If the Disabled Category table for this [Level][Category] is true then the
- statement is hidden.
-
-
-
- Enabled Function
-
- If the statement matches a Enabled Function pattern then the
- statement is visible.
-
-
-
- Enabled Category
-
- If the Enabled Category table for this [Level][Category] is true then the
- statement is visible.
-
-
-
- Unreferenced
-
- Log statements that are unreferenced by specific enable rules are by
- default hidden.
-
-
-
-
-
-
-
-
- Changing Log Enable/Disable Settings at Run Time
-
- The C++ Broker provides QMF management methods that allow users to query and to set
- the log enable and disable settings while the broker is running.
-
-
- QMF Management - Broker Methods for Managing the Log Enable/Disable Settings
-
-
-
- Method
- Description
-
-
-
-
- getLogLevel
- Get the log enable/disable settings.
-
-
- setLogLevel
- Set the log enable/disable settings.
-
-
-
-
-
- The management methods use a RULE format similar to the option RULE format:
-
-
- [!]LEVEL[+-][:PATTERN]
-
-
- The difference is the leading exclamation point that identifies disable rules.
-
-
-
- Querying Log Settings via qpid-ctrl utility
-
-
- At start up a C++ Broker may have the following options:
-
-
- --log-enable debug+
- --log-enable trace+:Protocol
- --log-disable info-:Management
-
-
- The following command:
-
-
- qpid-ctrl getLogLevel
-
-
- will return the following result:
-
-
- level=debug+,trace+:Protocol,!info-:Management
-
-
-
-
- Setting Log Settings via qpid-ctrl utility
-
-
- New broker log options may be set at any time using qpid-ctrl
-
-
- qpid-ctrl setLogLevel level='debug+:Broker !debug-:broker::Broker::ManagementMethod'
-
-
-
-
-
- Discovering Log Sources
-
- A common condition for a user is being swamped by log messages that are not
- interesting for some debug situation. Conversely, a particular log entry
- may be of interest all the time but enabling all log levels just to see a
- single log entry is too much. How can a user find and specify a pattern
- to single out logs of interest?
-
-
- The easiest way to hide messages it to disable logs at log level and
- category combinations. This may not always work since using only these
- coarse controls the log messages of interest may also be hidden.
- To discover a more precise filter to specify the messages you want
- to show or to hide you may temporarily enable the
- "--log-function=yes" option.
- The following log entries show a typical log message without and
- with the log function names enabled:
-
-
- 2013-05-01 11:16:01 [Broker] notice Broker running
- 2013-05-01 11:16:54 [Broker] notice qpid::broker::Broker::run: Broker running
-
-
- This log entry is emitted by function qpid::broker::Broker::run
- and this is the function name pattern to be used in specific log enable and
- disable rules.
- For example, this log entry could be disabled with any of the following:
-
-
- --log-disable notice [1]
- --log-disable notice:qpid:: [2]
- --log-disable notice:Broker [3]
- --log-disable notice-:Broker::run [4]
- --log-disable notice:qpid::broker::Broker::run [5]
-
-
-
- [1] Disables all messages at notice level.
-
-
- [2] Disables all messages at notice level in qpid:: name space. This is
- very broad and disables many log messages.
-
-
- [3] Disables the category [Broker] and is not specific
- to the function. Category names supercede function name fragments in
- log option processing
-
-
- [4] Disables the function.
-
-
- [5] Disables the function.
-
-
-
- Remember that the log filter matching PATTERN strings are matched against the
- domain-name qualified function names associated with the log statement
- and not against the log message text itself. That is, in the previous example
- log filters cannot be set on the log text Broker running
-
-
-
-
diff --git a/qpid/doc/book/src/cpp-broker/Security.xml b/qpid/doc/book/src/cpp-broker/Security.xml
deleted file mode 100644
index 8f42e6abdf..0000000000
--- a/qpid/doc/book/src/cpp-broker/Security.xml
+++ /dev/null
@@ -1,2516 +0,0 @@
-
-
-
-
- Security
-
- This chapter describes how authentication, rule-based authorization, encryption, and digital signing can be accomplished using Qpid. Authentication is the process of verifying the identity of a user; in Qpid, this is done using the SASL framework. Rule-based authorization is a mechanism for specifying the actions that each user is allowed to perform; in Qpid, this is done using an Access Control List (ACL) that is part of the Qpid broker. Encryption is used to ensure that data is not transferred in a plain-text format that could be intercepted and read. Digital signatures provide proof that a given message was sent by a known sender. Encryption and signing are done using SSL (they can also be done using SASL, but SSL provides stronger encryption).
-
-
- User Authentication
-
- AMQP uses Simple Authentication and Security Layer (SASL) to authenticate client connections to the broker. SASL is a framework that supports a variety of authentication methods. For secure applications, we suggest CRAM-MD5, DIGEST-MD5, or GSSAPI. The ANONYMOUS method is not secure. The PLAIN method is secure only when used together with SSL.
-
-
- Both the Qpid broker and Qpid clients use the Cyrus SASL library, a full-featured authentication framework, which offers many configuration options. This section shows how to configure users for authentication with SASL, which is sufficient when using SASL PLAIN. If you are not using SSL, you should configure SASL to use CRAM-MD5, DIGEST-MD5, or GSSAPI (which provides Kerberos authentication). For information on configuring these and other options in SASL, see the Cyrus SASL documentation.
-
-
- Important
-
- The SASL PLAIN method sends passwords in cleartext, and is vulnerable to man-in-the-middle attacks unless SSL (Secure Socket Layer) is also used (see ).
-
-
- If you are not using SSL, we recommend that you disable PLAIN authentication in the broker.
-
-
-
-
- The Qpid broker uses the auth yes|no option to determine whether to use SASL authentication. Turn on authentication by setting auth to yes in /etc/qpidd.conf:
-
-
-
-# /etc/qpidd.conf
-#
-# Set auth to 'yes' or 'no'
-
-auth=yes
-
-
- Configuring SASL
-
- On Linux systems, the SASL configuration file is generally found in /etc/sasl2/qpidd.conf or /usr/lib/sasl2/qpidd.conf.
-
-
- The SASL database contains user names and passwords for SASL. In SASL, a user may be associated with a realm. The Qpid broker authenticates users in the QPID realm by default, but it can be set to a different realm using the realm option:
-
-
-
-# /etc/qpidd.conf
-#
-# Set the SASL realm using 'realm='
-
-auth=yes
-realm=QPID
-
-
- The SASL database is installed at /var/lib/qpidd/qpidd.sasldb; initially, it has one user named guest in the QPID realm, and the password for this user is guest.
-
-
- Note
-
- The user database is readable only by the qpidd user. When run as a daemon, Qpid always runs as the qpidd user. If you start the broker from a user other than the qpidd user, you will need to either reconfigure SASL or turn authentication off.
-
-
-
-
- Important
-
- The SASL database stores user names and passwords in plain text. If it is compromised so are all of the passwords that it stores. This is the reason that the qpidd user is the only user that can read the database. If you modify permissions, be careful not to expose the SASL database.
-
-
-
-
- Add new users to the database by using the saslpasswd2 command, which specifies a realm and a user ID. A user ID takes the form user-id@domain..
-
-
-# saslpasswd2 -f /var/lib/qpidd/qpidd.sasldb -u realmnew_user_name
-
- To list the users in the SASL database, use sasldblistusers2:
-
-
-# sasldblistusers2 -f /var/lib/qpidd/qpidd.sasldb
-
-
- If you are using PLAIN authentication, users who are in the database can now connect with their user name and password. This is secure only if you are using SSL. If you are using a more secure form of authentication, please consult your SASL documentation for information on configuring the options you need.
-
-
-
-
-
- Kerberos
-
- Both the Qpid broker and Qpid users are 'principals' of the Kerberos server, which means that they are both clients of the Kerberos authentication services.
-
-
- To use Kerberos, both the Qpid broker and each Qpid user must be authenticated on the Kerberos server:
-
-
-
-
- Install the Kerberos workstation software and Cyrus SASL GSSAPI on each machine that runs a qpidd broker or a qpidd messaging client:
-
-
-$ sudo yum install cyrus-sasl-gssapi krb5-workstation
-
-
-
-
- Make sure that the Qpid broker is registered in the Kerberos database.
-
-
- Traditionally, a Kerberos principal is divided into three parts: the primary, the instance, and the realm. A typical Kerberos V5 has the format primary/instance@REALM. For a Qpid broker, the primary is qpidd, the instance is the fully qualified domain name, which you can obtain using hostname --fqdn, and the REALM is the Kerberos domain realm. By default, this realm is QPID, but a different realm can be specified in qpid.conf, e.g.:
-realm=EXAMPLE.COM
-
-
-
- For instance, if the fully qualified domain name is dublduck.example.com and the Kerberos domain realm is EXAMPLE.COM, then the principal name is qpidd/dublduck.example.com@EXAMPLE.COM.
-
-
- The following script creates a principal for qpidd:
-
-
-
-FDQN=`hostname --fqdn`
-REALM="EXAMPLE.COM"
-kadmin -r $REALM -q "addprinc -randkey -clearpolicy qpidd/$FQDN"
-
-
- Now create a Kerberos keytab file for the Qpid broker. The Qpid broker must have read access to the keytab file. The following script creates a keytab file and allows the broker read access:
-
-
-
-QPIDD_GROUP="qpidd"
-kadmin -r $REALM -q "ktadd -k /etc/qpidd.keytab qpidd/$FQDN@$REALM"
-chmod g+r /etc/qpidd.keytab
-chgrp $QPIDD_GROUP /etc/qpidd.keytab
-
-
- The default location for the keytab file is /etc/krb5.keytab. If a different keytab file is used, the KRB5_KTNAME environment variable must contain the name of the file, e.g.:
-
-
-
-export KRB5_KTNAME=/etc/qpidd.keytab
-
-
- If this is correctly configured, you can now enable kerberos support on the Qpid broker by setting the auth and realm options in /etc/qpidd.conf:
-
-
-
-# /etc/qpidd.conf
-auth=yes
-realm=EXAMPLE.COM
-
-
- Restart the broker to activate these settings.
-
-
-
-
-
- Make sure that each Qpid user is registered in the Kerberos database, and that Kerberos is correctly configured on the client machine. The Qpid user is the account from which a Qpid messaging client is run. If it is correctly configured, the following command should succeed:
-
-
-$ kinit user@REALM.COM
-
-
-
-
-
-
- Java JMS clients require a few additional steps.
-
-
-
-
- The Java JVM must be run with the following arguments:
-
-
-
- -Djavax.security.auth.useSubjectCredsOnly=false
-
-
- Forces the SASL GASSPI client to obtain the kerberos credentials explicitly instead of obtaining from the "subject" that owns the current thread.
-
-
-
-
-
-
- -Djava.security.auth.login.config=myjas.conf
-
-
- Specifies the jass configuration file. Here is a sample JASS configuration file:
-
-
-
-com.sun.security.jgss.initiate {
- com.sun.security.auth.module.Krb5LoginModule required useTicketCache=true;
-};
-
-
-
-
-
-
- -Dsun.security.krb5.debug=true
-
-
- Enables detailed debug info for troubleshooting
-
-
-
-
-
-
-
-
-
-
-
- The client's Connection URL must specify the following Kerberos-specific broker properties:
-
-
-
-
- sasl_mechs must be set to GSSAPI.
-
-
-
-
-
- sasl_protocol must be set to the principal for the qpidd broker, e.g. qpidd/
-
-
-
-
-
- sasl_server must be set to the host for the SASL server, e.g. sasl.com.
-
-
-
-
-
-
- Here is a sample connection URL for a Kerberos connection:
-
-
-amqp://guest@clientid/testpath?brokerlist='tcp://localhost:5672?sasl_mechs='GSSAPI'&sasl_protocol='qpidd'&sasl_server='<server-host-name>''
-
-
-
-
-
-
-
-
-
-
-
-
- Authorization
-
- In Qpid, Authorization specifies which actions can be performed by each authenticated user using an Access Control List (ACL).
-
-
- Use the --acl-file command to load the access control list. The filename should have a .acl extension:
-
-
-
- $ qpidd --acl-file ./aclfilename.acl
-
- Each line in an ACL file grants or denies specific rights to a user. If the last line in an ACL file is acl deny all all, the ACL uses deny mode, and only those rights that are explicitly allowed are granted:
-
-
-
- acl allow rajith@QPID all all
- acl deny all all
-
-
- On this server, rajith@QPID can perform any action, but nobody else can. Deny mode is the default, so the previous example is equivalent to the following ACL file:
-
-
-
- acl allow rajith@QPID all all
-
-
- Alternatively the ACL file may use allow mode by placing:
-
-
- acl allow all all
-
-
- as the final line in the ACL file. In allow mode all actions by all users are allowed unless otherwise denied by specific ACL rules.
- The ACL rule which selects deny mode or allow mode must be the last line in the ACL rule file.
-
-
- ACL syntax allows fine-grained access rights for specific actions:
-
-
-
- acl allow carlt@QPID create exchange name=carl.*
- acl allow fred@QPID create all
- acl allow all consume queue
- acl allow all bind exchange
- acl deny all all
-
-
- An ACL file can define user groups, and assign permissions to them:
-
-
-
- group admin ted@QPID martin@QPID
- acl allow admin create all
- acl deny all all
-
-
- An ACL file can define per user connection and queue quotas:
-
-
-
- group admin ted@QPID martin@QPID
- group blacklist usera@qpid userb@qpid
- quota connections 10 admin
- quota connections 5 all
- quota connections 0 blacklist
- quota queues 50 admin
- quota queues 5 all
- quota queues 1 test@qpid
-
-
-
- Performance Note: Most ACL queries are performed infrequently. The overhead associated with
- ACL passing an allow or deny decision on the creation of a queue is negligible
- compared to actually creating and using the queue. One notable exception is the publish exchange
- query. ACL files with no publish exchange rules are noted and the broker short circuits the logic
- associated with the per-messsage publish exchange ACL query.
- However, if an ACL file has any publish exchange rules
- then the broker is required to perform a publish exchange query for each message published.
- Users with performance critical applications are encouraged to structure exchanges, queues, and bindings so that
- the publish exchange ACL rules are unnecessary.
-
-
-
- ACL Syntax
-
- ACL rules follow this syntax:
-
-
- ACL rules can also include a single object name (or the keyword all) and one or more property name value pairs in the form property=value
-
-
- The following tables show the possible values for permission, action, object, and property in an ACL rules file.
-
-
- ACL Rules: permission
-
-
-
-
- allow
-
-
-
- Allow the action
-
-
-
-
-
- allow-log
-
-
-
- Allow the action and log the action in the event log
-
-
-
-
-
- deny
-
-
-
- Deny the action
-
-
-
-
-
- deny-log
-
-
-
- Deny the action and log the action in the event log
-
-
-
-
-
-
-
- ACL Rules: action
-
-
-
-
- access
-
-
-
- Accessing or reading an object
-
-
-
-
-
- bind
-
-
-
- Associating a queue to an exchange with a routing key.
-
-
-
-
-
- consume
-
-
-
- Using an object
-
-
-
-
-
- create
-
-
-
- Creating an object.
-
-
-
-
-
- delete
-
-
-
- Deleting an object.
-
-
-
-
-
- move
-
-
-
- Moving messages between queues.
-
-
-
-
-
- publish
-
-
-
- Authenticating an incoming message.
-
-
-
-
-
- purge
-
-
-
- Purging a queue.
-
-
-
-
-
- redirect
-
-
-
- Redirecting messages between queues
-
-
-
-
-
- reroute
-
-
-
- Rerouting messages from a queue to an exchange
-
-
-
-
-
- unbind
-
-
-
- Disassociating a queue from an exchange with a routing key.
-
-
-
-
-
- update
-
-
-
- Changing a broker configuration setting.
-
-
-
-
-
-
- ACL Rules: property
-
-
-
- Property
- Type
- Description
- Usage
-
-
-
-
- name
- String
- Rule refers to objects with this name. When 'name' is blank or absent then the rule
- applies to all objects of the given type.
-
-
-
- alternate
- String
- Name of an alternate exchange
- CREATE QUEUE, CREATE EXCHANGE, ACCESS QUEUE, ACCESS EXCHANGE, DELETE QUEUE, DELETE EXCHANGE
-
-
- autodelete
- Boolean
- Indicates whether or not the object gets deleted when the connection that created it is closed
- CREATE QUEUE, CREATE EXCHANGE, ACCESS QUEUE, ACCESS EXCHANGE, DELETE QUEUE
-
-
- durable
- Boolean
- Rule applies to durable objects
- CREATE QUEUE, CREATE EXCHANGE, ACCESS QUEUE, ACCESS EXCHANGE, DELETE QUEUE, DELETE EXCHANGE
-
-
- exchangename
- String
- Name of the exchange to which queue's entries are routed
- REROUTE QUEUE
-
-
- filemaxcountlowerlimit
- Integer
- Minimum value for file.max_count (files)
- CREATE QUEUE
-
-
- filemaxcountupperlimit
- Integer
- Maximum value for file.max_count (files)
- CREATE QUEUE
-
-
- filemaxsizelowerlimit
- Integer
- Minimum value for file.max_size (64kb pages)
- CREATE QUEUE
-
-
- filemaxsizeupperlimit
- Integer
- Maximum value for file.max_size (64kb pages)
- CREATE QUEUE
-
-
- host
- String
- Target TCP/IP host or host range for create connection rules
- CREATE CONNECTION
-
-
- exclusive
- Boolean
- Indicates the presence of an exclusive flag
- CREATE QUEUE, ACCESS QUEUE, DELETE QUEUE
-
-
- pagefactorlowerlimit
- Integer
- Minimum value for size of a page in paged queue
- CREATE QUEUE
-
-
- pagefactorupperlimit
- Integer
- Maximum value for size of a page in paged queue
- CREATE QUEUE
-
-
- pageslowerlimit
- Integer
- Minimum value for number of paged queue pages in memory
- CREATE QUEUE
-
-
- pagesupperlimit
- Integer
- Maximum value for number of paged queue pages in memory
- CREATE QUEUE
-
-
- paging
- Boolean
- Indicates if the queue is a paging queue
- CREATE QUEUE
-
-
- policytype
- String
- "ring", "self-destruct", "reject"
- CREATE QUEUE, ACCESS QUEUE, DELETE QUEUE
-
-
- queuename
- String
- Name of the target queue
- ACCESS EXCHANGE, BIND EXCHANGE, MOVE QUEUE, UNBIND EXCHANGE
-
-
- queuemaxsizelowerlimit
- Integer
- Minimum value for queue.max_size (memory bytes)
- CREATE QUEUE, ACCESS QUEUE
-
-
- queuemaxsizeupperlimit
- Integer
- Maximum value for queue.max_size (memory bytes)
- CREATE QUEUE, ACCESS QUEUE
-
-
- queuemaxcountlowerlimit
- Integer
- Minimum value for queue.max_count (messages)
- CREATE QUEUE, ACCESS QUEUE
-
-
- queuemaxcountupperlimit
- Integer
- Maximum value for queue.max_count (messages)
- CREATE QUEUE, ACCESS QUEUE
-
-
- routingkey
- String
- Specifies routing key
- BIND EXCHANGE, UNBIND EXCHANGE, ACCESS EXCHANGE, PUBLISH EXCHANGE
-
-
- schemaclass
- String
- QMF schema class name
- ACCESS METHOD, ACCESS QUERY
-
-
- schemapackage
- String
- QMF schema package name
- ACCESS METHOD
-
-
- type
- String
- Type of exchange, such as topic, fanout, or xml
- CREATE EXCHANGE, ACCESS EXCHANGE, DELETE EXCHANGE
-
-
-
-
-
-
- ACL Action-Object-Property Combinations
-
- Not every ACL action is applicable to every ACL object. Furthermore, not every property may be
- specified for every action-object pair. The following table lists the broker events
- that trigger ACL lookups. Then for each event it lists the action, object, and properties
- allowed in the lookup.
-
-
- User-specified ACL rules constrain property sets to those that match one or more of
- the action and object pairs. For example these rules are allowed:
-
-
- acl allow all access exchange
- acl allow all access exchange name=abc
- acl allow all access exchange name=abc durable=true
-
-
- These rules could possibly match one or more of the broker lookups. However, this rule
- is not allowed:
-
-
- acl allow all access exchange queuename=queue1 durable=true
-
-
- Properties queuename and durable
- are not in the list of allowed properties for any 'access exchange' lookup.
- This rule would never match a broker lookup query and would never contribute to an
- allow or deny decision.
-
-
- For more information about matching ACL rules please refer to
-
- ACL Rule Matching
-
-
-
-
-
-
-
-
- ACL Syntactic Conventions
-
- Comments
-
-
-
-
- A line starting with the # character is considered a comment and is ignored.
-
-
-
-
- Embedded comments and trailing comments are not allowed. The # is commonly found in routing keys and other AMQP literals which occur naturally in ACL rule specifications.
-
-
-
-
-
-
- White Space
-
-
-
- Empty lines and lines that contain only whitespace (' ', '\f', '\n', '\r', '\t', '\v') are ignored.
-
-
-
-
- Additional whitespace between and after tokens is allowed.
-
-
-
-
- Group and Acl definitions must start with group and acl respectively and with no preceding whitespace.
-
-
-
-
-
- Character Set
-
-
-
- ACL files use 7-bit ASCII characters only
-
-
-
-
- Group names may contain only
-
- [a-z]
- [A-Z]
- [0-9]
- '-' hyphen
- '_' underscore
-
-
-
-
-
- Individual user names may contain only
-
- [a-z]
- [A-Z]
- [0-9]
- '-' hyphen
- '_' underscore
- '.' period
- '@' ampersand
- '/' slash
-
-
-
-
-
-
- Case Sensitivity
-
-
-
- All tokens are case sensitive. name1 is not the same as Name1 and create is not the same as CREATE.
-
-
-
-
-
- Line Continuation
-
-
-
- Group lists can be extended to the following line by terminating the line with the '\' character. No other ACL file lines may be continued.
-
-
-
-
- Group specification lines may be continued only after the group name or any of the user names included in the group. See example below.
-
-
-
-
- Lines consisting solely of a '\' character are not permitted.
-
-
-
-
- The '\' continuation character is recognized only if it is the last character in the line. Any characters after the '\' are not permitted.
-
-
-
-
-
-
-
- Line Length
-
-
-
- ACL file lines are limited to 1024 characters.
-
-
-
-
-
-
-
- ACL File Keywords
- ACL reserves several words for convenience and for context sensitive substitution.
-
-
- The all Keyword
- The keyword all is reserved. It may be used in ACL rules to match all individuals and groups, all actions, or all objects.
-
- acl allow all create queue
- acl allow bob@QPID all queue
- acl allow bob@QPID create all
-
-
-
-
- User Name and Domain Name Keywords
-
- In the C++ Broker 0.20 a simple set of user name and domain name substitution variable keyword tokens is defined. This provides administrators with an easy way to describe private or shared resources.
-
-
- Symbol substitution is allowed in the ACL file anywhere that text is supplied for a property value.
-
-
- In the following table an authenticated user named bob.user@QPID.COM has his substitution keywords expanded.
-
-
- ACL User Name and Domain Name Substitution Keywords
-
-
-
- Keyword
- Expansion
-
-
-
-
- ${userdomain}
- bob_user_QPID_COM
-
-
- ${user}
- bob_user
-
-
- ${domain}
- QPID_COM
-
-
-
-
-
-
-
-
-
- The original user name has the period “.” and ampersand “@” characters translated into underscore “_”. This allows substitution to work when the substitution keyword is used in a routingkey in the Acl file.
-
-
- The Acl processing matches ${userdomain} before matching either ${user} or ${domain}. Rules that specify the combination ${user}_${domain} will never match.
-
-
-
-
-
-
-
-
-
-
- Wildcards
- ACL privides two types of wildcard matching to provide flexibility in writing rules.
-
-
- Property Value Wildcard
-
- Text specifying a property value may end with a single trailing * character.
- This is a simple wildcard match indicating that strings which match up to that point are matches for the ACL property rule.
- An ACL rule such as
-
-
- acl allow bob@QPID create queue name=bob*
-
-
- allow user bob@QPID to create queues named bob1, bob2, bobQueue3, and so on.
-
-
-
-
- Topic Routing Key Wildcard
-
- In the C++ Broker 0.20 the logic governing the ACL Match has changed for each ACL rule that contains a routingkey property.
- The routingkey property is matched according to Topic Exchange match logic the broker uses when it distributes messages published to a topic exchange.
-
-
- Routing keys are hierarchical where each level is separated by a period:
-
- weather.usa
- weather.europe.germany
- weather.europe.germany.berlin
- company.engineering.repository
-
-
-
- Within the routing key hierarchy two wildcard characters are defined.
-
- * matches one field
- # matches zero or more fields
-
-
-
- Suppose an ACL rule file is:
-
-
-
- acl allow-log uHash1@COMPANY publish exchange name=X routingkey=a.#.b
- acl deny all all
-
-
-
- When user uHash1@COMPANY attempts to publish to exchange X the ACL will return these results:
-
-
-
-
-
-
-
-
-
-
-
-
-
- ACL Rule Matching
-
- The minimum matching criteria for ACL rules are:
-
- An actor (individually named or group member)
- An action
- An object
-
-
-
- If a rule does not match the minimum criteria then that rule does not control the ACL allow or deny decision.
-
-
- ACL rules optionally specify object names and property name=value pairs. If an ACL rule specifies an object name or property values than all of them must match to cause the rule to match.
-
-
- The following illustration shows how ACL rules are processed to find matching rules.
-
-
-
- Referring to ACL Properties Allowed for each Action and Object table observe that some Action/Object pairs have different sets of allowed properties. For example different broker ACL lookups for access exchange have different property subsets.
-
-
-
- [1] access exchange name
- [2] access exchange name type alternate durable autodelete
- [3] access exchange name queuename routingkey
- [4] access exchange name type durable
-
-
-
- If an ACL rule specifies the autodelete property then it can possibly match only the second case above. It can never match cases 1, 3, and 4 because the broker calls to ACL will not present the autodelete property for matching. To get proper matching the ACL rule must have only the properties of the intended lookup case.
-
-
-
- acl allow bob access exchange alternate=other ! may match pattern 2 only
- acl allow bob access exchange queuename=other ! may match pattern 3 only
- acl allow bob access exchange durable=true ! may match patterns 2 and 4 only
- acl deny bob access exchange ! may match all patterns
-
-
-
-
-
- Specifying ACL Permissions
-
- Now that we have seen the ACL syntax, we will provide representative examples and guidelines for ACL files.
-
-
- Most ACL files begin by defining groups:
-
-
-
- group admin ted@QPID martin@QPID
- group user-consume martin@QPID ted@QPID
- group group2 kim@QPID user-consume rob@QPID
- group publisher group2 \
- tom@QPID andrew@QPID debbie@QPID
-
-
- Rules in an ACL file grant or deny specific permissions to users or groups:
-
-
-
- acl allow carlt@QPID create exchange name=carl.*
- acl allow rob@QPID create queue
- acl allow guest@QPID bind exchange name=amq.topic routingkey=stocks.rht.#
- acl allow user-consume create queue name=tmp.*
-
- acl allow publisher publish all durable=false
- acl allow publisher create queue name=RequestQueue
- acl allow consumer consume queue durable=true
- acl allow fred@QPID create all
- acl allow bob@QPID all queue
- acl allow admin all
- acl allow all consume queue
- acl allow all bind exchange
- acl deny all all
-
-
- In the previous example, the last line, acl deny all all, denies all authorizations that have not been specifically granted. This is the default, but it is useful to include it explicitly on the last line for the sake of clarity. If you want to grant all rights by default, you can specify acl allow all all in the last line.
-
-
- ACL allows specification of conflicting rules. Be sure to specify the most specific rules first followed by more general rules. Here is an example:
-
-
-
- group users alice@QPID bob@QPID charlie@QPID
- acl deny charlie@QPID create queue
- acl allow users create queue
- acl deny all all
-
-
-
- In this example users alice and bob would be able to create queues due to their membership in the users group. However, user charlie is denied from creating a queue despite his membership in the users group because a deny rule for him is stated before the allow rule for the users group.
-
-
- Do not allow guest to access and log QMF management methods that could cause security breaches:
-
-
-
- group allUsers guest@QPID
- ...
- acl deny-log allUsers create link
- acl deny-log allUsers access method name=connect
- acl deny-log allUsers access method name=echo
- acl allow all all
-
-
-
-
- Auditing ACL Settings
-
- The 0.30 C++ Broker ACL module provides a comprehensive set of run-time and debug logging checks.
- The following example ACL file is used to illustrate working with the ACL module debugging features.
-
-
- group x a@QPID b@QPID b2@QPID b3@QPID
- acl allow all delete broker
- acl allow all create queue name=abc
- acl allow all create queue exchangename=xyz
- acl allow all create connection host=1.1.1.1
- acl allow all access exchange alternate=abc queuename=xyz
- acl allow all access exchange queuename=xyz
- acl allow all access exchange alternate=abc
- acl allow a@qpid all all exchangename=123
- acl allow b@qpid all all
- acl allow all all
-
-
- When this file is loaded it will show the following (truncated, formatted) Info-level log.
-
-
- notice ACL: Read file "/home/chug/acl/svn-acl.acl"
- warning ACL rule ignored: Broker never checks for rules with
- action: 'delete' and object: 'broker'
- warning ACL rule ignored: Broker checks for rules with
- action: 'create' and object: 'queue'
- but will never match with property set: { exchangename=xyz }
- warning ACL rule ignored: Broker checks for rules with
- action: 'access' and object: 'exchange'
- but will never match with property set: { alternate=abc queuename=xyz }
- info ACL Plugin loaded
-
-
- Three of the rules are invalid. The first invalid rule is rejected because there are no rules
- that specify 'delete broker' regardless of the properties. The other two rules are rejected
- because the property sets in the ACL rule don't match any broker lookups.
-
-
- The ACL module only issues a warning about these rules and continues to operate. Users upgrading
- from previous versions should be concerned that these rules never had any effect and should fix
- the rules to have the property sets needed to allow or deny the intended broker events.
-
-
- The next illustration shows the Debug-level log. Debug log level includes information about
- constructing the rule tables, expanding groups and keywords, connection and queue quotas, and
- connection black and white lists.
-
-
- notice ACL: Read file "/home/chug/acl/svn-acl.acl"
- debug ACL: Group list: 1 groups found:
- debug ACL: "x": a@QPID b2@QPID b3@QPID b@QPID
- debug ACL: name list: 7 names found:
- debug ACL: * a@QPID a@qpid b2@QPID b3@QPID b@QPID b@qpid
- debug ACL: Rule list: 10 ACL rules found:
- debug ACL: 1 allow [*] delete broker
- warning ACL rule ignored: Broker never checks for rules with
- action: 'delete' and object: 'broker'
- debug ACL: 2 allow [*] create queue name=abc
- debug ACL: 3 allow [*] create queue exchangename=xyz
- warning ACL rule ignored: Broker checks for rules with
- action: 'create' and object: 'queue'
- but will never match with property set: { exchangename=xyz }
- debug ACL: 4 allow [*] create connection host=1.1.1.1
- debug ACL: 5 allow [*] access exchange alternate=abc queuename=xyz
- warning ACL rule ignored: Broker checks for rules with
- action: 'access' and object: 'exchange'
- but will never match with property set: { alternate=abc queuename=xyz }
- debug ACL: 6 allow [*] access exchange queuename=xyz
- debug ACL: 7 allow [*] access exchange alternate=abc
- debug ACL: 8 allow [a@qpid] * * exchangename=123
- debug ACL: 9 allow [b@qpid] * *
- debug ACL: 10 allow [*] *
- debug ACL: connections quota: 0 rules found:
- debug ACL: queues quota: 0 rules found:
- debug ACL: Load Rules
- debug ACL: Processing 10 allow [*] *
- debug ACL: FoundMode allow
- debug ACL: Processing 9 allow [b@qpid] * *
- debug ACL: Adding actions {access,bind,consume,create,delete,move,publish,purge,
- redirect,reroute,unbind,update}
- to objects {broker,connection,exchange,link,method,query,queue}
- with props { }
- for users {b@qpid}
- debug ACL: Processing 8 allow [a@qpid] * * exchangename=123
- debug ACL: Adding actions {access,bind,consume,create,delete,move,publish,purge,
- redirect,reroute,unbind,update}
- to objects {broker,connection,exchange,link,method,query,queue}
- with props { exchangename=123 }
- for users {a@qpid}
- debug ACL: Processing 7 allow [*] access exchange alternate=abc
- debug ACL: Adding actions {access}
- to objects {exchange}
- with props { alternate=abc }
- for users {*,a@QPID,a@qpid,b2@QPID,b3@QPID,b@QPID,b@qpid}
- debug ACL: Processing 6 allow [*] access exchange queuename=xyz
- debug ACL: Adding actions {access}
- to objects {exchange}
- with props { queuename=xyz }
- for users {*,a@QPID,a@qpid,b2@QPID,b3@QPID,b@QPID,b@qpid}
- debug ACL: Processing 5 allow [*] access exchange alternate=abc queuename=xyz
- debug ACL: Processing 4 allow [*] create connection host=1.1.1.1
- debug ACL: Processing 3 allow [*] create queue exchangename=xyz
- debug ACL: Processing 2 allow [*] create queue name=abc
- debug ACL: Adding actions {create}
- to objects {queue}
- with props { name=abc }
- for users {*,a@QPID,a@qpid,b2@QPID,b3@QPID,b@QPID,b@qpid}
- debug ACL: Processing 1 allow [*] delete broker
- debug ACL: global Connection Rule list : 1 rules found :
- debug ACL: 1 [ruleMode = allow {(1.1.1.1,1.1.1.1)}
- debug ACL: User Connection Rule lists : 0 user lists found :
- debug ACL: Transfer ACL is Enabled!
- info ACL Plugin loaded
-
-
- The previous illustration is interesting because it shows the settings as the all keywords are
- being expanded. However, that does not show the information about what is actually going into the ACL lookup tables.
-
-
- The next two illustrations show additional information provided by Trace-level logs for ACL startup.
- The first shows a dump of the broker's internal
- action/object/properties table. This table is authoratative.
-
-
- trace ACL: Definitions of action, object, (allowed properties) lookups
- trace ACL: Lookup 1: "User querying message timestamp setting "
- access broker ()
- trace ACL: Lookup 2: "AMQP 0-10 protocol received 'query' "
- access exchange (name)
- trace ACL: Lookup 3: "AMQP 0-10 query binding "
- access exchange (name,routingkey,queuename)
- trace ACL: Lookup 4: "AMQP 0-10 exchange declare "
- access exchange (name,durable,autodelete,type,alternate)
- trace ACL: Lookup 5: "AMQP 1.0 exchange access "
- access exchange (name,durable,type)
- trace ACL: Lookup 6: "AMQP 1.0 node resolution "
- access exchange (name)
- trace ACL: Lookup 7: "Management method request "
- access method (name,schemapackage,schemaclass)
- trace ACL: Lookup 8: "Management agent method request "
- access method (name,schemapackage,schemaclass)
- trace ACL: Lookup 9: "Management agent query "
- access query (name,schemaclass)
- trace ACL: Lookup 10: "QMF 'query queue' method "
- access queue (name)
- trace ACL: Lookup 11: "AMQP 0-10 query "
- access queue (name)
- trace ACL: Lookup 12: "AMQP 0-10 queue declare "
- access queue (name,durable,autodelete,exclusive,alternate,
- policytype,queuemaxsizelowerlimit,queuemaxsizeupperlimit,
- queuemaxcountlowerlimit,queuemaxcountupperlimit)
- trace ACL: Lookup 13: "AMQP 1.0 queue access "
- access queue (name,durable,autodelete,exclusive,alternate,
- policytype,queuemaxsizelowerlimit,queuemaxsizeupperlimit,
- queuemaxcountlowerlimit,queuemaxcountupperlimit)
- trace ACL: Lookup 14: "AMQP 1.0 node resolution "
- access queue (name)
- trace ACL: Lookup 15: "AMQP 0-10 or QMF bind request "
- bind exchange (name,routingkey,queuename)
- trace ACL: Lookup 16: "AMQP 1.0 new outgoing link from exchange "
- bind exchange (name,routingkey,queuename)
- trace ACL: Lookup 17: "AMQP 0-10 subscribe request "
- consume queue (name)
- trace ACL: Lookup 18: "AMQP 1.0 new outgoing link from queue "
- consume queue (name)
- trace ACL: Lookup 19: "TCP/IP connection creation "
- create connection (host)
- trace ACL: Lookup 20: "Create exchange "
- create exchange (name,durable,autodelete,type,alternate)
- trace ACL: Lookup 21: "Interbroker link creation "
- create link ()
- trace ACL: Lookup 22: "Interbroker link creation "
- create link ()
- trace ACL: Lookup 23: "Create queue "
- create queue (name,durable,autodelete,exclusive,
- alternate,policytype,paging,
- queuemaxsizelowerlimit,queuemaxsizeupperlimit,
- queuemaxcountlowerlimit,queuemaxcountupperlimit,
- filemaxsizelowerlimit,filemaxsizeupperlimit,
- filemaxcountlowerlimit,filemaxcountupperlimit,
- pageslowerlimit,pagesupperlimit,
- pagefactorlowerlimit,pagefactorupperlimit)
- trace ACL: Lookup 24: "Delete exchange "
- delete exchange (name,durable,type,alternate)
- trace ACL: Lookup 25: "Delete queue "
- delete queue (name,durable,autodelete,exclusive,
- alternate,policytype)
- trace ACL: Lookup 26: "Management 'move queue' request "
- move queue (name,queuename)
- trace ACL: Lookup 27: "AMQP 0-10 received message processing "
- publish exchange (name,routingkey)
- trace ACL: Lookup 28: "AMQP 1.0 establish sender link to queue "
- publish exchange (routingkey)
- trace ACL: Lookup 29: "AMQP 1.0 received message processing "
- publish exchange (name,routingkey)
- trace ACL: Lookup 30: "Management 'purge queue' request "
- purge queue (name)
- trace ACL: Lookup 31: "Management 'purge queue' request "
- purge queue (name)
- trace ACL: Lookup 32: "Management 'redirect queue' request "
- redirect queue (name,queuename)
- trace ACL: Lookup 33: "Management 'reroute queue' request "
- reroute queue (name,exchangename)
- trace ACL: Lookup 34: "Management 'unbind exchange' request "
- unbind exchange (name,routingkey,queuename)
- trace ACL: Lookup 35: "User modifying message timestamp setting "
- update broker ()
-
-
- The final illustration shows a dump of every rule for every user in the ACL database.
- It includes the user name, action, object, original ACL rule number, allow or deny status,
- and a cross reference indicating which Lookup Events the rule could possibly satisfy.
-
-
- Note that rules identified by User: * are the rules in effect
- for users otherwise unnamed in the ACL file.
-
-
-
- trace ACL: Decision rule cross reference
- trace ACL: User: b@qpid access broker
- Rule: [rule 9 ruleMode = allow props{ }]
- may match Lookups : (1)
- trace ACL: User: * access exchange
- Rule: [rule 6 ruleMode = allow props{ queuename=xyz }]
- may match Lookups : (3)
- trace ACL: User: * access exchange
- Rule: [rule 7 ruleMode = allow props{ alternate=abc }]
- may match Lookups : (4)
- trace ACL: User: a@QPID access exchange
- Rule: [rule 6 ruleMode = allow props{ queuename=xyz }]
- may match Lookups : (3)
- trace ACL: User: a@QPID access exchange
- Rule: [rule 7 ruleMode = allow props{ alternate=abc }]
- may match Lookups : (4)
- trace ACL: User: a@qpid access exchange
- Rule: [rule 6 ruleMode = allow props{ queuename=xyz }]
- may match Lookups : (3)
- trace ACL: User: a@qpid access exchange
- Rule: [rule 7 ruleMode = allow props{ alternate=abc }]
- may match Lookups : (4)
- trace ACL: User: b2@QPID access exchange
- Rule: [rule 6 ruleMode = allow props{ queuename=xyz }]
- may match Lookups : (3)
- trace ACL: User: b2@QPID access exchange
- Rule: [rule 7 ruleMode = allow props{ alternate=abc }]
- may match Lookups : (4)
- trace ACL: User: b3@QPID access exchange
- Rule: [rule 6 ruleMode = allow props{ queuename=xyz }]
- may match Lookups : (3)
- trace ACL: User: b3@QPID access exchange
- Rule: [rule 7 ruleMode = allow props{ alternate=abc }]
- may match Lookups : (4)
- trace ACL: User: b@QPID access exchange
- Rule: [rule 6 ruleMode = allow props{ queuename=xyz }]
- may match Lookups : (3)
- trace ACL: User: b@QPID access exchange
- Rule: [rule 7 ruleMode = allow props{ alternate=abc }]
- may match Lookups : (4)
- trace ACL: User: b@qpid access exchange
- Rule: [rule 6 ruleMode = allow props{ queuename=xyz }]
- may match Lookups : (3)
- trace ACL: User: b@qpid access exchange
- Rule: [rule 7 ruleMode = allow props{ alternate=abc }]
- may match Lookups : (4)
- trace ACL: User: b@qpid access exchange
- Rule: [rule 9 ruleMode = allow props{ }]
- may match Lookups : (2,3,4,5,6)
- trace ACL: User: b@qpid access method
- Rule: [rule 9 ruleMode = allow props{ }]
- may match Lookups : (7,8)
- trace ACL: User: b@qpid access query
- Rule: [rule 9 ruleMode = allow props{ }]
- may match Lookups : (9)
- trace ACL: User: b@qpid access queue
- Rule: [rule 9 ruleMode = allow props{ }]
- may match Lookups : (10,11,12,13,14)
- trace ACL: User: b@qpid bind exchange
- Rule: [rule 9 ruleMode = allow props{ }]
- may match Lookups : (15,16)
- trace ACL: User: b@qpid consume queue
- Rule: [rule 9 ruleMode = allow props{ }]
- may match Lookups : (17,18)
- trace ACL: User: b@qpid create connection
- Rule: [rule 9 ruleMode = allow props{ }]
- may match Lookups : (19)
- trace ACL: User: b@qpid create exchange
- Rule: [rule 9 ruleMode = allow props{ }]
- may match Lookups : (20)
- trace ACL: User: b@qpid create link
- Rule: [rule 9 ruleMode = allow props{ }]
- may match Lookups : (21,22)
- trace ACL: User: * create queue
- Rule: [rule 2 ruleMode = allow props{ name=abc }]
- may match Lookups : (23)
- trace ACL: User: a@QPID create queue
- Rule: [rule 2 ruleMode = allow props{ name=abc }]
- may match Lookups : (23)
- trace ACL: User: a@qpid create queue
- Rule: [rule 2 ruleMode = allow props{ name=abc }]
- may match Lookups : (23)
- trace ACL: User: b2@QPID create queue
- Rule: [rule 2 ruleMode = allow props{ name=abc }]
- may match Lookups : (23)
- trace ACL: User: b3@QPID create queue
- Rule: [rule 2 ruleMode = allow props{ name=abc }]
- may match Lookups : (23)
- trace ACL: User: b@QPID create queue
- Rule: [rule 2 ruleMode = allow props{ name=abc }]
- may match Lookups : (23)
- trace ACL: User: b@qpid create queue
- Rule: [rule 2 ruleMode = allow props{ name=abc }]
- may match Lookups : (23)
- trace ACL: User: b@qpid create queue
- Rule: [rule 9 ruleMode = allow props{ }]
- may match Lookups : (23)
- trace ACL: User: b@qpid delete exchange
- Rule: [rule 9 ruleMode = allow props{ }]
- may match Lookups : (24)
- trace ACL: User: b@qpid delete queue
- Rule: [rule 9 ruleMode = allow props{ }]
- may match Lookups : (25)
- trace ACL: User: b@qpid move queue
- Rule: [rule 9 ruleMode = allow props{ }]
- may match Lookups : (26)
- trace ACL: User: b@qpid publish exchange
- Rule: [rule 9 ruleMode = allow props{ }]
- may match Lookups : (27,28,29)
- trace ACL: User: b@qpid purge queue
- Rule: [rule 9 ruleMode = allow props{ }]
- may match Lookups : (30,31)
- trace ACL: User: b@qpid redirect queue
- Rule: [rule 9 ruleMode = allow props{ }]
- may match Lookups : (32)
- trace ACL: User: a@qpid reroute queue
- Rule: [rule 8 ruleMode = allow props{ exchangename=123 }]
- may match Lookups : (33)
- trace ACL: User: b@qpid reroute queue
- Rule: [rule 9 ruleMode = allow props{ }]
- may match Lookups : (33)
- trace ACL: User: b@qpid unbind exchange
- Rule: [rule 9 ruleMode = allow props{ }]
- may match Lookups : (34)
- trace ACL: User: b@qpid update broker
- Rule: [rule 9 ruleMode = allow props{ }]
- may match Lookups : (35)
-
-
-
-
-
-
- User Connection and Queue Quotas
-
- The ACL module enforces various quotas and thereby limits user activity.
-
-
-
- Connection Count Limits
-
- The ACL module creates broker command line switches that set limits on the number of concurrent connections allowed per user or per client host address. These settings are not specified in the ACL file.
-
-
-
- --max-connections N
- --connection-limit-per-user N
- --connection-limit-per-ip N
-
-
-
- --max-connections specifies an upper limit for all user connections.
-
-
- --connection-limit-per-user specifies an upper limit for each user based on the authenticated user name. This limit is enforced regardless of the client IP address from which the connection originates.
-
-
- --connection-limit-per-ip specifies an upper limit for connections for all users based on the originating client IP address. This limit is enforced regardless of the user credentials presented with the connection.
-
-
- Note that addresses using different transports are counted separately even though the originating host is actually the same physical machine. In the setting illustrated above a host would allow N_IP connections from [::1] IPv6 transport localhost and another N_IP connections from [127.0.0.1] IPv4 transport localhost.
-
-
- The connection-limit-per-ip and connection-limit-per-user counts are active simultaneously. From a given client system users may be denied access to the broker by either connection limit.
-
-
-
-
- The 0.22 C++ Broker ACL module accepts fine grained per-user connection limits through quota rules in the ACL file.
-
-
-
- quota connections 10 admins userX@QPID
-
-
-
-
-
- User all receives the value passed by the command line switch --connection-limit-per-user.
-
-
- Values specified in the ACL rule for user all overwrite the value specified on the command line if any.
-
-
- Connection quotas values are determined by first searching for the authenticated user name. If that user name is not specified then the value for user all
- is used. If user all is not specified then the connection is denied.
-
-
- The connection quota values range from 0..65530 inclusive. A value of zero disables connections from that user.
-
-
- A user's quota may be specified many times in the ACL rule file. Only the last value specified is retained and enforced.
-
-
- Per-user connection quotas are disabled when two conditions are true: 1) No --connection-limit-per-user command line switch and 2) No quota connections
- rules in the ACL file. Per-user connections are always counted even if connection quotas are not enforced. This supports ACL file reloading that may subsequently
- enable per-user connection quotas.
-
-
- An ACL file reload may lower a user's connection quota value to a number lower than the user's current connection count. In that case the active connections
- remain unaffected. New connections are denied until that user closes enough of his connections so that his count falls below the configured limit.
-
-
-
-
-
-
- Connection Limits by Host Name
-
- The 0.30 C++ Broker ACL module adds the ability to create allow and deny lists of the TCP/IP hosts from which users may connect. The rule accepts these forms:
-
-
-
- acl allow user create connection host=host1
- acl allow user create connection host=host1,host2
- acl deny user create connection host=all
-
-
-
- Using the form host=host1 specifies a single host. With a single host the name may resolve to multiple TCP/IP addresses. For example localhost resolves to both 127.0.0.1 and ::1 and possibly many other addresses. A connection from any of the addresses associated with this host matches the rule and the connection is allowed or denied accordingly.
-
-
- Using the form host=host1,host2 specifies a range of TCP/IP addresses. With a host range each host must resolve to a single TCP/IP address and the second address must be numerically larger than the first. A connection from any host where host >= host1 and host <= host2 match the rule and the connection is allowed or denied accordingly.
-
-
- Using the form host=all specifies all TCP/IP addresses. A connection from any host matches the rule and the connection is allowed or denied accordingly.
-
-
- Connection denial is only applied to incoming TCP/IP connections. Other socket types are not subjected to nor denied by range checks.
-
-
- Connection creation rules are divided into three categories:
-
-
-
-
- User = all, host != all
-
-
- These define global rules and are applied before any specific user rules.
- These rules may be used to reject connections before any AMPQ protocol is run and before
- any user names have been negotiated.
-
-
-
-
- User != all, host = any legal host or 'all'
-
-
- These define user rules. These rules are applied after the global rules and
- after the AMQP protocol has negotiated user identities.
-
-
-
-
- User = all, host = all
-
-
- This rule defines what to do if no other rule matches. The default value is "ALLOW".
- Only one rule of this type may be defined.
-
-
-
-
-
- The following example illustrates how this feature can be used.
-
-
-
- group admins alice bob chuck
- group Company1 c1_usera c1_userb
- group Company2 c2_userx c2_usery c2_userz
- acl allow admins create connection host=localhost
- acl allow admins create connection host=10.0.0.0,10.255.255.255
- acl allow admins create connection host=192.168.0.0,192.168.255.255
- acl allow admins create connection host=[fc00::],[fc00::ff]
- acl allow Company1 create connection host=company1.com
- acl deny Company1 create connection host=all
- acl allow Company2 create connection host=company2.com
- acl deny Company2 create connection host=all
-
-
-
- In this example admins may connect from localhost or from any system on the 10.0.0.0/24, 192.168.0.0/16, and fc00::/7 subnets. Company1 users may connect only from company1.com and Company2 users may connect only from company2.com.
- However, this example has a flaw. Although the admins group has specific hosts
- from which it is allowed to make connections it is not blocked from connecting
- from anywhere. The Company1 and Company2 groups are blocked appropriately.
- This ACL file may be rewritten as follows:
-
-
-
- group admins alice bob chuck
- group Company1 c1_usera c1_userb
- group Company2 c2_userx c2_usery c2_userz
- acl allow admins create connection host=localhost
- acl allow admins create connection host=10.0.0.0,10.255.255.255
- acl allow admins create connection host=192.168.0.0,192.168.255.255
- acl allow admins create connection host=[fc00::],[fc00::ff]
- acl allow Company1 create connection host=company1.com
- acl allow Company2 create connection host=company2.com
- acl deny all create connection host=all
-
-
-
- Now admins are blocked from connecting from anywhere but their allowed
- hosts.
-
-
-
-
-
- Queue Limits
-
- The ACL module creates a broker command line switch that set limits on the number of queues each user is allowed to create. This settings is not specified in the ACL file.
-
-
-
- --max-queues-per-user N
-
-
-
- The queue limit is set for all users on the broker.
-
-
- The 0.22 C++ Broker ACL module accepts fine grained per-user queue limits through quota rules in the ACL file.
-
-
-
- quota queues 10 admins userX@QPID
-
-
-
-
-
- User all receives the value passed by the command line switch --max-queues-per-user.
-
-
- Values specified in the ACL rule for user all overwrite the value specified on the command line if any.
-
-
- Queue quotas values are determined by first searching for the authenticated user name. If that user name is not specified then the value for user all
- is used. If user all is not specified then the queue creation is denied.
-
-
- The queue quota values range from 0..65530 inclusive. A value of zero disables queue creation by that user.
-
-
- A user's quota may be specified many times in the ACL rule file. Only the last value specified is retained and enforced.
-
-
- Per-user queue quotas are disabled when two conditions are true: 1) No --queue-limit-per-user command line switch and 2) No quota queues
- rules in the ACL file. Per-user queue creations are always counted even if queue quotas are not enforced. This supports ACL file reloading that may subsequently
- enable per-user queue quotas.
-
-
- An ACL file reload may lower a user's queue quota value to a number lower than the user's current queue count. In that case the active queues
- remain unaffected. New queues are denied until that user closes enough of his queues so that his count falls below the configured limit.
-
-
-
-
-
-
-
-
- Encryption using SSL
-
- Encryption and certificate management for qpidd is provided by Mozilla's Network Security Services Library (NSS).
-
-
- Enabling SSL for the Qpid broker
-
-
- You will need a certificate that has been signed by a Certification Authority (CA). This certificate will also need to be trusted by your client. If you require client authentication in addition to server authentication, the client's certificate will also need to be signed by a CA and trusted by the broker.
-
-
- In the broker, SSL is provided through the ssl.so module. This module is installed and loaded by default in Qpid. To enable the module, you need to specify the location of the database containing the certificate and key to use. This is done using the ssl-cert-db option.
-
-
- The certificate database is created and managed by the Mozilla Network Security Services (NSS) certutil tool. Information on this utility can be found on the Mozilla website, including tutorials on setting up and testing SSL connections. The certificate database will generally be password protected. The safest way to specify the password is to place it in a protected file, use the password file when creating the database, and specify the password file with the ssl-cert-password-file option when starting the broker.
-
-
- The following script shows how to create a certificate database using certutil:
-
-
-
-mkdir ${CERT_DIR}
-certutil -N -d ${CERT_DIR} -f ${CERT_PW_FILE}
-certutil -S -d ${CERT_DIR} -n ${NICKNAME} -s "CN=${NICKNAME}" -t "CT,," -x -f ${CERT_PW_FILE} -z /usr/bin/certutil
-
-
- When starting the broker, set ssl-cert-password-file to the value of ${CERT_PW_FILE}, set ssl-cert-db to the value of ${CERT_DIR}, and set ssl-cert-name to the value of ${NICKNAME}.
-
-
-
-
-
- The following SSL options can be used when starting the broker:
-
-
- --ssl-use-export-policy
-
-
- Use NSS export policy
-
-
-
-
-
-
- --ssl-cert-password-file PATH
-
-
- Required. Plain-text file containing password to use for accessing certificate database.
-
-
-
-
-
-
- --ssl-cert-db PATH
-
-
- Required. Path to directory containing certificate database.
-
-
-
-
-
-
- --ssl-cert-name NAME
-
-
- Name of the certificate to use. Default is localhost.localdomain.
-
-
-
-
-
-
- --ssl-port NUMBER
-
-
- Port on which to listen for SSL connections. If no port is specified, port 5671 is used.
-
-
-
-
-
-
- --ssl-require-client-authentication
-
-
- Require SSL client authentication (i.e. verification of a client certificate) during the SSL handshake. This occurs before SASL authentication, and is independent of SASL.
-
-
- This option enables the EXTERNAL SASL mechanism for SSL connections. If the client chooses the EXTERNAL mechanism, the client's identity is taken from the validated SSL certificate, using the CNliteral>, and appending any DCliteral>s to create the domain. For instance, if the certificate contains the properties CN=bob, DC=acme, DC=com, the client's identity is bob@acme.com.
-
-
- If the client chooses a different SASL mechanism, the identity take from the client certificate will be replaced by that negotiated during the SASL handshake.
-
-
-
-
-
-
- --ssl-sasl-no-dict
-
-
- Do not accept SASL mechanisms that can be compromised by dictionary attacks. This prevents a weaker mechanism being selected instead of EXTERNAL, which is not vulnerable to dictionary attacks.
-
-
-
-
-
-
-
- Also relevant is the --require-encryption broker option. This will cause qpidd to only accept encrypted connections.
-
-
-
-
-
-
- Enabling SSL in Clients
-
- C++ clients:
-
-
-
-
-
- In C++ clients, SSL is implemented in the sslconnector.so module. This module is installed and loaded by default in Qpid.
-
-
- The following options can be specified for C++ clients using environment variables:
-
-
- SSL Client Environment Variables for C++ clients
-
-
-
-
-
-
- SSL Client Options for C++ clients
-
-
-
-
-
-
-
-
- QPID_SSL_USE_EXPORT_POLICY
-
-
- Use NSS export policy
-
-
-
-
-
- QPID_SSL_CERT_PASSWORD_FILE PATH
-
-
- File containing password to use for accessing certificate database
-
-
-
-
-
- QPID_SSL_CERT_DB PATH
-
-
- Path to directory containing certificate database
-
-
-
-
-
- QPID_SSL_CERT_NAME NAME
-
-
- Name of the certificate to use. When SSL client authentication is enabled, a certificate name should normally be provided.
-
-
-
-
-
-
-
-
-
-
-
-
-
- When using SSL connections, clients must specify the location of the certificate database, a directory that contains the client's certificate and the public key of the Certificate Authority. This can be done by setting the environment variable QPID_SSL_CERT_DB to the full pathname of the directory. If a connection uses SSL client authentication, the client's password is also needed—the password should be placed in a protected file, and the QPID_SSL_CERT_PASSWORD_FILE variable should be set to the location of the file containing this password.
-
-
-
-
-
- To open an SSL enabled connection in the Qpid Messaging API, set the protocol connection option to ssl.
-
-
-
-
-
-
-
-
-
-
-
-
- Java clients:
-
-
-
-
-
- For both server and client authentication, import the trusted CA to your trust store and keystore and generate keys for them. Create a certificate request using the generated keys and then create a certificate using the request. You can then import the signed certificate into your keystore. Pass the following arguments to the Java JVM when starting your client:
-
--Djavax.net.ssl.keyStore=/home/bob/ssl_test/keystore.jks
--Djavax.net.ssl.keyStorePassword=password
--Djavax.net.ssl.trustStore=/home/bob/ssl_test/certstore.jks
--Djavax.net.ssl.trustStorePassword=password
-
-
-
-
-
-
-
- For server side authentication only, import the trusted CA to your trust store and pass the following arguments to the Java JVM when starting your client:
-
--Djavax.net.ssl.trustStore=/home/bob/ssl_test/certstore.jks
--Djavax.net.ssl.trustStorePassword=password
-
-
-
-
-
-
-
- Java clients must use the SSL option in the connection URL to enable SSL encryption, e.g.
-
-
-amqp://username:password@clientid/test?brokerlist='tcp://localhost:5672?ssl='true''
-
-
-
-
-
- If you need to debug problems in an SSL connection, enable Java's SSL debugging by passing the argument -Djavax.net.debug=ssl to the Java JVM when starting your client.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/cpp-broker/Using-Broker-Federation.xml b/qpid/doc/book/src/cpp-broker/Using-Broker-Federation.xml
deleted file mode 100644
index 614c168704..0000000000
--- a/qpid/doc/book/src/cpp-broker/Using-Broker-Federation.xml
+++ /dev/null
@@ -1,715 +0,0 @@
-
-
-
-
- Broker Federation
-
- Broker Federation allows messaging networks to be defined by creating message routes, in which messages in one broker (the source broker) are automatically routed to another broker (the destination broker). These routes may be defined between exchanges in the two brokers (the source exchange and the destination exchange), or from a queue in the source broker (the source queue) to an exchange in the destination broker. Message routes are unidirectional; when bidirectional flow is needed, one route is created in each direction. Routes can be durable or transient. A durable route survives broker restarts, restoring a route as soon as both the source broker and the destination are available. If the connection to a destination is lost, messages associated with a durable route continue to accumulate on the source, so they can be retrieved when the connection is reestablished.
-
-
- Broker Federation can be used to build large messaging networks, with many brokers, one route at a time. If network connectivity permits, an entire distributed messaging network can be configured from a single location. The rules used for routing can be changed dynamically as servers change, responsibilities change, at different times of day, or to reflect other changing conditions.
-
-
- Broker Federation is useful in a wide variety of scenarios. Some of these have to do with functional organization; for instance, brokers may be organized by geography, service type, or priority. Here are some use cases for federation:
-
-
-
- Geography: Customer requests may be routed to a processing location close to the customer.
-
-
-
-
-
- Service Type: High value customers may be routed to more responsive servers.
-
-
-
-
-
- Load balancing: Routing among brokers may be changed dynamically to account for changes in actual or anticipated load.
-
-
-
-
-
- High Availability: Routing may be changed to a new broker if an existing broker becomes unavailable.
-
-
-
-
-
- WAN Connectivity: Federated routes may connect disparate locations across a wide area network, while clients connect to brokers on their own local area network. Each broker can provide persistent queues that can hold messages even if there are gaps in WAN connectivity.
-
-
-
-
-
- Functional Organization: The flow of messages among software subsystems can be configured to mirror the logical structure of a distributed application.
-
-
-
-
-
- Replicated Exchanges: High-function exchanges like the XML exchange can be replicated to scale performance.
-
-
-
-
-
- Interdepartmental Workflow: The flow of messages among brokers can be configured to mirror interdepartmental workflow at an organization.
-
-
-
-
-
-
-
-
- Message Routes
-
- Broker Federation is done by creating message routes. The destination for a route is always an exchange on the destination broker. By default, a message route is created by configuring the destination broker, which then contacts the source broker to subscribe to the source queue. This is called a pull route. It is also possible to create a route by configuring the source broker, which then contacts the destination broker in order to send messages. This is called a push route, and is particularly useful when the destination broker may not be available at the time the messaging route is configured, or when a large number of routes are created with the same destination exchange.
-
-
- The source for a route can be either an exchange or a queue on the source broker. If a route is between two exchanges, the routing criteria can be given explicitly, or the bindings of the destination exchange can be used to determine the routing criteria. To support this functionality, there are three kinds of message routes: queue routes, exchange routes, and dynamic exchange routes.
-
-
- Queue Routes
-
- Queue Routes route all messages from a source queue to a destination exchange. If message acknowledgement is enabled, messages are removed from the queue when they have been received by the destination exchange; if message acknowledgement is off, messages are removed from the queue when sent.
-
-
-
-
-
- Exchange Routes
-
- Exchange routes route messages from a source exchange to a destination exchange, using a binding key (which is optional for a fanout exchange).
-
-
- Internally, creating an exchange route creates a private queue (auto-delete, exclusive) on the source broker to hold messages that are to be routed to the destination broker, binds this private queue to the source broker exchange, and subscribes the destination broker to the queue.
-
-
-
-
-
- Dynamic Exchange Routes
-
- Dynamic exchange routes allow a client to create bindings to an exchange on one broker, and receive messages that satisfy the conditions of these bindings not only from the exchange to which the client created the binding, but also from other exchanges that are connected to it using dynamic exchange routes. If the client modifies the bindings for a given exchange, they are also modified for dynamic exchange routes associated with that exchange.
-
-
- Dynamic exchange routes apply all the bindings of a destination exchange to a source exchange, so that any message that would match one of these bindings is routed to the destination exchange. If bindings are added or removed from the destination exchange, these changes are reflected in the dynamic exchange route -- when the destination broker creates a binding with a given binding key, this is reflected in the route, and when the destination broker drops a binding with a binding key, the route no longer incurs the overhead of transferring messages that match the binding key among brokers. If two exchanges have dynamic exchange routes to each other, then all bindings in each exchange are reflected in the dynamic exchange route of the other. In a dynamic exchange route, the source and destination exchanges must have the same exchange type, and they must have the same name; for instance, if the source exchange is a direct exchange, the destination exchange must also be a direct exchange, and the names must match.
-
-
- Internally, dynamic exchange routes are implemented in the same way as exchange routes, except that the bindings used to implement dynamic exchange routes are modified if the bindings in the destination exchange change.
-
-
- A dynamic exchange route is always a pull route. It can never be a push route.
-
-
-
-
-
-
-
-
- Federation Topologies
-
- A federated network is generally a tree, star, or line, using bidirectional links (implemented as a pair of unidirectional links) between any two brokers. A ring topology is also possible, if only unidirectional links are used.
-
-
- Every message transfer takes time. For better performance, you should minimize the number of brokers between the message origin and final destination. In most cases, tree or star topologies do this best.
-
-
- For any pair of nodes A,B in a federated network, there should be only one path from A to B. If there is more than one path, message loops can cause duplicate message transmission and flood the federated network. The topologies discussed above do not have message loops. A ring topology with bidirectional links is one example of a topology that does cause this problem, because a given broker can receive the same message from two different brokers. Mesh topologies can also cause this problem.
-
-
-
-
-
- Federation among High Availability Message Clusters
-
- Federation is generally used together with High Availability Message Clusters, using clusters to provide high availability on each LAN, and federation to route messages among the clusters. Because message state is replicated within a cluster, it makes little sense to define message routes between brokers in the same cluster.
-
-
- To create a message route between two clusters, simply create a route between any one broker in the first cluster and any one broker in the second cluster. Each broker in a given cluster can use message routes defined for another broker in the same cluster. If the broker for which a message route is defined should fail, another broker in the same cluster can restore the message route.
-
-
-
-
-
- The qpid-route Utility
-
- qpid-route is a command line utility used to configure federated networks of brokers and to view the status and topology of networks. It can be used to configure routes among any brokers that qpid-route can connect to.
-
-
- The syntax of qpid-route is as follows:
-
-
-
- qpid-route [OPTIONS] dynamic add <dest-broker> <src-broker> <exchange>
- qpid-route [OPTIONS] dynamic del <dest-broker> <src-broker> <exchange>
-
- qpid-route [OPTIONS] route add <dest-broker> <src-broker> <exchange> <routing-key>
- qpid-route [OPTIONS] route del <dest-broker> <src-broker> <exchange> <routing-key>
-
- qpid-route [OPTIONS] queue add <dest-broker> <src-broker> <dest-exchange> <src-queue>
- qpid-route [OPTIONS] queue del <dest-broker> <src-broker> <dest-exchange> <src-queue>
-
- qpid-route [OPTIONS] list [<broker>]
- qpid-route [OPTIONS] flush [<broker>]
- qpid-route [OPTIONS] map [<broker>]
-
-
- qpid-route [OPTIONS] list connections [<broker>]
-
-
- The syntax for broker, dest-broker, and src-broker is as follows:
-
-
-
- [username/password@] hostname | ip-address [:<port>]
-
-
- The following are all valid examples of the above syntax: localhost, 10.1.1.7:10000, broker-host:10000, guest/guest@localhost.
-
-
- These are the options for qpid-route:
-
-
- qpid-route options
-
-
-
-
-
-
- -v
-
-
- Verbose output.
-
-
-
-
-
- -q
-
-
- Quiet output, will not print duplicate warnings.
-
-
-
-
-
- -d
-
-
- Make the route durable.
-
-
-
-
-
- --timeout N
-
-
- Maximum time to wait when qpid-route connects to a broker, in seconds. Default is 10 seconds.
-
-
-
-
-
- --ack N
-
-
- Acknowledge transfers of routed messages in batches of N. Default is 0 (no acknowledgements). Setting to 1 or greater enables acknowledgements; when using acknowledgements, values of N greater than 1 can significnantly improve performance, especially if there is significant network latency between the two brokers.
-
-
-
-
-
- -s [ --src-local ]
-
-
- Configure the route in the source broker (create a push route).
-
-
-
-
-
- -t <transport> [ --transport <transport>]
-
-
- Transport protocol to be used for the route.
-
-
-
- tcp (default)
-
-
-
-
-
- ssl
-
-
-
-
-
- rdma
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Creating and Deleting Queue Routes
-
- The syntax for creating and deleting queue routes is as follows:
-
-
-
- qpid-route [OPTIONS] queue add <dest-broker> <src-broker> <dest-exchange> <src-queue>
- qpid-route [OPTIONS] queue del <dest-broker> <src-broker> <dest-exchange> <src-queue>
-
-
- For instance, the following creates a queue route that routes all messages from the queue named public on the source broker localhost:10002 to the amq.fanout exchange on the destination broker localhost:10001:
-
-
-
- $ qpid-route queue add localhost:10001 localhost:10002 amq.fanout public
-
-
- If the -d option is specified, this queue route is persistent, and will be restored if one or both of the brokers is restarted:
-
-
-
- $ qpid-route -d queue add localhost:10001 localhost:10002 amq.fanout public
-
-
- The del command takes the same arguments as the add command. The following command deletes the queue route described above:
-
-
-
- $ qpid-route queue del localhost:10001 localhost:10002 amq.fanout public
-
-
-
-
-
- Creating and Deleting Exchange Routes
-
- The syntax for creating and deleting exchange routes is as follows:
-
-
-
- qpid-route [OPTIONS] route add <dest-broker> <src-broker> <exchange> <routing-key>
- qpid-route [OPTIONS] route del <dest-broker> <src-broker> <exchange> <routing-key>
- qpid-route [OPTIONS] flush [<broker>]
-
-
- For instance, the following creates an exchange route that routes messages that match the binding key global.# from the amq.topic exchange on the source broker localhost:10002 to the amq.topic exchange on the destination broker localhost:10001:
-
-
-
- $ qpid-route route add localhost:10001 localhost:10002 amq.topic global.#
-
-
- In many applications, messages published to the destination exchange should also be routed to the source exchange. This is accomplished by creating a second exchange route, reversing the roles of the two exchanges:
-
-
-
- $ qpid-route route add localhost:10002 localhost:10001 amq.topic global.#
-
-
- If the -d option is specified, the exchange route is persistent, and will be restored if one or both of the brokers is restarted:
-
-
-
- $ qpid-route -d route add localhost:10001 localhost:10002 amq.fanout public
-
-
- The del command takes the same arguments as the add command. The following command deletes the first exchange route described above:
-
-
-
- $ qpid-route route del localhost:10001 localhost:10002 amq.topic global.#
-
-
-
-
-
- Deleting all routes for a broker
-
- Use the flush command to delete all routes for a given broker:
-
-
-
- qpid-route [OPTIONS] flush [<broker>]
-
-
- For instance, the following command deletes all routes for the broker localhost:10001:
-
-
-
- $ qpid-route flush localhost:10001
-
-
-
-
-
- Creating and Deleting Dynamic Exchange Routes
-
- The syntax for creating and deleting dynamic exchange routes is as follows:
-
-
-
- qpid-route [OPTIONS] dynamic add <dest-broker> <src-broker> <exchange>
- qpid-route [OPTIONS] dynamic del <dest-broker> <src-broker> <exchange>
-
-
- In the following examples, we will route messages from a topic exchange. We will create a new topic exchange and federate it so that we are not affected by other all clients that use the built-in amq.topic exchange. The following commands create a new topic exchange on each of two brokers:
-
-
-
- $ qpid-config -a localhost:10003 add exchange topic fed.topic
- $ qpid-config -a localhost:10004 add exchange topic fed.topic
-
-
- Now let's create a dynamic exchange route that routes messages from the fed.topic exchange on the source broker localhost:10004 to the fed.topic exchange on the destination broker localhost:10003 if they match any binding on the destination broker's fed.topic exchange:
-
-
-
- $ qpid-route dynamic add localhost:10003 localhost:10004 fed.topic
-
-
- Internally, this creates a private autodelete queue on the source broker, and binds that queue to the fed.topic exchange on the source broker, using each binding associated with the fed.topic exchange on the destination broker.
-
-
- In many applications, messages published to the destination exchange should also be routed to the source exchange. This is accomplished by creating a second dynamic exchange route, reversing the roles of the two exchanges:
-
-
-
- $ qpid-route dynamic add localhost:10004 localhost:10003 fed.topic
-
-
- If the -d option is specified, the exchange route is persistent, and will be restored if one or both of the brokers is restarted:
-
-
-
- $ qpid-route -d dynamic add localhost:10004 localhost:10003 fed.topic
-
-
- When an exchange route is durable, the private queue used to store messages for the route on the source exchange is also durable. If the connection between the brokers is lost, messages for the destination exchange continue to accumulate until it can be restored.
-
-
- The del command takes the same arguments as the add command. The following command deletes the first exchange route described above:
-
-
-
- $ qpid-route dynamic del localhost:10004 localhost:10003 fed.topic
-
-
- Internally, this deletes the bindings on the source exchange for the the private queues associated with the message route.
-
-
-
-
-
- Viewing Routes
-
- The route list command shows the routes associated with an individual broker. For instance, suppose we have created the following two routes:
-
-
-
- $ qpid-route dynamic add localhost:10003 localhost:10004 fed.topic
- $ qpid-route dynamic add localhost:10004 localhost:10003 fed.topic
-
-
- We can now use route list to show all routes for the broker localhost:10003:
-
-
-
- $ qpid-route route list localhost:10003
- localhost:10003 localhost:10004 fed.topic <dynamic>
-
-
- Note that this shows only one of the two routes we created, the route for which localhost:10003 is a destination. If we want to see the route for which localhost:10004 is a destination, we need to do another route list:
-
-
-
- $ qpid-route route list localhost:10004
- localhost:10004 localhost:10003 fed.topic <dynamic>
-
-
- The route map command shows all routes associated with a broker, and recursively displays all routes for brokers involved in federation relationships with the given broker. For instance, here is the output for the two brokers configured above:
-
-
-
- $ qpid-route route map localhost:10003
-
- Finding Linked Brokers:
- localhost:10003... Ok
- localhost:10004... Ok
-
- Dynamic Routes:
-
- Exchange fed.topic:
- localhost:10004 <=> localhost:10003
-
- Static Routes:
- none found
-
-
- Note that the two dynamic exchange links are displayed as though they were one bidirectional link. The route map command is particularly helpful for larger, more complex networks. Let's configure a somewhat more complex network with 16 dynamic exchange routes:
-
-
-
- qpid-route dynamic add localhost:10001 localhost:10002 fed.topic
- qpid-route dynamic add localhost:10002 localhost:10001 fed.topic
-
- qpid-route dynamic add localhost:10003 localhost:10002 fed.topic
- qpid-route dynamic add localhost:10002 localhost:10003 fed.topic
-
- qpid-route dynamic add localhost:10004 localhost:10002 fed.topic
- qpid-route dynamic add localhost:10002 localhost:10004 fed.topic
-
- qpid-route dynamic add localhost:10002 localhost:10005 fed.topic
- qpid-route dynamic add localhost:10005 localhost:10002 fed.topic
-
- qpid-route dynamic add localhost:10005 localhost:10006 fed.topic
- qpid-route dynamic add localhost:10006 localhost:10005 fed.topic
-
- qpid-route dynamic add localhost:10006 localhost:10007 fed.topic
- qpid-route dynamic add localhost:10007 localhost:10006 fed.topic
-
- qpid-route dynamic add localhost:10006 localhost:10008 fed.topic
- qpid-route dynamic add localhost:10008 localhost:10006 fed.topic
-
-
- Now we can use route map starting with any one broker, and see the entire network:
-
-
-
- $ ./qpid-route route map localhost:10001
-
- Finding Linked Brokers:
- localhost:10001... Ok
- localhost:10002... Ok
- localhost:10003... Ok
- localhost:10004... Ok
- localhost:10005... Ok
- localhost:10006... Ok
- localhost:10007... Ok
- localhost:10008... Ok
-
- Dynamic Routes:
-
- Exchange fed.topic:
- localhost:10002 <=> localhost:10001
- localhost:10003 <=> localhost:10002
- localhost:10004 <=> localhost:10002
- localhost:10005 <=> localhost:10002
- localhost:10006 <=> localhost:10005
- localhost:10007 <=> localhost:10006
- localhost:10008 <=> localhost:10006
-
- Static Routes:
- none found
-
-
-
-
-
- Resilient Connections
-
- When a broker route is created, or when a durable broker route is restored after broker restart, a connection is created between the source broker and the destination broker. The connections used between brokers are called resilient connections; if the connection fails due to a communication error, it attempts to reconnect. The retry interval begins at 2 seconds and, as more attempts are made, grows to 64 seconds, and continues to retry every 64 seconds thereafter. If the connection fails due to an authentication problem, it will not continue to retry.
-
-
- The command list connections can be used to show the resilient connections for a broker:
-
-
-
- $ qpid-route list connections localhost:10001
-
- Host Port Transport Durable State Last Error
- =============================================================================
- localhost 10002 tcp N Operational
- localhost 10003 tcp N Operational
- localhost 10009 tcp N Waiting Connection refused
-
-
- In the above output, Last Error contains the string representation of the last connection error received for the connection. State represents the state of the connection, and may be one of the following values:
-
-
- State values in $ qpid-route list connections
-
-
-
-
- Waiting
-
-
- Waiting before attempting to reconnect.
-
-
-
-
-
- Connecting
-
-
- Attempting to establish the connection.
-
-
-
-
-
- Operational
-
-
- The connection has been established and can be used.
-
-
-
-
-
- Failed
-
-
- The connection failed and will not retry (usually because authentication failed).
-
-
-
-
-
- Closed
-
-
- The connection has been closed and will soon be deleted.
-
-
-
-
-
- Passive
-
-
- If a cluster is federated to another cluster, only one of the nodes has an actual connection to remote node. Other nodes in the cluster have a passive connection.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Broker options affecting federation
-
- The following broker options affect federation:
-
- Broker Options for Federation
-
-
-
-
-
-
- Options for Federation
-
-
-
-
-
-
- federation-tag NAME
-
-
- A unique name to identify this broker in federation network.
- If not specified, the broker will generate a unique identifier.
-
-
-
-
- link-maintenance-interval SECONDS
-
-
-
-
- Interval to check if links need to be re-connected. Default 2
- seconds. Can be a sub-second interval for faster failover,
- e.g. 0.1 seconds.
-
-
-
-
-
- link-heartbeat-interval SECONDS
-
-
-
-
- Heart-beat interval for federation links. If no heart-beat is
- received for twice the interval the link is considered dead.
- Default 120 seconds.
-
-
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/cpp-broker/Using-message-groups.xml b/qpid/doc/book/src/cpp-broker/Using-message-groups.xml
deleted file mode 100644
index 9b904d9f18..0000000000
--- a/qpid/doc/book/src/cpp-broker/Using-message-groups.xml
+++ /dev/null
@@ -1,295 +0,0 @@
-
-
-
-
-
- Using Message Groups
-
-
-
-
- Overview
-
-
- The broker allows messaging applications to classify a set of related messages as
- belonging to a group. This allows a message producer to indicate to the consumer
- that a group of messages should be considered a single logical operation with
- respect to the application.
-
-
- The broker can use this group identification to enforce policies controlling how
- messages from a given group can be distributed to consumers. For instance, the
- broker can be configured to guarantee all the messages from a particular group are
- processed in order across multiple consumers.
-
-
- For example, assume we have a shopping application that manages items in a virtual
- shopping cart. A user may add an item to their shopping cart, then change their
- mind and remove it. If the application sends an add message to the broker,
- immediately followed by a remove message, they will be queued in the proper
- order - add, followed by remove.
-
-
- However, if there are multiple consumers, it is possible that once a consumer
- acquires the add message, a different consumer may acquire the
- remove message. This allows both messages to be processed in parallel,
- which could result in a "race" where the remove operation is incorrectly
- performed before the add operation.
-
-
-
-
-
- Grouping Messages
-
-
- In order to group messages, the application would designate a particular
- message header as containing a message's group identifier. The group
- identifier stored in that header field would be a string value set by the message
- producer. Messages from the same group would have the same group identifier
- value. The key that identifies the header must also be known to the message
- consumers. This allows the consumers to determine a message's assigned group.
-
-
- The header that is used to hold the group identifier, as well as the values used
- as group identifiers, are totally under control of the application.
-
-
-
-
- The Role of the Broker
-
-
- The broker will apply the following processing on each grouped message:
-
- Enqueue a received message on the destination queue.
- Determine the message's group by examining the message's group identifier header.
- Enforce consumption ordering among messages belonging to the same group.
-
- Consumption ordering means that the broker will not allow outstanding
- unacknowledged messages to more than one consumer for a given group.
-
-
- This means that only one consumer can be processing messages from a particular
- group at a given time. When the consumer acknowledges all of its acquired
- messages, then the broker may pass the next pending message
- from that group to a different consumer.
-
-
- Specifically, for any given group the broker allows only the first N messages in
- the group to be delivered to a consumer. The value of N would be determined by
- the selected consumer's configured prefetch capacity. The broker blocks access by
- any other consumer to any remaining undelivered messages in that group. Once the
- receiving consumer has:
-
- acknowledged,
- released, or
- rejected
-
- all the delivered messages, the broker allows the next messages in the group to be
- delivered. The next messages may be delivered to a different
- consumer.
-
-
- Note well that distinct message groups would not block each other from delivery.
- For example, assume a queue contains messages from two different message groups -
- say group "A" and group "B" - and they are enqueued such that "A"'s messages are
- in front of "B". If the first message of group "A" is in the process of being
- consumed by a client, then the remaining "A" messages are blocked, but the
- messages of the "B" group are available for consumption by other consumers - even
- though it is "behind" group "A" in the queue.
-
-
-
-
- Well Behaved Consumers
-
-
- The broker can only enforce policy when delivering messages. To guarantee that
- strict message ordering is preserved, the consuming application must adhere to the
- following rules:
-
- completely process the data in a received message before accepting
- that message
- acknowledge (or reject) messages in the same order as they are
- received
- avoid releasing messages (see below)
-
- The term processed means that the consumer has finished
- updating all application state affected by the message that has been received.
- See section 2.6.2. Transfer of Responsibility, of the AMQP-0.10 specification for
- more detail.
-
-
- Be Advised
-
- If a consumer does not adhere to the above rules, it may affect the ordering of
- grouped messages even when the broker is enforcing consumption order. This can
- be done by selectively acknowledging and releasing messages from the same group.
-
-
- Assume a consumer has received two messages from group "A", "A-1" and "A-2", in
- that order. If the consumer releases "A-1" then acknowledges "A-2", "A-1" will
- be put back onto the queue and "A-2" will be removed from the queue. This
- allows another consumer to acquire and process "A-1" after
- "A-2" has been processed.
-
-
- Under some application-defined circumstances, this may be acceptable behavior.
- However, if order must be preserved, the client should either release
- all currently held messages, or discard the target message
- using reject.
-
-
-
-
-
-
- Broker Configuration
-
-
- In order for the broker to determine a message's group, the key for the header
- that contains the group identifier must be provided to the broker via
- configuration. This is done on a per-queue basis, when the queue is first
- configured.
-
-
- This means that message group classification is determined by the message's destination
- queue.
-
-
- Specifically, the queue "holds" the header key that is used to find the message's
- group identifier. All messages arriving at the queue are expected to use the same
- header key for holding the identifer. Once the message is enqueued, the broker
- looks up the group identifier in the message's header, and classifies the message
- by its group.
-
-
- Message group support can be enabled on a queue using the
- qpid-config command line tool. The following options should be
- provided when adding a new queue:
-
- qpid-config options for creating message group queues
-
-
-
-
-
- OptionDescription
-
-
-
-
- --group-header=header-name
- Enable message group support for this queue. Specify name of application header that holds the group identifier.
-
-
- --shared-groups
- Enforce ordered message group consumption across multiple consumers.
-
-
-
-
-
-
- Message group support may also be specified in the
- queue.declare method via the arguments
- parameter map, or using the messaging address syntax. The following keys must be
- provided in the arguments map to enable message group support on a queue:
-
-
- Queue Declare/Address Syntax Message Group Configuration Arguments
-
-
-
- Key
- Value
-
-
-
-
- qpid.group_header_key
- string - key for message header that holds the group identifier value
-
-
- qpid.shared_msg_group
- 1 - enforce ordering across multiple consumers
-
-
-
-
-
- It is important to note that there is no need to provide the actual group
- identifer values that will be used. The broker learns this values as messages are
- recieved. Also, there is no practical limit - aside from resource limitations -
- to the number of different groups that the broker can track at run time.
-
-
- Restrictions
-
- Message grouping is not supported on LVQ or Priority queues.
-
-
-
- Creating a message group queue via qpid-config
-
- This example uses the qpid-config tool to create a message group queue called
- "MyMsgQueue". The message header that contains the group identifier will use
- the key "GROUP_KEY".
-
-
-qpid-config add queue MyMsgQueue --group-header="GROUP_KEY" --shared-groups
-
-
-
- Creating a message group queue using address syntax (C++)
-
- This example uses the messaging address syntax to create a message group queue
- with the same configuration as the previous example.
-
-
-sender = session.createSender("MyMsgQueue;"
- " {create:always, delete:receiver,"
- " node: {x-declare: {arguments:"
- " {'qpid.group_header_key':'GROUP_KEY',"
- " 'qpid.shared_msg_group':1}}}}")
-
-
-
-
- Default Group
-
-
- Should a message without a group identifier arrive at a queue configured for message grouping, the broker assigns the message to the default group. Therefore, all such "unidentified" messages are considered by the broker as part of the same group. The name of the default group is "qpid.no-group". This default can be overridden by suppling a different value to the broker configuration item "default-message-group":
-
- Overriding the default message group identifier for the broker
-
-qpidd --default-msg-group "EMPTY-GROUP"
-
-
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/cpp-broker/producer-flow-control.xml b/qpid/doc/book/src/cpp-broker/producer-flow-control.xml
deleted file mode 100644
index fd44f51e81..0000000000
--- a/qpid/doc/book/src/cpp-broker/producer-flow-control.xml
+++ /dev/null
@@ -1,351 +0,0 @@
-
-
-
-
-
- Producer Flow Control
-
-
-
-
- Overview
-
-
- As of release 0.10, the C++ broker supports the use of flow control to
- throttle back message producers that are at risk of overflowing a
- destination queue.
-
-
-
- Each queue in the C++ broker has two threshold values associated with it:
-
-
-
- Flow Stop Threshold: this is the level of queue resource
- utilization above which flow control will be enabled. Once this
- threshold is crossed, the queue is considered in danger of overflow.
-
-
-
- Flow Resume Threshold - this is the level of queue resource utilization
- below which flow control will be disabled. Once this threshold is
- crossed, the queue is no longer considered in danger of overflow.
-
-
-
- In the above description, queue resource utilization may be
- defined as the total count of messages currently enqueued, or the total
- sum of all message content in bytes.
-
-
-
- The value for a queue's Flow Stop Threshold must be greater than or
- equal to the value of the queue's Flow Resume Threshold.
-
-
-
-
- Example
-
-
-
- Let's consider a queue with a maximum limit set on the total number of
- messages that may be enqueued to that queue. Assume this maximum
- message limit is 1000 messages. Assume also that the user configures a
- Flow Stop Threshold of 900 messages, and a Flow Resume Threshold of 500
- messages. Then the following holds:
-
-
-
- The queue's initial flow control state is "OFF".
-
-
-
- While the total number of enqueued messages is less than or equal to
- 900, the queue's flow control state remains "OFF".
-
-
-
- When the total number of enqueued messages is greater than 900, the
- queue's flow control state transitions to "ON".
-
-
-
- When the queue's flow control state is "ON", it remains "ON" until the
- total number of enqueued messages is less than 500. At that point, the queue's
- flow control state transitions to "OFF".
-
-
-
- A similar example using total enqueued content bytes as the threshold
- units are permitted.
-
-
-
-
- Thresholds may be set using both total message counts and total byte
- counts. In this case, the following rules apply:
-
-
-
- 1) Flow control is "ON" when either stop threshold value is crossed.
-
-
- 2) Flow control remains "ON" until both resume thresholds are satisfied.
-
-
-
-
- Example
-
-
-
- Let's consider a queue with a maximum size limit of 10K bytes, and 5000
- messages. A user may assign a Flow Stop Threshold based on a total
- message count of 4000 messages. They may also assigne a Flow Stop
- Threshold of 8K bytes. The queue's flow control state transitions to
- "ON" if either threshold is crossed: (total-msgs greater-than 4000 OR total-bytes
- greater-than 8K).
-
-
-
- Assume the user has assigned Flow Resume threshold's of 3000 messages and
- 6K bytes. Then the queue's flow control will remain active until both
- thresholds are satified: (total-msg less-than 3000 AND total-bytes less-than 6K).
-
-
-
-
- The Broker enforces flow control by delaying the completion of the
- Message.Transfer command that causes a message to be delivered to a queue
- with active flow control. The completion of the Message.Transfer command
- is held off until flow control state transitions to "OFF" for all queues
- that are a destination for that command.
-
-
-
- A message producing client is permitted to have a finite number of
- commands pending completion. When the total number of these outstanding
- commands reaches the limit, the client must not issue further commands
- until one or more of the outstanding commands have completed. This
- window of outstanding commands is considered the sender's "capacity".
- This allows any given producer to have a "capacity's" worth of messages
- blocked due to flow control before the sender must stop sending further
- messages.
-
-
-
- This capacity window must be considered when determining a suitable
- flow stop threshold for a given queue, as a producer may send its
- capacity worth of messages _after_ a queue has reached the flow stop
- threshold. Therefore, a flow stop threshould should be set such that
- the queue can accomodate more messages without overflowing.
-
-
-
- For example, assume two clients, C1 and C2, are producing messages to
- one particular destination queue. Assume client C1 has a configured
- capacity of 50 messages, and client C2's capacity is 15 messages. In
- this example, assume C1 and C2 are the only clients queuing messages to
- a given queue. If this queue has a Flow Stop Threshold of 100
- messages, then, worst-case, the queue may receive up to 165 messages
- before clients C1 and C2 are blocked from sending further messages.
- This is due to the fact that the queue will enable flow control on
- receipt of its 101'st message - preventing the completion of the
- Message.Transfer command that carried the 101'st message. However, C1
- and C2 are allowed to have a total of 65 (50 for C1 and 15 for C2)
- messages pending completion of Message.Transfer before they will stop
- producing messages. Thus, up to 65 messages may be enqueued beyond the
- flow stop threshold before the producers will be blocked.
-
-
-
-
-
- User Interface
-
-
-
- By default, the C++ broker assigns a queue's flow stop and flow resume
- thresholds when the queue is created. The C++ broker also allows the
- user to manually specify the flow control thresholds on a per queue
- basis.
-
-
-
- However, queues that have been configured with a Limit Policy of type
- RING or RING-STRICT do NOT have queue flow thresholds enabled by
- default. The nature of a RING queue defines its behavior when its
- capacity is reach: replace the oldest message.
-
-
-
- The flow control state of a queue can be determined by the "flowState"
- boolean in the queue's QMF management object. The queue's management
- object also contains a counter that increments each time flow control
- becomes active for the queue.
-
-
-
- The broker applies a threshold ratio to compute a queue's default flow
- control configuration. These thresholds are expressed as a percentage
- of a queue's maximum capacity. There is one value for determining the
- stop threshold, and another for determining the resume threshold. The
- user may configure these percentages using the following broker
- configuration options:
-
-
-
- --default-flow-stop-threshold ("Queue capacity level at which flow control is activated.")
- --default-flow-resume-threshold ("Queue capacity level at which flow control is de-activated.")
-
-
-
- For example:
-
-
-
- qpidd --default-flow-stop-threshold=90 --default-flow-resume-threshold=75
-
-
-
- Sets the default flow stop threshold to 90% of a queue's maximum
- capacity and the flow resume threshold to 75% of the maximum capacity.
- If a queue is created with a default-queue-limit of 10000 bytes, then
- the default flow stop threshold would be 90% of 10000 = 9000 bytes and
- the flow resume threshold would be 75% of 10000 = 7500. The same
- computation is performed should a queue be created with a maximum size
- expressed as a message count instead of a byte count.
-
-
-
- If not overridden by the user, the value of the
- default-flow-stop-threshold is 80% and the value of the
- default-flow-resume-threshold is 70%.
-
-
-
- The user may disable default queue flow control broker-wide by
- specifying the value 0 for both of these configuration options. Note
- that flow control may still be applied manually on a per-queue basis in
- this case.
-
-
-
- The user may manually set the flow thresholds when creating a queue.
- The following options may be provided when adding a queue using the
- qpid-config command line tool:
-
-
-
- --flow-stop-size=N Sets the queue's flow stop threshold to N total bytes.
- --flow-resume-size=N Sets the queue's flow resume threshold to N total bytes.
- --flow-stop-count=N Sets the queue's flow stop threshold to N total messages.
- --flow-resume-count=N Sets the queue's flow resume threshold to N total messages.
-
-
-
- Flow thresholds may also be specified in the
- queue.declare method, via the
- arguments parameter map. The following keys can be
- provided in the arguments map for setting flow thresholds:
-
-
-
- Queue Declare Method Flow Control Arguments
-
-
-
- Key
- Value
-
-
-
-
- qpid.flow_stop_size
- integer - queue's flow stop threshold value in bytes
-
-
- qpid.flow_resume_size
- integer - queue's flow resume threshold value in bytes
-
-
- qpid.flow_stop_count
- integer - queue's flow stop threshold value as a message count
-
-
- qpid.flow_resume_count
- integer - queue's flow resume threshold value as a message count
-
-
-
-
-
-
- The user may disable flow control on a per queue basis by setting
- the flow-stop-size and flow-stop-count to zero for the queue.
-
-
-
- The current state of flow control for a given queue can be
- determined by the "flowStopped" statistic. This statistic is
- available in the queue's QMF management object. The value of
- flowStopped is True when the queue's capacity has exceeded the
- flow stop threshold. The value of flowStopped is False when the
- queue is no longer blocking due to flow control.
-
-
-
- A queue will also track the number of times flow control has been
- activated. The "flowStoppedCount" statistic is incremented each time
- the queue's capacity exceeds a flow stop threshold. This statistic can
- be used to monitor the activity of flow control for any given queue
- over time.
-
-
-
- Flow Control Statistics available in Queue's QMF Class
-
-
-
- Statistic Name
- Type
- Description
-
-
-
-
- flowStopped
- Boolean
- If true, producers are blocked by flow control.
-
-
- flowStoppedCount
- count32
- Number of times flow control was activated for this queue
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/cpp-broker/queue-state-replication.xml b/qpid/doc/book/src/cpp-broker/queue-state-replication.xml
deleted file mode 100644
index 3ffac805eb..0000000000
--- a/qpid/doc/book/src/cpp-broker/queue-state-replication.xml
+++ /dev/null
@@ -1,333 +0,0 @@
-
-
-
-
-
- Queue State Replication
-
-
-
-
- Asynchronous
- Replication of Queue State
-
-
-
-
- Overview
-
-
- There is support in qpidd for selective asynchronous replication
- of queue state. This is achieved by:
-
-
- (a) enabling event generation for the queues in question
-
-
- (b) loading a plugin on the 'source' broker to encode those
- events as messages on a replication queue (this plugin is
- called
- replicating_listener.so)
-
-
- (c) loading a custom exchange plugin on the 'backup' broker (this
- plugin is called replication_exchange.so)
-
-
- (d) creating an instance of the replication exchange type on the
- backup broker
-
-
- (e) establishing a federation bridge between the replication
- queue on the source broker and the replication exchange on the
- backup broker
-
-
- The bridge established between the source and backup brokers for
- replication (step (e) above) should have acknowledgements turned
- on (this may be done through the --ack N option to qpid-route).
- This ensures that replication events are not lost if the bridge
- fails.
-
-
- The replication protocol will also eliminate duplicates to ensure
- reliably replicated state. Note though that only one bridge per
- replication exchange is supported. If clients try to publish to
- the replication exchange or if more than a the single required
- bridge from the replication queue on the source broker is
- created, replication will be corrupted. (Access control may be
- used to restrict access and help prevent this).
-
-
- The replicating event listener plugin (step (b) above) has the
- following options:
-
-
-Queue Replication Options:
- --replication-queue QUEUE Queue on which events for
- other queues are recorded
- --replication-listener-name NAME (replicator) name by which to register the
- replicating event listener
- --create-replication-queue if set, the replication will
- be created if it does not
- exist
-
-
- The name of the queue is required. It can either point to a
- durable queue whose definition has been previously recorded, or
- the --create-replication-queue option can be specified in which
- case the queue will be created a simple non-durable queue if it
- does not already exist.
-
-
-
-
-
-
- Use with
- Clustering
-
-
- The source and/or backup brokers may also be clustered brokers.
- In this case the federated bridge will be re-established between
- replicas should either of the originally connected nodes fail.
- There are however the following limitations at present:
-
-
-
- The backup site does not process membership updates after it
- establishes the first connection. In order for newly added
- members on a source cluster to be eligible as failover targets,
- the bridge must be recreated after those members have been added
- to the source cluster.
-
-
-
-
-
- New members added to a backup cluster will not receive
- information about currently established bridges. Therefore in
- order to allow the bridge to be re-established from these members
- in the event of failure of older nodes, the bridge must be
- recreated after the new members have joined.
-
-
-
-
-
- Only a single URL can be passed to create the initial link
- from backup site to the primary site. this means that at the time
- of creating the initial connection the initial node in the
- primary site to which the connection is made needs to be running.
- Once connected the backup site will receive a membership update
- of all the nodes in the primary site, and if the initial
- connection node in the primary fails, the link will be
- re-established on the next node that was started (time) on the
- primary site.
-
-
-
-
- Due to the acknowledged transfer of events over the bridge (see
- note above) manual recreation of the bridge and automatic
- re-establishment of te bridge after connection failure (including
- failover where either or both ends are clustered brokers) will
- not result in event loss.
-
-
-
-
-
-
- Operations
- on Backup Queues
-
-
- When replicating the state of a queue to a backup broker it is
- important to recognise that any other operations performed
- directly on the backup queue may break the replication.
-
-
- If the backup queue is to be an active (i.e. accessed by clients
- while replication is on) only enqueues should be selected
- for
- replication. In this mode, any message enqueued on the source
- brokers copy of the queue will also be enqueued on the backup
- brokers copy. However not attempt will be made to remove messages
- from the backup queue in response to removal of messages from the
- source queue.
-
-
-
-
-
-
- Selecting
- Queues for Replication
-
-
- Queues are selected for replication by specifying the types of
- events they should generate (it is from these events that the
- replicating plugin constructs messages which are then pulled and
- processed by the backup site). This is done through options
- passed to the initial queue-declare command that creates the
- queue and may be done either through qpid-config or similar
- tools, or by the application.
-
-
- With qpid-config, the --generate-queue-events options is used:
-
-
- --generate-queue-events N
- If set to 1, every enqueue will generate an event that can be processed by
- registered listeners (e.g. for replication). If set to 2, events will be
- generated for enqueues and dequeues
-
-
- From an application, the arguments field of the queue-declare
- AMQP command is used to convey this information. An entry should
- be added to the map with key 'qpid.queue_event_generation' and an
- integer value of 1 (to replicate only enqueue events) or 2 (to
- replicate both enqueue and dequeue events).
-
-
- Applications written using the c++ client API may fine the
- qpid::client::QueueOptions class convenient. This has a
- enableQueueEvents() method on it that can be used to set the
- option (the instance of QueueOptions is then passed as the value
- of the arguments field in the queue-declare command. The boolean
- option to that method should be set to true if only enequeue
- events should be replicated; by default it is false meaning that
- both enqueues and dequeues will be replicated. E.g.
-
-
- QueueOptions options;
- options.enableQueueEvents(false);
- session.queueDeclare(arg::queue="my-queue", arg::arguments=options);
-
-
-
-
-
-
- Example
-
-
- Lets assume we will run the primary broker on host1 and the
- backup on host2, have installed qpidd on both and have the
- replicating_listener and replication_exchange plugins in qpidd's
- module directory(*1).
-
-
- On host1 we start the source broker and specifcy that a queue
- called 'replication' should be used for storing the events until
- consumed by the backup. We also request that this queue be
- created (as transient) if not already specified:
-
-
- qpidd --replication-queue replication-queue --create-replication-queue true --log-enable info+
-
-
- On host2 we start up the backup broker ensuring that the
- replication exchange module is loaded:
-
-
- qpidd
-
-
- We can then create the instance of that replication exchange that
- we will use to process the events:
-
-
- qpid-config -a host2 add exchange replication replication-exchange
-
-
- If this fails with the message "Exchange type not implemented:
- replication", it means the replication exchange module was
- not
- loaded. Check that the module is installed on your system and if
- necessary provide the full path to the library.
-
-
- We then connect the replication queue on the source broker with
- the replication exchange on the backup broker using the
- qpid-route command:
-
-
- qpid-route --ack 50 queue add host2 host1 replication-exchange replication-queue
-
-
- The example above configures the bridge to acknowledge messages
- in batches of 50.
-
-
- Now create two queues (on both source and backup brokers), one
- replicating both enqueues and dequeues (queue-a) and the
- other
- replicating only dequeues (queue-b):
-
-
- qpid-config -a host1 add queue queue-a --generate-queue-events 2
- qpid-config -a host1 add queue queue-b --generate-queue-events 1
-
- qpid-config -a host2 add queue queue-a
- qpid-config -a host2 add queue queue-b
-
-
- We are now ready to use the queues and see the replication.
-
-
- Any message enqueued on queue-a will be replicated to the backup
- broker. When the message is acknowledged by a client connected to
- host1 (and thus dequeued), that message will be removed from the
- copy of the queue on host2. The state of queue-a on host2 will
- thus mirror that of the equivalent queue on host1, albeit with a
- small lag. (Note
- however that we must not have clients connected to host2 publish
- to-or consume from- queue-a or the state will fail to replicate
- correctly due to conflicts).
-
-
- Any message enqueued on queue-b on host1 will also be enqueued on
- the equivalent queue on host2. However the acknowledgement and
- consequent dequeuing of messages from queue-b on host1 will have
- no effect on the state of queue-b on host2.
-
-
- (*1) If not the paths in the above may need to be modified. E.g.
- if using modules built from a qpid svn checkout, the following
- would be added to the command line used to start qpidd on host1:
-
-
- --load-module <path-to-qpid-dir>/src/.libs/replicating_listener.so
-
-
- and the following for the equivalent command line on host2:
-
-
- --load-module <path-to-qpid-dir>/src/.libs/replication_exchange.so
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/images/qpid-logo.png b/qpid/doc/book/src/images/qpid-logo.png
deleted file mode 100644
index 5f4ccc3081..0000000000
Binary files a/qpid/doc/book/src/images/qpid-logo.png and /dev/null differ
diff --git a/qpid/doc/book/src/old/ACL.xml b/qpid/doc/book/src/old/ACL.xml
deleted file mode 100644
index ceb7cecb23..0000000000
--- a/qpid/doc/book/src/old/ACL.xml
+++ /dev/null
@@ -1,800 +0,0 @@
-
-
-
-
-
- ACL
-
-
-
-
- v2 ACL file format for brokers
-
-
- This new ACL implementation has been designed for implementation
- and interoperability on all Qpid brokers. It is currently
- supported in the following brokers:
-
-
-
-
-
- Contents
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Specification
-
-
- Notes on file formats
-
- A line starting with the character '#' will be considered a
- comment, and are ignored.
-
- Since the '#' char (and others that are commonly used for
- comments) are commonly found in routing keys and other AMQP
- literals, it is simpler (for now) to hold off on allowing
- trailing comments (ie comments in which everything following a
- '#' is considered a comment). This could be reviewed later once
- the rest of the format is finalized.
-
- Empty lines ("") and lines that contain only whitespace (any
- combination of ' ', '\f', '\n', '\r', '\t', '\v') are ignored.
-
- All tokens are case sensitive. "name1" != "Name1" and
- "create" != "CREATE".
-
- Group lists may be extended to the following line by
- terminating the line with the '\' character. However, this may
- only occur after the group name or any of the names following the
- group name. Empty extension lines (ie just a '\' character) are
- not permitted.
-
-
-# Examples of extending group lists using a trailing '\' character
-
-group group1 name1 name2 \
- name3 name4 \
- name5
-
-group group2 \
- group1 \
- name6
-
-# The following are illegal:
-
-# '\' must be after group name
-group \
- group3 name7 name8
-
-# No empty extension lines
-group group4 name9 \
- \
- name10
-
-
-
- Additional whitespace (ie more than one whitespace char)
- between and after tokens is ignored. However group and acl
- definitions must start with "group" or "acl" respectively and
- with no preceding whitespace.
-
- All acl rules are limited to a single line.
-
- Rules are interpreted from the top of the file down until the
- name match is obtained; at which point processing stops.
-
- The keyword "all" is reserved, and matches all individuals,
- groups and actions. It may be used in place of a group or
- individual name and/or an action - eg "acl allow all all", "acl
- deny all all" or "acl deny user1 all".
-
- The last line of the file (whether present or not) will be
- assumed to be "acl deny all all". If present in the file, any
- lines below this one are ignored.
-
- Names and group names may contain only a-z, A-Z, 0-9,
- '-','_'.
-
- Rules must be preceded by any group definitions they may use;
- any name not previously defined as a group will be assumed to be
- that of an individual.
-
- ACL rules must have the following tokens in order on a single
- line:
-
- The string literal "acl";
-
- The permission;
-
- The name of a single group or individual or the keyword
- "all";
-
- The name of an action or the keyword "all";
-
- Optionally, a single object name or the keyword "all";
-
- If the object is present, then optionally one or more
- property name-value pair(s) (in the form property=value).
-
-
-
-
-
-user = username[@domain[/realm]]
-user-list = user1 user2 user3 ...
-group-name-list = group1 group2 group3 ...
-
-group <group-name> = [user-list] [group-name-list]
-
-
-permission = [allow|allow-log|deny|deny-log]
-action = [consume|publish|create|access|bind|unbind|delete|purge|update]
-object = [virtualhost|queue|exchange|broker|link|route|method]
-property = [name|durable|owner|routingkey|passive|autodelete|exclusive|type|alternate|queuename|schemapackage|schemaclass]
-
-acl permission {<group-name>|<user-name>|"all"} {action|"all"} [object|"all"] [property=<property-value>]
-
-
-
- Validation
-
-
- The new ACL file format needs to perform validation on the acl
- rules. The validation should be performed depending on the set
- value:
-
- strict-acl-validation=none
- The default setting should be 'warn'
-
- On validation of this acl the following checks would be expected:
-
-
-acl allow client publish routingkey=exampleQueue exchange=amq.direct
-
-
- The If the user 'client' cannot be found, if the
- authentication mechanism cannot be queried then a 'user' value
- should be added to the file.
-
- There is an exchange called 'amq.direct'
-
- There is a queue bound to 'exampleQueue' on 'amq.direct'
-
-
- Each of these checks that fail will result in a log statement
- being generated.
-
- In the case of a fatal logging the full file will be validated
- before the broker shuts down.
-
-
-
-
-
- Example file:
-
-
-
-
-# Some groups
-group admin ted@QPID martin@QPID
-group user-consume martin@QPID ted@QPID
-group group2 kim@QPID user-consume rob@QPID
-group publisher group2 \
- tom@QPID andrew@QPID debbie@QPID
-
-# Some rules
-acl allow carlt@QPID create exchange name=carl.*
-acl deny rob@QPID create queue
-acl allow guest@QPID bind exchange name=amq.topic routingkey=stocks.ibm.# owner=self
-acl allow user-consume create queue name=tmp.*
-
-acl allow publisher publish all durable=false
-acl allow publisher create queue name=RequestQueue
-acl allow consumer consume queue durable=true
-acl allow fred@QPID create all
-acl allow bob@QPID all queue
-acl allow admin all
-acl deny kim@QPID all
-acl allow all consume queue owner=self
-acl allow all bind exchange owner=self
-
-# Last (default) rule
-acl deny all all
-
-
-
-
-
-
-
- Design Documentation
-
-
- Mapping of ACL
- traps to action and type
-
-
- The C++ broker maps the ACL traps in the follow way for AMQP
- 0-10:
- The Java broker currently only performs ACLs on the AMQP
- connection not on management functions:
-
-
-
- Management actions that are not explicitly given a name property
- it will default the name property to management method name, if
- the action is 'W' Action will be 'Update', if 'R' Action will be
- 'Access'.
-
- for example, if the mgnt method 'joinCluster' was not mapped in
- schema it will be mapped in ACL file as follows
-
-
-
-
-
-
-
-
-
- v2 ACL User Guide
-
-
- Writing Good/Fast ACL
-
-
- The file gets read top down and rule get passed based on the
- first match. In the following example the first rule is a dead
- rule. I.e. the second rule is wider than the first rule. DON'T do
- this, it will force extra analysis, worst case if the parser does
- not kill the dead rule you might get a false deny.
-
-
-allow peter@QPID create queue name=tmp <-- dead rule!!
-allow peter@QPID create queue
-deny all all
-
-
- By default files end with
-
-
-deny all all
-
-
- the mode of the ACL engine can be swapped to be allow based by
- putting the following at the end of the file
-
-
-allow all all
-
-
- Note that 'allow' based file will be a LOT faster for message
- transfer. This is because the AMQP specification does not allow
- for creating subscribes on publish, so the ACL is executed on
- every message transfer. Also, ACL's rules using less properties
- on publish will in general be faster.
-
-
-
-
- Getting ACL to Log
-
-
- In order to get log messages from ACL actions use allow-log and
- deny-log for example
-
-
-allow-log john@QPID all all
-deny-log guest@QPID all all
-
-
-
-
- User Id /
- domains running with C++ broker
-
-
- The user-id used for ACL is taken from the connection user-id.
- Thus in order to use ACL the broker authentication has to be
- setup. i.e. (if --auth no is used in combination with ACL the
- broker will deny everything)
-
- The user id in the ACL file is of the form
- <user-id>@<domain> The Domain is configured via the
- SASL configuration for the broker, and the domain/realm for qpidd
- is set using --realm and default to 'QPID'.
-
- To load the ACL module use, load the acl module cmd line or via
- the config file
-
-
-./src/qpidd --load-module src/.libs/acl.so
-
-
- The ACL plugin provides the following option '--acl-file'. If do
- ACL file is supplied the broker will not enforce ACL. If an ACL
- file name is supplied, and the file does not exist or is invalid
- the broker will not start.
-
-
-ACL Options:
- --acl-file FILE The policy file to load from, loaded from data dir
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/old/AMQP-.NET-Messaging-Client.xml b/qpid/doc/book/src/old/AMQP-.NET-Messaging-Client.xml
deleted file mode 100644
index 1d4001942b..0000000000
--- a/qpid/doc/book/src/old/AMQP-.NET-Messaging-Client.xml
+++ /dev/null
@@ -1,108 +0,0 @@
-
-
-
-
-
- AMQP .NET Messaging Client
-
-
- Currently the .NET code base provides two client libraries that
- are compatible respectively with AMQP 0.8 and 0.10. The 0.8 client
- is located in qpid\dotnet and the 0.10 client
- in: qpid\dotnet\client-010.
-
-
- You will need an AMQP broker to fully use those client libraries.
- Use M4 or later C++ broker for AMQP 0.10 or Java broker for AMQP
- 0.8/0.9.
-
-
-
- User Guides
-
-
-
-
-
-
-
-
-
- Examples
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/old/AMQP-C++-Messaging-Client.xml b/qpid/doc/book/src/old/AMQP-C++-Messaging-Client.xml
deleted file mode 100644
index 73a2cd6c0b..0000000000
--- a/qpid/doc/book/src/old/AMQP-C++-Messaging-Client.xml
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-
-
-
- AMQP C++ Messaging Client
-
-
-
- User Guides
-
-
-
-
- C++ Client API (AMQP 0-10)
-
-
-
-
-
-
-
-
- Examples
-
-
-
-
- AMQP C++ Client Examples
-
-
-
-
- Running the AMQP C++ Client Examples
-
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/old/AMQP-Java-JMS-Messaging-Client.xml b/qpid/doc/book/src/old/AMQP-Java-JMS-Messaging-Client.xml
deleted file mode 100644
index 8c14d67e14..0000000000
--- a/qpid/doc/book/src/old/AMQP-Java-JMS-Messaging-Client.xml
+++ /dev/null
@@ -1,94 +0,0 @@
-
-
-
-
-
-
- AMQP Java JMS Messaging Client
-
-
- The Java Client supported by Qpid implements the Java JMS 1.1
- Specification.
-
-
-
- General User Guides
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- AMQP Java JMS Examples
-
-
-
- Examples Directory
-
-
-
- Script for running examples
-
-
- Direct Example
-
-
- Fanout Example
-
-
- Pub-Sub Example
-
-
- Request/Response Example
-
-
- Transacted Example
-
-
-
-
-
diff --git a/qpid/doc/book/src/old/AMQP-Messaging-Broker-CPP.xml b/qpid/doc/book/src/old/AMQP-Messaging-Broker-CPP.xml
deleted file mode 100644
index b4e0deb13d..0000000000
--- a/qpid/doc/book/src/old/AMQP-Messaging-Broker-CPP.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-
-
-
-
- AMQP Messaging Broker (Implemented in C++)
-
- Qpid provides two AMQP messaging brokers:
-
-
- Implemented in C++ - high performance, low latency, and RDMA support.
- Implemented in Java - Fully JMS compliant, runs on any Java platform.
-
-
- Both AMQP messaging brokers support clients in multiple languages, as long as the messaging client and the messaging broker use the same version of AMQP. See to see which messaging clients work with each broker.
-
- This section contains information specific to the broker that is implemented in C++.
-
-
-
-
- Running the AMQP Messaging Broker
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Managing the AMQP Messaging Broker
-
-
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/old/AMQP-Python-Messaging-Client.xml b/qpid/doc/book/src/old/AMQP-Python-Messaging-Client.xml
deleted file mode 100644
index 15baf214ec..0000000000
--- a/qpid/doc/book/src/old/AMQP-Python-Messaging-Client.xml
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-
-
-
- AMQP Python Messaging Client
-
-
-
- User Guides
-
-
-
-
- Python Client API Guide
-
-
-
-
-
-
-
-
- Examples
-
-
-
-
- AMQP Python Client Examples
-
-
-
-
- Running the AMQP Python Client Examples
-
-
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/old/AMQP-Ruby-Messaging-Client.xml b/qpid/doc/book/src/old/AMQP-Ruby-Messaging-Client.xml
deleted file mode 100644
index 45318c0beb..0000000000
--- a/qpid/doc/book/src/old/AMQP-Ruby-Messaging-Client.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
- AMQP Ruby Messaging Client
-
-
- The Ruby Messaging Client currently has little documentation and
- few examples.
-
-
-
- Examples
-
-
- AMQP Ruby Messaging Client Examples
-
-
-
-
diff --git a/qpid/doc/book/src/old/AMQP.xml b/qpid/doc/book/src/old/AMQP.xml
deleted file mode 100644
index 1a609649bb..0000000000
--- a/qpid/doc/book/src/old/AMQP.xml
+++ /dev/null
@@ -1,98 +0,0 @@
-
-
-
-
-
-AMQP (Advanced Message Queueing Protocol
-
-
-AMQP Advanced
-Message Queuing Protocol is an open standard designed to
-support reliable, high-performance messaging over the Internet.
-AMQP can be used for any distributed or business application, and
-supports common messaging paradigms like point-to-point, fanout,
-publish-subscribe, and request-response.
-Apache Qpid implements AMQP, including transaction management,
-queuing, clustering, federation, security, management and
-multi-platform support.
-Apache Qpid implements the latest AMQP specification, providing
-transaction management, queuing, distribution, security,
-management, clustering, federation and heterogeneous multi-platform
-support and a lot more.
-Apache Qpid is highly optimized, and aims to be 100% AMQP Compliant.
-
-
-Download the AMQP Specifications
-
-
-AMQP version 0-10
-AMQP 0-10 Specification (PDF)
-AMQP 0-10 Protocol Definition XML
-AMQP 0-10 Protocol Definition DTD
-
-
-
-
-AMQP version 0-9-1
-AMQP 0-9-1 Specification (PDF)
-AMQP 0-9-1 Protocol Documentation (PDF)
-AMQP 0-9-1 Protocol Definitions (XML)
-
-
-
-
-AMQP version 0-9
-AMQP 0-9 Specification (PDF)
-AMQP 0-9 Protocol Documentation (PDF)
-AMQP 0-9 Protocol Definitions (XML)
-
-
-
-
-AMQP version 0-8
-AMQP 0-8 Specification (PDF)
-AMQP 0-8 Protocol Documentation (PDF)
-AMQP 0-8 Protocol Definitions (XML)
-
-
-
-
diff --git a/qpid/doc/book/src/old/Binding-URL-Format.xml b/qpid/doc/book/src/old/Binding-URL-Format.xml
deleted file mode 100644
index 3d938b740a..0000000000
--- a/qpid/doc/book/src/old/Binding-URL-Format.xml
+++ /dev/null
@@ -1,174 +0,0 @@
-
-
-
-
-
-
- Binding URL Format
-
-
-<Exchange Class>://<Exchange Name>/[<Destination>]/[<Queue>][?<option>='<value>'[&<option>='<value>']]
-
-
- This URL format is used for two purposes in the code base. The
- broker uses this in the XML configuration file to create and bind
- queues at broker startup. It is also used by the client as a
- destination.
-
- This format was used because it allows an explicit description of
- exchange and queue relationship.
-
- The Exchange Class is not normally required for client connection
- as clients only publish to a named exchange however if exchanges
- are being dynamically instantiated it will be required. The class
- is required for the server to instantiate an exchange.
-
- There are a number of options that are currently defined:
-
Binding URL Options
-
-
-
- Option
-
-
- type
-
-
- Description
-
-
-
-
- exclusive
-
-
- boolean
-
-
- Is this an exclusive connection
-
-
-
-
- autodelete
-
-
- boolean
-
-
- Should this queue be deleted on client disconnection
-
-
-
-
- durable
-
-
- boolean
-
-
- Create a durable queue
-
-
-
-
- clientid
-
-
- string
-
-
- Use the following client id
-
-
-
-
- subscription
-
-
- boolean
-
-
- Create a subscription to this destination
-
-
-
-
- routingkey
-
-
- string
-
-
- Use this value as the routing key
-
-
-
-
- Using these options in conjunction with the Binding URL format
- should allow future expansion as new and custom exchange types
- are created.
-
- The URL format requires that at least one Queue or
- routingkey option be present on the URL.
-
- The routingkey would be used to encode a topic as shown in the
- examples section below.
-
-
-
-
- Examples
-
-
-
- Queues
-
- A queue can be created in QPID using the following URL format.
-
- direct://amq.direct//<Queue Name>
-
- For example: direct://amq.direct//simpleQueue
-
- Queue names may consist of any mixture of digits, letters, and
- underscores.
-
-
-
-Topics
-
- A topic can be created in QPID using the following URL format.
-
- topic://amq.topic/<Topic Subscription>/
-
- The topic subscription may only contain the letters A-Z and a-z
- and digits 0-9.
-
-
-direct://amq.direct/SimpleQueue
-direct://amq.direct/UnusuallyBoundQueue?routingkey='/queue'
-topic://amq.topic?routingkey='stocks.#'
-topic://amq.topic?routingkey='stocks.nyse.ibm'
-
-
-
-
diff --git a/qpid/doc/book/src/old/Book-Info.xml b/qpid/doc/book/src/old/Book-Info.xml
deleted file mode 100644
index 2e02fbe8ea..0000000000
--- a/qpid/doc/book/src/old/Book-Info.xml
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-
-
-
-
-
- Apache Qpid
- Open Source AMQP Messaging
- 1
- 0
- Apache Qpid
- 6
-
-
-
-
-
-
-
-
-
- 2010
- The Apache Software Foundation
-
-
-
- Licensed under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License
- at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in
- writing, software distributed under the License is
- distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
- CONDITIONS OF ANY KIND, either express or implied. See the
- License for the specific language governing permissions and
- limitations under the License.
-
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/old/Book.xml b/qpid/doc/book/src/old/Book.xml
deleted file mode 100644
index ee69532152..0000000000
--- a/qpid/doc/book/src/old/Book.xml
+++ /dev/null
@@ -1,93 +0,0 @@
-
-
-
-
-
-
-
-
-
- Basics
-
-
-
-
-
-
-
-
-
-
-
- AMQP Messaging Clients Clients
-
-
-
-
-
-
-
-
- Appendices
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/old/Broker-CPP.xml b/qpid/doc/book/src/old/Broker-CPP.xml
deleted file mode 100644
index 99584be23d..0000000000
--- a/qpid/doc/book/src/old/Broker-CPP.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-h1. Running the AMQP Messaging Broker
-
-* [Running an AMQP 0-10 C++ broker | RASC]
-* [Configuring Queue Options|Cheat Sheet for configuring Queue Options]
-* [Configuring Exchange Options|Cheat Sheet for configuring Exchange Options]
-* [Using Broker Federation]
-* [How to use SSL | SSL]
-* [Understanding Last Value Queues (LVQ) |LVQ]
-* [Queue State Replication|queue state replication]
-* [Getting Started]
-* [Starting a cluster]
-* [Understanding Access Control Lists|Qpid ACLs]
-
-h2. Management
-
-* [Managing| MgmtC++] the C++ Broker
-* [QMan - Qpid Management bridge]
-* [Qpid Management Framework]
-* [Qpid Management Framework (QMF) Protocol|management design notes]
-* [Manage anything with Qpid - QMF Python Console Tutorial|QMF Python Console Tutorial]
diff --git a/qpid/doc/book/src/old/Broker-Java.xml b/qpid/doc/book/src/old/Broker-Java.xml
deleted file mode 100644
index f8ce89b185..0000000000
--- a/qpid/doc/book/src/old/Broker-Java.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-
-h3. General User Guides
-
-* [Feature Guide| Java Broker Feature Guide]
-* [FAQ|Qpid Java FAQ]
-* [Getting Started Guide]
-* [Broker Environment Variables|Java Environment Variables]
-* [Troubleshooting Guide|Qpid Troubleshooting Guide]
-
-h3. How Tos
-* [Add New Users]
-* [Configure ACLs]
-* [Configure Java Qpid to use a SSL connection.]
-* [Configure Log4j CompositeRolling Appender]
-* [Configure the Broker via config.xml]
-* [Configure the Virtual Hosts via virtualhosts.xml]
-* [Debug using log4j]
-* [How to Tune M3 Java Broker Performance]
-* [Qpid Java Build How To]
-* [Use Priority Queues]
-
-h3. Management Tools
-* [Qpid JMX Management Console]
-* [MessageStore Tool]
-* [Qpid Java Broker Management CLI]
-* [Management Design notes]
diff --git a/qpid/doc/book/src/old/Clients.xml b/qpid/doc/book/src/old/Clients.xml
deleted file mode 100644
index 3dc2d38e86..0000000000
--- a/qpid/doc/book/src/old/Clients.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-[AMQP Java JMS Messaging Client]
-[AMQP C++ Messaging Client]
-[AMQP .NET Messaging Client]
-[AMQP Python Messaging Client]
-[AMQP Ruby Messaging Client]
diff --git a/qpid/doc/book/src/old/Connection-URL-Format.xml b/qpid/doc/book/src/old/Connection-URL-Format.xml
deleted file mode 100644
index cb772487cd..0000000000
--- a/qpid/doc/book/src/old/Connection-URL-Format.xml
+++ /dev/null
@@ -1,387 +0,0 @@
-
-
-
-
-
-
- Connection URL Format
-
-
-
-
- Format
-
-
-amqp://[<user>:<pass>@][<clientid>]<virtualhost>[?<option>='<value>'[&<option>='<value>']]
-
-
- The connection url defines the values that are common across
- the cluster of brokers. The virtual host is second in the list
- as the AMQP specification demands that it start with a '/'
- otherwise it be more readable to be swapped with
- clientid. There is currently only one required option and that
- is the brokerlist option. In addition the
- following options are recognised.
-
-
-
-
-
- Worked Example
-
-
-
- You could use a URL which looks something like this:
-
-
-
-amqp://guest:guest@client1/development?brokerlist='tcp://localhost:5672'
-
-
- Breaking this example down, here's what it all
- means:
-
-
- amqp = the protocol we're using
-
-
- guest:guest@localhost = username:password@clientid
- where the clientid is the name of your server (used under
- the covers but don't worry about this for now). Always use
- the guest:guest combination at the moment.
-
- development = the name of the virtualhost, where the
- virtualhost is a path which acts as a namespace. You can
- effectively use any value here so long as you're consistent
- throughout. The virtualhost must start with a slash "/" and
- continue with names separated by slashes. A name consists of
- any combination of at least one of [A-Za-z0-9] plus zero or
- more of [.-_+!=:].
-
- brokerlist = this is the host address and port for
- the broker you want to connect to. The connection factory
- will assume tcp if you don't specify a transport
- protocol. The port also defaults to 5672. Naturally you have
- to put at least one broker in this list.
-
-
-
- This example is not using failover so only provides
- one host for the broker. If you do wish to connect using
- failover you can provide two (or more) brokers in the
- format:
-
-
- brokerlist='tcp://host1&tcp://host2:5673'
-
- The default failover setup will automatically retry
- each broker once after a failed connection. If the
- brokerlist contains more than one server then these servers
- are tried in a round robin. Details on how to modifiy this
- behaviour will follow soon !
-
-
-
-
-
-
- Options
-
-
- Connection URL Options
-
-
-
-
- Option
-
-
- Default
-
-
- Description
-
-
-
-
- brokerlist
-
-
- see below
-
-
- The list of brokers to use for this connection
-
-
-
-
- failover
-
-
- see below
-
-
- The type of failover method to use with the broker list.
-
-
-
-
- maxprefetch
-
-
- 5000
-
-
- The maximum number of messages to prefetch from the broker.
-
-
-
-
-
-
-
- Brokerlist option
-
-brokerlist='<broker url>[;<broker url>]'
-
-
- The broker list defines the various brokers that can be used for
- this connection. A minimum of one broker url is required
- additional URLs are semi-colon(';') delimited.
-
-
-
-
-
- Broker URL format
-
-
-<transport>://<host>[:<port>][?<option>='<value>'[&<option>='<value>']]
-
-
- There are currently quite a few default values that can be
- assumed. This was done so that the current client examples would
- not have to be re-written. The result is if there is no
- transport, 'tcp' is assumed and the default AMQP port of 5672 is
- used if no port is specified.
-
Broker URL- Transport
-
-
-
-
- Transport
-
-
-
-
- tcp
-
-
-
-
- vm
-
-
-
-
- Currently only 'tcp' and 'vm' transports are supported. Each
- broker can take have additional options that are specific to that
- broker. The following are currently implemented options. To add
- support for further transports the
- ''client.transportTransportConnection'' class needs updating
- along with the parsing to handle the transport.
-
-
Broker URL - Connection Options
-
-
-
-
- Option
-
-
- Default
-
-
- Description
-
-
-
-
- retries
-
-
- 1
-
-
- The number of times to retry connection to this Broker
-
-
-
-
- ssl
-
-
- false
-
-
- Use ssl on the connection
-
-
-
-
- connecttimeout
-
-
- 30000
-
-
- How long in (milliseconds) to wait for the connection to
- succeed
-
-
-
-
- connectdelay
-
-
- none
-
-
- How long in (milliseconds) to wait before attempting to
- reconnect
-
-
-
-
-
-
-
-
- Brokerlist failover option
-
-failover='<method>[?<options>]'
-
-
- This option controls how failover occurs when presented with a
- list of brokers. There are only two methods currently implemented
- but interface qpid.jms.failover.FailoverMethod can be
- used for defining further methods.
-
- Currently implemented failover methods.
-
Broker List - Failover Options
-
-
-
- Method
-
-
- Description
-
-
-
-
- singlebroker
-
-
- This will only use the first broker in the list.
-
-
-
-
- roundrobin
-
-
- This method tries each broker in turn.
-
-
-
-
- nofailover
-
-
- [New in 0.5] This method disables all retry and failover
- logic.
-
-
-
-
- The current defaults are naturally to use the 'singlebroker' when
- only one broker is present and the 'roundrobin' method with
- multiple brokers. The '''method''' value in the URL may also be
- any valid class on the classpath that implements the
- FailoverMethod interface.
-
- The 'nofailover' method is useful if you are using a 3rd party
- tool such as Mule that has its own reconnection strategy that you
- wish to use.
-
-
-
- Broker List - Failover Options
-
-
-
-
- Option
-
-
- Default
-
-
- Description
-
-
-
-
- cyclecount
-
-
- 1
-
-
- The number of times to loop through the list of available
- brokers before failure.
-
-
-
-
- Note: Default was changed from 0 to 1 in Release 0.5
-
-
-
-
-
-
- Sample URLs
-
-
-amqp:///test?brokerlist='localhost'
-amqp:///test?brokerlist='tcp://anotherhost:5684?retries='10''
-amqp://guest:guest@/test?brokerlist='vm://:1;vm://:2'&failover='roundrobin'
-amqp://guest:guest@/test?brokerlist='vm://:1;vm://:2'&failover='roundrobin?cyclecount='20''
-amqp://guest:guest@client/test?brokerlist='tcp://localhost;tcp://redundant-server:5673?ssl='true''&failover='roundrobin'
-amqp://guest:guest@/test?brokerlist='vm://:1'&failover='nofailover'
-
-
-
-
diff --git a/qpid/doc/book/src/old/Download.xml b/qpid/doc/book/src/old/Download.xml
deleted file mode 100644
index 7bc08143ac..0000000000
--- a/qpid/doc/book/src/old/Download.xml
+++ /dev/null
@@ -1,174 +0,0 @@
-
-
-
-
-
-Download Apache Qpid
-
-
-
-
-Production Releases
-
-These releases are well tested and appropriate for production use. 0.5 is the latest release of Qpid.
-
-Qpid supports the latest version of AMQP 0-10, and some components also the AMQP 0-8 and 0-9, earlier versions. The Java Broker and Client provide protocol negotiation. Other versions can be found at http://www.apache.org/dist/qpid/
-
-For details on cross component compatibility among releases, see: AMQP Release Compatibility for Qpid|AMQP compatibility
-
-If you have any questions about these releases, please mail the user list (users@qpid.apache.org).
-
-
-
-0.5 Release
-
-Multiple Component Packages
-
-
-
-
- Component Download AMQP 0-10 AMQP 0-8/0-9
-
- Full release & keys http://www.apache.org/dist/qpid/0.5/ Y Y
- C++ broker & client http://www.apache.org/dist/qpid/0.5/qpid-cpp-0.5.tar.gz Y
- Java broker, client & tools http://www.apache.org/dist/qpid/0.5/qpid-java-0.5.tar.gz client Y
-
-
-
-
-
-Single Component Package
-
-
-
-Broker
-
- Language Download AMQP 0-10 AMQP 0-8/0-9
-
- Java http://www.apache.org/dist/qpid/0.5/qpid-java-broker-0.5.tar.gz Y
-
-
-
-
-
-
-Client
-
- Language Download AMQP 0-10 AMQP 0-8/0-9
-
- C# (.NET, WCF, Excel) 0-10 client (C++ Broker Compatible) http://www.apache.org/dist/qpid/0.5/qpid-dotnet-0-10-0.5.zip Y
- C# (.NET) 0-8 client (Java Broker Compatible) http://www.apache.org/dist/qpid/0.5/qpid-dotnet-0-8-0.5.zip Y
- Java http://www.apache.org/dist/qpid/0.5/qpid-java-client-0.5.tar.gz Y Y
- Python http://www.apache.org/dist/qpid/0.5/qpid-python-0.5.tar.gz Y Y
- Ruby http://www.apache.org/dist/qpid/0.5/qpid-ruby-0.5.tar.gz Y Y
-
-
-
-
-
-
-C++ broker management
-
- Component Download AMQP 0-10
-
- cmd line (packaged with python) http://www.apache.org/dist/qpid/0.5/qpid-python-0.5.tar.gz Y
- QMan JMX bridge, WS-DM http://www.apache.org/dist/qpid/0.5/qpid-management-client-0.5.tar.gz Y
-
-
-
-
-
-
-Java broker management
-
- Component Download
-
- Eclipse RCP client Linux x86
-Linux x86_64
-Mac OS X
-Windows x86
-
- Command line interface http://www.apache.org/dist/qpid/0.5/qpid-management-tools-qpid-cli-0.5.tar.gz
-
-
-
-
-
-
-
-QpidComponents.org
-
-http://QpidComponents.org provides further components for Apache Qpid, including both persistence and management tools. These components are open source, but are not developed as part of the Apache Qpid project due to licensing or other restrictions.
-
-
-
-
-Contributed C++ Packages
-
-Pre-built Linux Packages
-
-Fedora 8, 9, 10
-
-On Fedora, Qpid can be installed using yum. Because Java RPMs are not yet available in Fedora repos, the Java client is not in these distributions.
-
-To install the server:
-
-# yum install qpidd
-
-To install C++ and Python clients:
-
-# yum install qpidc-devel
-
-
-# yum install amqp python-qpid
-
-To install documentation:
-
-# yum install rhm-docs
-
-To install persistence using an external store module:
-
-# yum install rhm
-
-
-
-
-
-Windows Installer
-
-The Windows installer is available from http://www.apache.org/dist/qpid/0.5-windows/qpidc-0.5.msi. It is built from the 0.5 C++ broker and client source distribution listed above. It has been tested for Windows XP SP2 and above.
-
-The Windows executables require the Visual C++ 2008 SP1 run-time components. If the Visual C++ 2008 SP1 runtime is not available, the Qpid broker will not execute. If you intend to run the broker and Visual C++ 2008 is not installed, you must install the Visual C++ 2008 SP1 Redistributable. Please see http://www.microsoft.com/downloads/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en for download and installation instructions.
-
-If you intend to develop Qpid client applications using this kit, you should install Boost version 1.35 (please be sure to select VC9 support when installing) in addition to Visual Studio 2008 SP1.
-
-
-
-
-Source Code Repository
-
-The latest version of the code is always available in the Source Repository.
-
-
-
-
-
diff --git a/qpid/doc/book/src/old/Excel-AddIn.xml b/qpid/doc/book/src/old/Excel-AddIn.xml
deleted file mode 100644
index e38f620bd8..0000000000
--- a/qpid/doc/book/src/old/Excel-AddIn.xml
+++ /dev/null
@@ -1,169 +0,0 @@
-
-
-
-
-
- Excel AddIn
-
-
-
- Excel AddIn
-
-
- Qpid .net comes with Excel AddIns that are located in:
-
-
- <project-root>\qpid\dotnet\client-010\addins
-
-
-
- There are currently three projects:
-
-
-
- ExcelAddIn
-
- An RTD excel Addin
-
-
-
- ExcelAddInProducer
-
-
- A sample client to demonstrate the RTD AddIn
-
-
-
- ExcelAddInMessageProcessor
-
-
- A sample message processor for the RTD AddIn
-
-
-
-
-
-
- Qpid RDT AddIn
-
-
-
- Deploying the RTD
- AddIn
-
-
- Excel provides a function called RTD (real-time data) that lets
- you specify a COM server via its ProgId here "Qpid" so that you
- can push qpid messages into Excel.
-
-
- The provided RTD AddIn consumes messages from one queue and
- process them through a provided message processor.
-
-
- For using the Qpid RTD follows those steps:
-
-
-
-
- Copy the configuration Excel.exe.config into Drive\Program Files\Microsoft Office\Office12.
-
-
- Edit Excel.exe.xml and set the targeted Qpid broker host, port
- number, username and password.
-
-
- Select the cell or cell range to contain the RTD information
-
-
- Enter the following formula =rtd("Qpid",,"myQueue"). Where
- MyQueue is the queue from which you wish to receive messages from.
-
-
-
- Note: The Qpid RTD is a COM-AddIn that must be registered with
- Excel. This is done automatically when compiling the Addin with
- visual studio.
-
-
-
-
-
-
-
- Defining a message processor
-
-
-
- The default behavior of the RDT AddIn is to display the message
- payload. This could be altered by specifying your own message
- processor.
- A Message processor is a class that implements the API
- ExcelAddIn.MessageProcessor. For example, the provided processor
- in client-010\addins\ExcelAddInMessageProcessor displays the
- message body and the the header price when specified.
-
-
- To use you own message processor follows those steps:
-
-
- Write your own message processor that extends ExcelAddIn.MessageProcessor
- Edit Excel.exe.config and uncomment the entries:
-
-<add key="ProcessorAssembly"
-value="<path>\qpid\dotnet\client-010\addins\ExcelAddInMessageProcessor\bin\Debug\ExcelAddInMessageProcessor.dll"/>
-
-
- <add key="ProcessorClass"
- value="ExcelAddInMessageProcessor.Processor"/>
-
-
-
- ProcessorAssembly is the path on the Assembly that contains
- your processor class
-
-
-
- ProcessorClass is your processor class name
-
-
-
-
- run excel and define a rtd function
-
-
- Note: the provided ExcelAddInProducer can be used for
- testing the provided message processor. As messages are
- sent to queue1 the following rtd function should be used
- =rtd("Qpid",,"queue1").
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/old/FAQ.xml b/qpid/doc/book/src/old/FAQ.xml
deleted file mode 100644
index 5647f18f69..0000000000
--- a/qpid/doc/book/src/old/FAQ.xml
+++ /dev/null
@@ -1,524 +0,0 @@
-
-{toc}
-
-
-*This page is a collection of FAQ and How to-s for Qpid. If you have a question, post it to the users list and we will place the answer here to build out our FAQ/ How to.*
-
-h1. FAQ
-
-h2. About AMQP
-
-h3. What is AMQP?
-
-AMQP is a wire-level protocol and model for high performance enterprise messaging.
-
-[From the AMQP website:|http://www.amqp.org]
-
- AMQP is an Open Standard for Messaging Middleware.
-
- By complying to the AMQP standard, middleware products written for different platforms and in different languages can send messages to one another. AMQP addresses the problem of transporting value-bearing messages across and between organizations in a timely manner.
-
- AMQP enables complete interoperability for messaging middleware; both the networking protocol and the semantics of broker services are defined in AMQP.
-
-h3. Where did AMQP come from
-
-AMQP was born out from Frustration by John O'Hara at JPMC. He started a project internally to create commodity messaging that was easy to use. Carl Trieloff from Red Hat had started a project to build messaging for both users and for use in infrastructure, while looking around spoke to John about his work. Out of these discussion was born the AMQP working Group with 6 initial members, under an agreement that it will be eternally be licensed for everyone to use.
-
-Since then the Working Group has had many join, and has been making solid progress working on revisions of the specification. [For more details see.|http://jira.amqp.org/confluence/display/AMQP/About+AMQP]
-
-h3. Why use AMQP?
-
-AMQP is has been designed to be able to handle the hardest workloads, scale to the largest systems, but also deal with reduction of change and maintenance costs by doing a refresh on many aged practices. The specification is also not language specific allowing the freedom from language and platform lock in, without compromise on user experience, security, scalability and consistently excellent performance.
-
-[Text mostly taken from|http://jira.amqp.org/confluence/display/AMQP/About+AMQP]
-
-h2. Qpid & AMQP
-
-
-h3. Is Qpid AMQP Compliant?
-
-Yes, Apache Qpid implements the latest AMQP specifications, providing transaction management, queuing, distribution, security, management, clustering, federation and heterogeneous multi-platform support and a lot more. And Apache Qpid is extremely fast. [Apache Qpid aims to be 100% AMQP Compliant|AMQP compatibility].
-
-h3. What Client support does Qpid have?
-
-Apache Qpid provides AMQP Client APIs for the following languages:
-* C+\+
-* C# .NET, using WCF
-* Ruby
-* Python
-* Java JMS, fully conformant with Java CTS1.1
-
-If you need another client, join the lists and ask or feel free to contribute one.
-
-h3. What messaging topologies are supported by AMQP and Qpid?
-
-AMQP provides the ability to do Point-to-Point, Peer-to-Peer, Pub-Sub, and Eventing. This allows many patterns to be craeted:
-
-+*Point-to-point*+
-
-This is one of the simplest use-cases. AMQP allows for this in a few ways.
- a.) A client can create a named queue allowing the producer to publish the message to the direct exchange with the key mapping the queue name. This will route the message to that queue.
- b.) The above pattern can be extended by specifying a reply-to address in the published messages allowing for the consumer to reply the producer without knowing who it was send from prior to receiving the message.
-
-+*One-to-many*+
-
-There are a few patterns that can be used.
-
- a.) AMQP provides a 'fanout' exchange which will send a message to all the queues that have been bound to it. Different domains or topics are created with the 'fanout' exchange by declaring different named fan-out exchanges.
-
- b.) A 'topic' or 'headers' exchange can also be used. in this case the pattern match is used to send the message to all the bound queues. It can be thought of as a filter allowing you to create just about any One-to-many routing patterns.
-
-+*Pub-Sub*+
-
-Topic can be created with the 'topic' or other 'direct' exchange to allow consumer to bind to into the steams of data they care about. This pattern combined with the use of reply-to and Alternate-routing is the staple of what most people use messaging for today.
-
-+*FAST Reliable Messaging*+
-
-AMQP 0-10 allows for fully reliable transfers between any two peers. This means that you can publish or subscribe to the broker fully reliable without requiring the need for transactions. This can all be done in async mode with the C++ broker allowing for high throughput while running entirely reliable.
-
-+*Transactional*+
-
-AMQP supports two types of transactions in AMQP 0-10, TX and DTX. This allows for local (1PC), and 2PC transaction and the ability to coordinate with a TM (Transaction Manager). The Java broker supports TX, the C++ broker support TX, DTX, XA, JTA for fully ACID transactions. This allows you to commit a single unit of work with may contain enqueues & dequeues either locally on the broker, or in coordination with other transactional resource like RDBMS.
-
-+*Transient message delivery*+
-
-By default messages are transient. Transient message can be sent to queues that are durable. They will not be safe stored or recovered, and will perform as any other transient message - fast!
-
-+*Durable message delivery*+
-
-There is a header on each message where the message properties are specified, one of these is durability. Messages that are marked as durable and published to a durable queue will be safe stored. Durable messages will survive restart of the broker or cluster.
-
-+*Federation (Hub-spoke, Trees, graphs)*+
-
-As AMQP 0-10 is symmetric for peer-to-peer communication all the building block are in place for creating networks of brokers. The C++ broker allows you to link the brokers together using 'qpid-route' and then create routes between the brokers either statically or with dynamic routes.
-
-This allows for a message to be published to one broker and consumed from another broker in the federated broker network. This feature is great to create data-center, or project isolation, but allow cross communication. It also allows networks to be created to scaled. [For more details see|Using Broker Federation]
-
-+*And many others, including custom pattern*+
-
-+*Message Reply, Rings, Initial Value Caches, Last Value Messaging*+
-
-All the above cases can be constructed using the AMQP and features of Qpid. For example reply can be constructed using message browsing and setting TTL on the messages. The C++ broker also support ring queues, last value queues, initial value caches on exchanges. With a bit of throught many additional patterns can be constructed.
-
-*+Store-and-forward+*
-
-Store-and-forward can be achieved by publishing to well know durable queues, that are not marked with auto delete. Consumers will be able to 'came back' to consume then at any time, even after restarts.
-
-h3. What AMQP and other exchanges does Qpid support?
-
-Both brokers support:
- * Direct Exchange
- * Topic Exchange
- * Fanout Exchange
- * Headers Exchange
-
-In additional the C++ broker support
- * XML Exchange - Query routing
- * Custom exchange via plug-in.
-
-Custom exchanges allow you to provide your own custom routing logic and algorithms via a plug-in. If you build an interesting exchange, please feel free to contribute it back to the Qpid project.
-
-h2. Security
-
-h3. What encryption does Qpid support?
-
- * Qpid support SSL/TSL as per the AMQP specification.
- * In addition the C++ broker supports Kerberos encryption of messages independent on which transport is used. Support in not yet included in all clients for this but is in process.
-
-h3. What authentication does Qpid support?
-
-SASL Authentication is supported. All Clients support PLAIN, and Kerberos support if being added to all the clients. The C++ broker support Kerberbos authentication.
-
-h3. What authorization does Qpid support?
-
-Full ACL is supported in the brokers. [For details on configuring ACL see|Qpid ACLs].
-
-ACL supports realms and allows for granular permission to be set on all the broker actions including management on an user or group basis.
-
-h3. How to setup Kerberos with the Java client
-
-You could force the java client to use kerberos auth by specifying it in the connection URL as follows.
-{code}
-amqp://guest:guest@clientid/testpath?brokerlist='tcp://localhost:5672?'&sasl_mechs='GSSAPI'
-{code}
-
-You would then need to pass in the following jvm arguments
-{code}
--Djavax.security.auth.useSubjectCrehttp://code.google.com/p/confluence-el/dsOnly=false
-# (This will force the SASL GASSPI client to obtain the kerberos credentials explicitly instead of obtaining from the "subject" that owns the currents thread)
--Djava.security.auth.login.config=myjas.conf (this specifies the jass config file)
--Dsun.security.krb5.debug=true (to enable detailed debug info for troubleshooting)
-{code}
-
-Before running the java client you would need to do kinit and grab a kerberos ticket. Alternative you could set useTicketCache=false and when the client loads, it will prompt you for the user/pass and will obtain the ticket
-(You would also need to setup your kerberos environment properly -refer to doc links below).
-
-Sample JASS Config file
-{code}
-com.sun.security.jgss.initiate {
- com.sun.security.auth.module.Krb5LoginModule required useTicketCache=true;
-};
-{code}
-
-
-h2. Semantics of Exclusive
-
-h3. I want to be able to have an exclusive consumer, but when it dies I want another to be able to pick up the queue and then block others, can this be done?
-
-Yes, Declare you queue exclusive. this will prevent anyone else from connecting to the queue. If the consumer dies the next consumer can attach to the queue by redeclaring it using the exclusive flag. Make sure not to set auto delete. Any consumer trying to declare, while a consumer is attached to the queue will receive an exception.
-
-h3. When will the queue become free for a re-declare
-
-Once the session that held the consumer is closed.
-
-
-h2. Performance
-
-h3. Does Qpid Perform (Latency/Throughput)?
-
-Yes, The Qpid C++ broker has been achieved great benchmark results in published papers by those that redistribute it. [Red Hat MRG|http://www.redhat.com/mrg] product build on Qpid has shown 760,000msg/sec ingress on an 8 way box or 6,000,000msg/sec OPRA messages.
-
-Latencies have been recored as low as 180-250us (.18ms-.3ms) for TCP round trip and 60-80us for RDMA round trip using the C++ broker.
-
-h3. How do I measure throughput?
-
-There is a great resource supplied in the C++ broker test directory called perftest. If allows you to create load on a broker for all the exchanges, multiple queues, multiple connection, coordinate multiple publishing and consuming processes, beachmark transactions and much much more such as acquire mode, txn size, message size.
-
-For all the options
-{code}
-./perftest --help
-{code}
-
-h3. How do I measure latency?
-
-There is a great resource supplied in the C++ broker test directory called latencytest. It is a loopback test that produces messages by count or at a rate, time stamps them and then consumes them back and record the latency. It supports many of the Qpid options, including the ability to vary things like frame-size.
-
-Latencies to expect round trip:
- * 1G TCP ~ .3ms -.5ms
- * 10G TCP - .18ms - .22ms
- * RDMA transport - 40us - 80us
-
-Don't forget to set tune the machine and set --tcp-nodelay on both the C++ broker & client.
-
-For all the options
-{code}
-./latencytest --help
-{code}
-
-h3. How do I measure performance with Java clients?
-
-In Java we provide a utility called QpidBench. It allows you to test the performance of the native AMQP API in Java for 0-10 and the JMS API against both brokers.
-
-h3. Can I run my Java client with JAVA-RT?
-
-Yes, recently a thread abstraction layer has been added to the Java client allowing it to be used with both the SUN and IBM RT JVMs. This increases the determinism of latency when using the Java client.
-
-h3. Does Qpid support flow control?
-
-yes, AMQP 0-10 allows for flow control on the consumer and producer.
-
-h3. How do I configure producer side flow control
-
-from qpidd --help
-
-set the following in the config file on via cmd line options.
-{code}
- --max-session-rate MESSAGES/S (0) Sets the maximum message rate per session (0=unlimited)
-{code}
-
-h2. Management
-
-h3. What Management does Qpid support
-
-The Java broker supports JMX and provides an Eclipse plug-in and command line tool to manage via JMX. The C++ broker has far more extensive management support via QMF which will be added to the Java broker in a future release.
-
-The C++ Broker supports a layered management protocol over AMQP called QMF. This allows for the management of resource either in the broker or connected to the broker via the AMQP fabric. This management includes statistics, control, eventing, and reporting/updating properties.
-
-h3. How do I manage a broker?
-
-A set of tools are provided to manage the C++ broker, they include
- * qpid-tool - telnet type tool to access data, view schema, issue command an and QMF resource
- * qpid-config - tool to configure queues, exchanges, etc. all the details on the AMQP model
- * qpid-route - tool to configure broker federation
- * qpid-events - utility that will print to cmd line or syslog event from a broker like, userconnected, user crested/deleted a queue.
- * qpid-stats - utility that will print out queue statistics to the cmd line or syslog like rate and message depth.
-
-Then you can also access all thsi information via JMX or WS-DM (work in progress) using QMan.
-
-h3. What logging tracing and events does Qpid support?
-
-Qpid support the ability to output events from any the broker or any managed object via QMF, or to do a variety of logging from the broker & clients. for tracing options run qpidd --help.
-
-Multiple levels of of logging are supported in the C++ broker from debug, warning, error, info, etc -- all of which can be filtered.
-
-h3. Can I get to all the management data from a client?
-
-yes, All the management data is just AMQP messages on specially named queues. An API is provided for working with the management data called QMFC
-
-h3. What is QMF
-
-QMF is the layered Management protocol used to manage the C++ broker. For details on teh protocol see the Development pages.
-
-QMF allows you to manage any resource and provides the following infrsstructure:
- * Properties
- * Statistics
- * Commands
- * Events
- * Schema for resources and versioning
- * tools for creating agents and consuming QMF data.
-
-h3. What are QMF Agents, and what do they do for me?
-
-An Agent is any client (producer or consumer) that generates a QMF schema and registers itself to be management by QMF.
-
-A great use case of this is a consumer that is processing order from a queue can reference itself to that queue and for example provide a schema for the number or successful orders process and a method to suspend processing. Now it becomes possible to use qpid-tool to connect to the broker, see which order processors are on queue via the reference and the via the stats of the order processor client. It is also possible to issue a command to the client via qpid-tool to suspend processing. ACL in the broker can be applied to all these actions if desired.
-
-h3. What is QMFC and what does it do for mr?
-
-QMFC is the API used to consume QMF data, event and issue commands to QMF agents from an AMQP client.
-
-h3. What is QMan
-
-Qman is a tool that dynamically reads the QMF Schema information and creates JMX objects that consumed by any JMX console or application server to manage Qpid. QMan is also adding support for WS-DM management of QMF resources.
-
-
-h2. Clustering, Federation and Disaster Recovery
-
-h3. Does Qpid provide Fault Tolerance for the cluster?
-
-The C++ broker has plug-ins for Active-Active clustering which keep all the nodes of the cluster in sync. This means that any action that is performed on one of the brokers on the cluster is performed on all of them at the same time. New nodes can be added to the cluster at any time, and removed at any time with no consequences, exept for the extra multi-cast load created for the sync on joining.
-
-h3. What does the cluster guarantee?
-
-Everything! All configuration, all messages and all actions are replicated in a cluster. This means that two consumers can be connected to different nodes in the cluster and they will behave EXACTLY the same as if they where on a single broker.
-
-h3. Do clients get notified members joining or leaving the cluster?
-
-yes, All clients are updated with the addresses of node add/removed as supported by the AMQP 0-10 specification. This means that the client can dynamically track the nodes in the cluster and reconnect as required.
-
-h3. Can I specify more than one host to connect initially to the cluster to avoid single point of failure?
-
-yes, the AMQP address is multi-honed and more than one IP address can be specified at the initial connection. The client will then iterate through the host until it makes a successful connection. This feature can also be used in none clustered brokers.
-
-h3. How does Clustering work?
-
-When C++ brokers are configured into a cluster, the nodes communicate with each other over a mulitcast protocol called AIS, an open Telco multicast protocol that provides all the quorum and group services.
-
-Every action that is performed on any node of the cluster is then sequenced via totem and then performed on each node of the cluster in sync. As the cluster backbone is multicast, a separate network can be used for cluster communication and there is little impact adding additional nodes to the cluster with-in reason.
-
-h3. What is Federation?
-
-Federation provides the ability to create networks of brokers that communicate with each other in all types of typologies. This allows a producer to publish messages to one broker and someone to consume the messages from another broke somewhere on the broker federated network.
-
-[For more details see|Using Broker Federation]
-
-h3. Disater recover features are in process, Q&A will be added once they are complete.
-
-h2. Heartbeats
-
-Heartbeat can be configured to allow clients to detect when a broker has failed and connect to another broker or cluster member.Heartbeats are sent by the broker at a client specified, per-connection frequency. If the client does not receive a heartbeat or any other traffic for two heartbeat intervals, the connection will be made to fail.
-
-h3. What would happen when there is a no heartbeat within a predefined interval?
-
-If there is no traffic for two heartbeat intervals, the client will fail the connection. The application will see the exact same response as when the connection is killed.
-
-h3. What happens if the broker is unable to send heartbeat?
-
-As above, if there is no other traffic the client will eventually kill the connection.
-
-h3. Does the client retry?
-
-You can control the heartbeat interval on the client through the heartbeat member of ConnectionSettings (it is measured in seconds). Some of the options on policies do vary for different clients.
-
-h3. Failover taking too long...
-
-First check to make sure a heartbeat has been specified in the connection properties for the connection.
-
-Then make sure that the interfaces on each broker are reachable from the host you run my clients, else it will take a long time for the socket to timeout until it gets to one that can be reached.
-
-Make sure the list of URL's on the cient are the ones you want tht client to try
-
-Make sure that the broker is only exporting URL's that the client can connect to, use the --cluster-url option on the broker to specify this.
-
-h2. Threading
-
-h3. Could someone provide a brief description of the worker thread duties in the current Qpid release?
-
-The broker uses IO threads for all the work it does. This means that when work is signalled via an event (socket, RDMA, timer) an IO thread is scheduled and it runs until it completes the work and then returns back to the IO thread pool. This allows the CPUs to be utilized efficiently. The general rule is that we allocate 1 thread per core +1. So on a 8 way machine you see worker-threads default to 9. On a 4 way it will be 5. Sometimes it if work changing the default allocation if:
-
-a.) you run on high core count machine >8 to a lower number
-b.) if you taskset, then set to the cores allocated +1
-
-h3. Why was the number X chosen as the default number of worker threads?
-
-Qpidd defaults to cores + 1
-
-h3. What happens in parallel?
-
-Concurrency in the broker is at the session level. So yes. If you want more concurrency, create another session on the same connection.
-
-h3. How are worker threads allocated to individual client sessions if there are more clients than threads in the pool?
-
-They are not allocated to a specific client
-
-h2. Persistence
-
-h3. Does Qpid support persistence (durability)?
-
-Yes, there are third-party (non-Apache) modules for both C++ and Java. Historically, BDB has been used to provide persistence for both C++ and Java. However, this has created a licensing conflict with Apache, and thus the store modules are maintained off-site.
-
-The Java broker includes a fully Apache licensed persistent store that uses Derby DB.
-
-The terms _durable_ and _persistent_ are used interchangeably in this FAQ.
-
-h3. Where do I get the 3rd party persistence store modules?
-
-The 3rd party persistence store modules may be obtained through anonymous subversion at the following locations:
-
-C++: http://anonsvn.jboss.org/repos/rhmessaging/store/trunk/cpp
-Java: http://anonsvn.jboss.org/repos/rhmessaging/store/trunk/java/bdbstore
-
-For further details see [3rd Party Libraries]
-
-h3. How do I build the persistence store module from subversion checkouts?
-
-+*C\+\+*+
-The README file contains detailed instructions, but here is a summary:
- # Make sure that both the db4-devel and libaio-devel packages are installed prior to building.
- # Make sure that qpid is built and you know the location of the qpid directory (ie the top-level directory containing the python and cpp sub-directories).
- # In the store directory, run:
-{code}
-./bootstrap
-./configure --with-qpid-checkout=/abs/path/to/qpid/dir
-make
-{code}
-# When built, the store library *msgstore.so* will be located in the *lib/.libs* directory.
-
-+*Java*+
-TODO
-
-h3. How do I use the persistence store module?
-
-+*C\+\+*+
- # Start the broker making sure that the store module is loaded, ie
-{code}
-qpidd --load-module=/path/to/msgstore.so --data-dir=/path/to/store-files ...
-{code}
- # Make sure that queues that will handle persistent messages are set durable.
-{note:title=Note: Existing non-persistent queues cannot be made persistent}
-If a queue has been declared without persistence, doing so again with persistence enabled while the old queue still exists in the broker will be ignored. Make sure that when a queue is declared persistent, there is no non-persistent queue of the same name in existence.
-{note}
- # For each message sent to a durable queue, make sure that it is set durable.
-
-+*Java*+
-TODO
-
-h3. How do I configure the persistence store?
-
-+*C\+\+*+
-
-The broker loads help information from each module. To see the help options for the store, load the store module and specify help:
-{code}
-qpidd --load-module /abs/path/to/store/lib/.libs/msgstore.so --help
-{code}
-
-Note that a set of journal files will be created for each queue declared and marked persistent. Each persistent queue has its own private journal. These are stored in the data directory by default (ie it uses the broker's *\-\-data\-dir* setting) or can be overridden with the *\-\-store\-dir* option. Note that if the broker is started with the *\-\-no\-data\-dir* option, then no store default exists, and the *\-\-store\-dir* option MUST be specified.
-
-The store file details - or "store geometry" - can be set with command-line options. These include the size and number of files that make up the journal for each queue. The *\-\-num\-jfiles* options sets the number of files to use (between 4 and 64) and the *\-\-jfile\-size\-pgs* sets the size of the file in 64kiB blocks.
-
-The size of the pages in the write page cache is set with the *\-\-wcache\-page-size* option, and sets a size in KiB. (Legal values are powers of 2, ie: 1, 2, 4, 8, 16, 32, 64, 128). Typically small page sizes give improved latency (especially for small messages), but are bad for message throughput, while large page sizes improve throughput but may cause some messages to have higher latencies.
-
-+*Java*+
-+Derby Store+
-For details of configuring the Derby Store see [here|Derby Store Plugin]
-
-+3rd Party Stores+
-
-For details of using the 3rd party persistent modules see [here|3rd Party Libraries]
-
-
-h3. \[C++ store\] What is a RHM_IORES_ENQCAPTHRESH error?
-
-The journal ran out of space (ENQueue CAPacity THRESHold). The journal is a circular file buffer of fixed capacity set by the journal file size and number of files. When an attempt to write a record causes the journal to exceed an approx. 80% threshold, then the enqueue is rejected with this error code. Dequeues (a written record of a consumed message) may continue, however, as these free up space in the journal. Once space has been freed up, enqueues may continue as normal.
-
-This error may be caused by:
-# The journal is too small for the size and number of messages being stored. The journal must be made large enough to hold all of the messages you expect to be on the queue at any one moment (a worst-case scenario). Make the journal capacity larger through the use of the *\-\-num\-jfiles* and *\-\-jfile\-size\-pgs* parameters.
-{info:title=Rule of thumb for sizing the journal}
-Make the journal twice the size of all the messages you need to store at any one moment in time.
-{info}
-# Messages are not being dequeued (consumed) as expected. Since the store is a circular file buffer, if one un-dequeued (not consumed) message remains, it can eventually "block" the storage of new messages as the buffer gets overwritten.
-
-h3. \[C++ store\] What is the TPL? What are the \-\-tpl\-\* options for?
-The TPL stands for *Transaction Prepared List*. The store creates a single instance of a store for storing transaction boundaries called the Transaction Prepared List. Because the TPL is frequently flushed and has very different usage patterns to a normal store, it has been provided with its own set of configuration parameters:
-* *\-\-tpl\-num\-jfiles:* The number of files in the TPL journal
-* *\-\-tpl\-jfile\-size-pgs:* The file size in 64kiB blocks of the TPL journal.
-* *\-\-tpl\-wcache\-page-size:* The size of the write cache in the TPL in KiB, which is typically set a lot smaller than the average message store.
-
-h1. How To
-
-h2. C++
-
-h3. How to use RDMA with Qpid
-
-The RDMA plugin uses native OFED1.3 and puts AMQP directly onto the DMA. When using the RDMA plug-in for Qpid note the following
-* IP over IB or Fibre needs to be setup for the initial negociation
-* You need to make sure you have enough memory to pin for DMA use ulimit \-l something large
-* you might need to edit /etc/security/limits.conf first then log in again
-
-Once you have it up and running, use latencytest to make sure it is working. You should see latencies between 50 and 80us round trip.
-
-h3. Message TTL, auto expire
-
-I need to be able to set time for a message that I send to be removed from the queue if it is not read by my subscriber. For example: I enqueue a message and I want it to be automatically dequeued after a certain amount of time has passed.Is there a feature like this in qpid?
-
-yes, the TTL can be set in the message headers and the messages get dequeued if TTL expires
-
-E.g. from c++:
-{code}
-Message m("Hello World!");
- m.getDeliveryProperties().setTtl(500);
-{code}
-Sets a 500 millisecond timeout.
-
-h3. How to install the qpid-tools for c++ broker?
-
-I see
-{code}
-[commands]$ ./qpid-queue-stats
- Traceback (most recent call last):
- File "./qpid-queue-stats", line 29, in
- from qmf.console import Session, Console
- ImportError: No module named qmf.console
-{code}
-
-This problem occurs because the PYTHONPATH environment variable does not include the location of the qpid python files. If you are running from the SVN checkout, add /qpid/python to PYTHONPATH (where is the location of your SVN tree). If you are installing from source, make sure you configure with the same prefix where Python is installed. This is most likely:
-
-{code}
-# configure --prefix=/usr
-# make
-# make install
-{code}
-If you are running from vendor RPMs, this should work automatically.
-
-
-h2. Java
-{children:page=Qpid Java How To}
diff --git a/qpid/doc/book/src/old/Getting-Started.xml b/qpid/doc/book/src/old/Getting-Started.xml
deleted file mode 100644
index 216a52170e..0000000000
--- a/qpid/doc/book/src/old/Getting-Started.xml
+++ /dev/null
@@ -1,90 +0,0 @@
-
-
-
-Getting Started
-To get started with Apache Qpid, follow the steps below.
-
-
-Download Apache Qpid.
-
- Start a broker.
-
-
-
- (AMQP 0-10, works with the Qpid C++ broker)
-
-
-
- Run an example program from the downloaded software, or from the following URLs (these are svn URLs, which you can use to browse the examples or check them out):
-
- C++ (AMQP 0-10):
-
- Examples:https://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/examples/
- Running the C++ Examples:https://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/examples/README.txt
-
-
-
- Java JMS (AMQP 0-10):
-
- Examples:https://svn.apache.org/repos/asf/qpid/trunk/qpid/java/client/example/
- Script for Running the Java JMS Examples https://svn.apache.org/repos/asf/qpid/trunk/qpid/java/client/example/src/main/java/runSample.sh
-
-
-
- Python (AMQP 0-10):
-
- Examples:https://svn.apache.org/repos/asf/qpid/trunk/qpid/python/examples/
- Running the Python Exampleshttps://svn.apache.org/repos/asf/qpid/trunk/qpid/python/examples/README
-
-
-
- Ruby (AMQP 0-10):
-
- Examples: https://svn.apache.org/repos/asf/qpid/trunk/qpid/ruby/examples/
-
-
-
- .NET (AMQP 0-10):
-
- Examples:http://svn.apache.org/viewvc/qpid/trunk/qpid/dotnet/client-010/examples/
-
-
-
-
-
-
- Read the API Guides and Documentation
-
- C++ Client API (AMQP 0-10)
-
- Python Client API (AMQP 0-10)http://qpid.apache.org/docs/api/python/html/index.html
-
-
-
- Get your Questions Answered
-
- Read the
- Ask a question on the user listmailto:users-subscribe@qpid.apache.org
-
-
-
-
diff --git a/qpid/doc/book/src/old/How-to-Use-JNDI.xml b/qpid/doc/book/src/old/How-to-Use-JNDI.xml
deleted file mode 100644
index 0d6315c2a3..0000000000
--- a/qpid/doc/book/src/old/How-to-Use-JNDI.xml
+++ /dev/null
@@ -1,175 +0,0 @@
-
-
-
-
-
- How to Use JNDI
-
-
-
- How to use the PropertiesFileInitialContextFactory
-
-
-
- This ContextFactory uses a java properties formatted file to
- setup initial values.
-
-
-
- JNDI Property setup
-
-
- By setting the JNDI Initial Context Factory and URL as
- below it is possible to load any File from the locally
- mounted file system to use for JNDI purposes. The format
- of the file is described in the next section.
-
-
-java.naming.factory.initial = org.apache.qpid.jndi.PropertiesFileInitialContextFactory
-java.naming.provider.url = <path to JNDI File>
-
-
- By simply setting these two system properties you can jump
- straight to the InitialContext creation in your code.
-
-
-
-
- Example properties file
-
- This is the example properties file.
-
-
-# register some connection factories
-# connectionfactory.[jndiname] = [ConnectionURL]
-connectionfactory.local = amqp://guest:guest@clientid/testpath?brokerlist='vm://:1'
-
-# register some queues in JNDI using the form
-# queue.[jndiName] = [physicalName]
-queue.MyQueue = example.MyQueue
-
-# register some topics in JNDI using the form
-# topic.[jndiName] = [physicalName]
-topic.ibmStocks = stocks.nyse.ibm
-
-# Register an AMQP destination in JNDI
-# NOTE: Qpid currently only supports direct,topics and headers
-# destination.[jniName] = [BindingURL]
-destination.direct = direct://amq.direct//directQueue
-
-
- The property file allows a number of queues to be defined that
- can then be discovered via JNDI. There are four properties used
- by the PFICFactory.
- connectionfactory.<jndiname> this is the that the connection
- factory will use to perform connections.
- queue.<jndiname> this defines a jms queue or in
- amqp a amq.direct exchange
- topic.<jndiname> this defines a jms topic or in
- amqp a amq.topic exchange
- destination.<jndiname> this takes a
- and so can be used for defining all amq destinations, queues,
- topics and header matching.
-
- In all of these properties the <jndiname> is the
- string value that would be given when performing a lookup.
-
- NOTE: This does not create the queue on the broker. You
- should ensure that you have created the queue before publishing
- to it. Queues can be declared in the virtualhosts.xml file so
- that they are created on broker startup, or created dynamically
- by consuming clients. Topics and other destinations that use
- temporary queues cannot be created in this way, so a consumer
- must be created first before publishing messages with mandatory
- routing.
-
-
-
-
- Example lookup code
-
-
-
- The bindingValue is the String that would be placed in
- <jndiname> above.
-
-
-
- Simple JNDI lookup using files
-
-//Ensure you have your system properties set
-final String INITIAL_CONTEXT_FACTORY = "org.apache.qpid.jndi.PropertiesFileInitialContextFactory";
-
-System.setProperty(Context.INITIAL_CONTEXT_FACTORY, INITIAL_CONTEXT_FACTORY);
-System.setProperty(Context.PROVIDER_URL, _JNDIFile);
-
-// Create the initial context
-Context ctx = new InitialContext();
-
-// Perform the binds
-object = ctx.lookup(bindingValue);
-
-// Close the context when we're done
-ctx.close();
-
-
-
-
-Simple JNDI lookup using properties
-
-
-
-final String INITIAL_CONTEXT_FACTORY = "org.apache.qpid.jndi.PropertiesFileInitialContextFactory";
-
-final String CONNECTION_JNDI_NAME = "local";
-final String CONNECTION_NAME = "amqp://guest:guest@clientid/testpath?brokerlist='vm://:1'";
-
-final String QUEUE_JNDI_NAME = "queue";
-final String QUEUE_NAME = "example.MyQueue";
-
-// Set the properties ...
-Properties properties = new Properties();
-properties.put(Context.INITIAL_CONTEXT_FACTORY, INITIAL_CONTEXT_FACTORY);
-properties.put("connectionfactory."+CONNECTION_JNDI_NAME , CONNECTION_NAME);
-properties.put("queue."+QUEUE_JNDI_NAME , QUEUE_NAME);
-
-// Create the initial context
-Context ctx = new InitialContext(properties);
-
-// Perform the lookups
-ConnectionFactory factory = (ConnectionFactory)ctx.lookup(CONNECTION_JNDI_NAME);
-Queue queue = (Queue)ctx.lookup(QUEUE_JNDI_NAME);
-
-// Close the context when we're done
-ctx.close();
-
-
-
-
-
- Using Qpid with Other JNDI Providers
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/old/InfoPlugin.xml b/qpid/doc/book/src/old/InfoPlugin.xml
deleted file mode 100644
index aebcd08c02..0000000000
--- a/qpid/doc/book/src/old/InfoPlugin.xml
+++ /dev/null
@@ -1,261 +0,0 @@
-
-
-
-
-
-OSGI Info Plugin
-
- The Info OSGI Plugin was developed as a mean of monitoring the qpid broker startup/shutdown
- times along with selected JVM and OS details. It was written as a OSGI plugin so it can be
- used as needed.
-
-
-
- How it works
- Assuming the plugin is deployed, upon the Activator invocation (which happens when OSGI
- loads the bundles), the plugin looks for its configuration file. If the file cannot be
- found, the plugin does not perform any operation and will silently exit. If the
- configuration is found, it is loaded and parsed. A predefined set of data is collected and
- messages are generated as per the configuration templates (see below for details).
- Further, the messages are sent using one of the supported protocols (currently http
- post and soap) to the configured destination. The same scenario takes place on the plugin
- unload phase which usually takes place upon broker shutdown.
-
-
-
- Data Gathering
-
-The info plugin collects a pre-defined set of data, and generates a message according to a template
-defined in each section of the ini file. Data can be of 2 categories:
-
-
- JVM specific
-
-
- application specific
-
-
-
-
-Each data has a variable name associated which can be used for the message generation template.
-The convention chosen for template is: @[variable (in uppercase)] (eg @IP, @PORT) (see configuration section
-for message examples).
-
-
-The following application specific info are gathered (variable names in round brackets):
-
-
-
- The JMX Port the application is listening to (jmxport)
-
-
- The Port(s) the broker is listening to, comma delimited (port)
-
-
- The Broker Version (version)
-
-
- The key store path (KeystorePath)
-
-
- The Plugin Directory (PluginDirectory)
-
-
- The QPID work directory (QpidWork)
-
-
- The JMX Principal Database (JMXPrincipalDatabase)
-
-
-
-
-The following JVM specific info are collected (variable names in round brackets):
-
-
-
- Hostname (hostname)
-
-
- IP address of the current machine (ip)
-
-
- Number of CPU cores (CPUCores)
-
-
- Maximum memory (Maximum_Memory)
-
-
- Free Memory (Free_Memory)
-
-
- Java Class Path (java.class.path)
-
-
- Jave Home (java.home)
-
-
- Java VM Name (java.vm.name)
-
-
- Java VM Vendor (java.vm.vendor)
-
-
- Java VM Version (java.vm.version)
-
-
- Java Class Version (java.class.version)
-
-
- Java Runtime Version (java.runtime.version)
-
-
- OS Architecture (os.arch)
-
-
- Sun Architecture Data Model (sun.arch.data.model)
-
-
- User home directory (user.home)
-
-
- User Name (user.name)
-
-
- User Time Zone (user.timezone)
-
-
-
-
-
-
-
- Plugin Configuration
-
-The plugin configuration file is currently hardcoded to be: $QPID_HOME/etc/qpidinfo.ini
-We plan to provide a mean to change the configuration by using system property (eg -DInfoPluginConfig) but
-currently this is not available.
-
-
-As it might be useful to send more than 1 message, eventually to different destinations,
-we chose an ini file layout for the plugin configuration that consists of a global section
-and set of individual sections, one for each message to be sent.
-
-
- The configuration file has a global section composed of any key-value pairs placed before the start
- of an ini-type section (eg [section]). The role of the global section is to provide a set of values
- that would be inferred in each subsequent section. Any section from the config file can override any
- global variable by specifying the respective key-value pair inside.
-
- The key protocol is mandatory, the plugin will not work if protocol=soap or protocol=http is
- not specified. For soap, we expect the following keys to be present:
-
- soap.hostname
-
-
- soap.port
-
-
- soap.path
-
-
- soap.envelope
-
- For http the following keys have to be present:
-
- http.url
-
-
- http.envelope
-
- The names are self-explanatory, please see the example below. The protocol
- key cannot be overwritten in the sections and it has to be chosen initially.
-
-
-Example Configuration
-
-For soap messages, we will abbreviate the XML header by omitting the namespaces in the config,
-in order to be more readable. A minimal correct XML for the soap envelope would be
-
-
-
- ...some content...
-
- ]]>
-
-
- NB. On the ini file, there can be no text wrapping for any entry (as above), the whole text should come into
- a single line, irrespective of how long it is.
-
-
-
-
-@ACTION-@VERSION
-
-[Message2]
-soap.hostname=host2
-soap.port=9090
-soap.path=/axis1/services/Info
-soap.envelope=@ACTION-@VERSION from @IP:@PORT
-
-## End of File
-]]>
-
-
-
-and another example, this time using http:
-
-
-
-
-
-
- The ini file is supporting comments starting with # or ; anywhere in the file.
- The global section is considered to be the first set of lines from the ini file before the first [Section] encountered.
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/old/Introduction.xml b/qpid/doc/book/src/old/Introduction.xml
deleted file mode 100644
index 8f92c207cf..0000000000
--- a/qpid/doc/book/src/old/Introduction.xml
+++ /dev/null
@@ -1,106 +0,0 @@
-
-
-
-
-
-Apache Qpid: Open Source AMQP Messaging
-
-Enterprise Messaging systems let programs communicate by exchanging messages, much as people communicate by exchanging email. Unlike email, enterprise messaging systems provide guaranteed delivery, speed, security, and freedom from spam. Until recently, there was no open standard for Enterprise Messaging systems, so programmers either wrote their own, or used expensive proprietary systems.
-
-AMQP Advanced Message Queuing Protocol is the first open standard for Enterprise Messaging. It is designed to support messaging for just about any distributed or business application. Routing can be configured flexibly, easily supporting common messaging paradigms like point-to-point, fanout, publish-subscribe, and request-response.
-
-Apache Qpid implements the latest AMQP specification, providing transaction management, queuing, distribution, security, management, clustering, federation and heterogeneous multi-platform support and a lot more. And Apache Qpid is extremely fast. Apache Qpid aims to be 100% AMQP Compliant.
-
-
-AMQP Messaging Brokers
-
-Qpid provides two AMQP messaging brokers:
-
-
- Implemented in C++ - high performance, low latency, and RDMA support.
- Implemented in Java - Fully JMS compliant, runs on any Java platform.
-
-
-Both AMQP messaging brokers support clients in multiple languages, as long as the messaging client and the messaging broker use the same version of AMQP. See Download to see which messaging clients work with each broker.
-
-
-
-
-AMQP Client APIs: C++, Java, JMS, Ruby, Python, and C#
-
-Qpid provides AMQP Client APIs for the following languages:
-
-
- C++
- Java, fully conformant with JMS 1.1
- C# .NET, 0-10 using WCF
- Ruby
- Python
-
-
-
-
-
-Operating Systems and Platforms:
-
-The Qpid C++ broker runs on the following operating systems:
-
-
- Linux systems
- Windows
- Solaris (coming soon)
-
-
-The Qpid Java broker runs on:
-
-
- Any Java platform
-
-
-Qpid clients can be run on the following operating systems and platforms:
-
-
- Java:
-
- any platform, production proven on Windows, Linux, Solaris
-
-
-
-
- C++:
-
- Linux
- Windows
- Solaris (coming soon)
-
-
-
- C#
-
- .NET
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/old/Java-Broker-StatusLogMessages.xml b/qpid/doc/book/src/old/Java-Broker-StatusLogMessages.xml
deleted file mode 100644
index 98f876e532..0000000000
--- a/qpid/doc/book/src/old/Java-Broker-StatusLogMessages.xml
+++ /dev/null
@@ -1,294 +0,0 @@
-
-
-
-
-
- Operational Logging
-
- Apache Software Foundation
-
-
-
- Status Log Messages
- This file was derivied from LogMessages used within the Java Broker and originally defined on:
- Apache Wiki
-
- Technical Notes:
- The status log messages file is a standard Java Properties file so white space is respected at the end of
- the lines. This file could be processed in a number of ways:
-
-
-
- ResourceBundle
- This file is loaded as a ResourceBundle. The en_US addition to the
- file is the localisation. Additional localisations can be provided and
- will automatically be selected based on the <locale> value in the
- config.xml. The default locale is en_US.
-
-
- MessageFormat
- Each entry is prepared with the Java Core MessageFormat methods.
- Therefore most functionality you can do via MessageFormat can be done
- here:
- Java API for MessageFormat
- The caveat here is that only default String and number FormatTypes can
- be used. This is due to the processing described in 3 below. If support
- for date, time or choice is required then the GenerateLogMessages class
- should be updated to provide support.
-
-
- GenerateLogMessage/Velocity Macro
- This is the only processing that this file goes through
-
-
- Class Generation:
- The GenerateLogMessage processes this file and uses the
- velocity Macro to create classes with static methods to perform
- the logging and give us compile time validation.
-
-
- Property Processing
- During the class generation the message properties ({x}) are
- identified and used to create the method signature.
-
-
- Option Processing
- The Classes perform final formatting of the messages at
- runtime based on optional parameters that are defined within the
- message. Optional parameters are enclosed in square brackets
- e.g. [optional].
-
-
-
-
-
- Format Note:
- As mentioned earlier white space in this file is very important. One thing in
- particular to note is the way MessageFormat performs its replacements. The
- replacement text will totally replace the {xxx} section so there will be no addition
- of white space or removal e.g.
-
-
- When given parameter 'Hello' result in text:
-
-
- For simple arguments this is expected however when using Style formats then it can
- be a little unexpected. In particular a common pattern is used for number
- replacements : {0,number,}. This is used in the Broker to display an Integer simply
- as the Integer with no formatting. e.g new Integer(1234567) becomes the String
- "1234567" which is can be contrasted with the pattern without a style format field :
- {0,number} which becomes string "1,234,567".
- What you may not expect is that {0,number, } would produce the String " 1234567"
- note that the space after the ',' here has resulted in a space in front of the
- number in the output.
- More details on the SubformatPattern can be found on the API link above. To
- provide fixed log messages as required by the Technical Specification:
- Operational Logging Tech Specification
- This file is processed by Velocity to create a number of classes that contain
- static methods that provide LogMessages in the code to provide compile time
- validation.
- For details of what processing is done see GenerateLogMessages.
- What a localiser or developer need know is the following:
- The Property structure is important as it defines how the class and methods will
- be built.
-
-
- Class Generation
- Each class of messages will be split in to their own <Class>Messages.java.
- Each logmessage file contains only one class of messages the <Class> name is
- derived from the name of the logmessages file e.g. <Class>_logmessages.properties.
-
-
-
- Property Format
- The property format MUST adhere to the follow format to make it easier to use the
- logging API as a developer but also so that operations staff can easily locate log
- messages in the output.
- The property file should contain entries in the following format:
- =:]]>
-
-
- eg:
-
-
-
- Note: the developer focused identifier will become a method name so only a valid
- method name should be used. Currently only '-' are converted to '_'.
- That said properties generate the logging code at build time so any error can be
- easily identified.
- The three character identifier show above in BRK-1003 should ideally be unique.
- This is the only requirement, limiting to 3 characters is not required.
- The current broker contains the following mappings:
-
-
-
-
-
- Property Processing
-
- Each property is then processed by the GenerateLogMessages class to identify
- the number and type of parameters, {x} entries. Parameters are defaulted to
- String types but the use of FormatType number (e.g.{0,number}) will result
- in a Number type being used. These parameters are then used to build the
- method parameter list. e.g:
-
-
- Property:
-
- becomes Method:
-
-
-
-
- This improves our compile time validation of log message content and
- ensures that change in the message format does not accidentally cause
- erroneous messages.
-
-
- Option Processing
-
- Options are identified in the log message as being surrounded by square
- brackets ([ ]). These optional values can themselves contain parameters
- however nesting of options is not permitted. Identification is performed on
- first matching so given the message:
-
-
-
- Two options will be identified and enabled to select text 'option1' and
- 'option2'.
-
-
- The nesting of a options is not supported and will provide
- unexpected results. e.g. Using Message:
-
-
-
- The options will be 'option1 [sub-option2' and 'sub-option2'. The first
- option includes the second option as the nesting is not detected.
-
-
- The detected options are presented in the method signature as boolean options
- numerically identified by their position in the message. e.g.
- Property:
-
-
- becomes Method:
-
-
- The value of 'opt1' will show/hide the option in the message. Note that
- 'param2' is still required however a null value can be used if the optional
- section is not desired.
-
-
- Again here the importance of white space needs to be highlighted.
- Looking at the QUE-1001 message as an example. The first thought on how this
- would look would be as follows:
-
-
-
- Each option is correctly defined so the text that is defined will appear when
- selected. e.g. 'AutoDelete'. However, what may not be immediately apparent is
- the white space. Using the above definition of QUE-1001 if we were to print
- the message with only the Priority option displayed it would appear as this:
-
-
-
- Note the spaces here in between gues and Priority are present because only the text between the brackets
- has been removed.
-
-
- Each option needs to include white space to correctly format the message. So
- the correct definition of QUE-1001 is as follows:
-
-
-
- Note that white space is included with each option and there is no extra
- white space between the options. As a result the output with just Priority
- enabled is as follows:
-
-
-
-
-
diff --git a/qpid/doc/book/src/old/Java-JMS-Selector-Syntax.xml b/qpid/doc/book/src/old/Java-JMS-Selector-Syntax.xml
deleted file mode 100644
index 870e277b66..0000000000
--- a/qpid/doc/book/src/old/Java-JMS-Selector-Syntax.xml
+++ /dev/null
@@ -1,96 +0,0 @@
-
-
- Java JMS Selector Syntax
- The AMQP Java JMS Messaging Client supports the following syntax for JMS selectors.
-
-)? // matches: 5.5 or 5. or 5.5E10 or 5.E10
- | "." (["0"-"9"])+ ()? // matches: .5 or .5E10
- | (["0"-"9"])+ ) // matches: 5E10
- EXPONENT: "E" (["+","-"])? (["0"-"9"])+
- STRING_LITERAL: "'" ( ("''") | ~["'"] )* "'"
-
-Identifiers (case insensitive):
-
- ID : ["a"-"z", "_", "$"] (["a"-"z","0"-"9","_", "$"])*
- QUOTED_ID : "\"" ( ("\"\"") | ~["\""] )* "\""
-
-Grammar:
-
- JmsSelector := orExpression
- orExpression := ( andExpression ( andExpression )* )
- andExpression := ( equalityExpression ( equalityExpression )* )
- equalityExpression := ( comparisonExpression ( "=" comparisonExpression
- | "<>" comparisonExpression
- |
- | )* )
- comparisonExpression := ( addExpression ( ">" addExpression
- | ">=" addExpression
- | "<" addExpression
- | "<=" addExpression
- | stringLitteral ( stringLitteral )?
- | ( )?
- | addExpression addExpression
- | addExpression addExpression
- | "(" ( "," )* ")"
- | "(" ( "," )* ")" )* )
- addExpression := multExpr ( ( "+" multExpr | "-" multExpr ) )*
- multExpr := unaryExpr ( "*" unaryExpr | "/" unaryExpr | "%" unaryExpr )*
- unaryExpr := ( "+" unaryExpr | "-" unaryExpr | unaryExpr | primaryExpr )
- primaryExpr := ( literal | variable | "(" orExpression ")" )
- literal := (
- |
- |
- |
- |
- |
- |
- | )
- variable := ( | )
-]]>
-
-
diff --git a/qpid/doc/book/src/old/Management-Design-notes.xml b/qpid/doc/book/src/old/Management-Design-notes.xml
deleted file mode 100644
index 76f0dac926..0000000000
--- a/qpid/doc/book/src/old/Management-Design-notes.xml
+++ /dev/null
@@ -1,2136 +0,0 @@
-
-
-
-
- Management Design notes
-
- Status
- of This Document
-
-
-
- This document does not track any current development activity. It
- is the specification of the management framework implemented in
- the M3 release of the C++ broker and will be left here for user
- and developer reference.
-
- Development continues on the Qpid Management Framework (QMF) for
- M4. If you are using M3, this is the document you need. If you
- are using the SVN trunk, please refer to for
- up-to-date information.
-
-
-
-
- Introduction
-
-
-
- This document describes the management features that are used in
- the QPID C++ broker as of the M3 milestone. These features do not
- appear in earlier milestones nor are they implemented in the Java
- broker.
-
- This specification is not a standard and is not endorsed
- by the AMQP working group. When such a standard is adopted, the
- QPID implementation will be brought into compliance with that
- standard.
-
-
-
-
- Links
-
-
-
- The schema is checked into .
-
-
- Design
- note for getting info in and out via JMX
-
-
-
-
-
-
-
-
-
-
- Management
- Requirements
-
-
-
- Must operate from a formally defined management schema.
-
- Must natively use the AMQP protocol and its type system.
-
- Must support the following operations
-
- SET operation on configurable (persistent) aspects of
- objects
-
- GET operation on all aspects of objects
-
- METHOD invocation on schema-defined object-specific
- methods
-
- Distribution of unsolicited periodic updates of
- instrumentation data
-
- Data updates shall carry an accurate sample timestamp
- for rate calculation
-
- Updates shall carry object create/delete timestamps.
-
- Transient objects shall be fully accounted for via
- updates. Note that short-lived transient objects may come
- and go within a single update interval. All of the
- information pertaining to such an object must be captured
- and transmitted.
-
-
-
- Distribution of unsolicited event and/or alert
- indications (schema defined)
-
-
-
- Role-based access control at object, operation, and method
- granularity
-
- End-to-end encryption and signing of management content
-
- Schema must be self-describing so the management client need
- not have prior knowledge of the management model of the system
- under management.
-
- Must be extensible to support the management of objects
- beyond the QPID component set. This allows AMQP to be used as a
- general-purpose management protocol.
-
-
-
-
-
- Definition
- of Terms
-
-
-
-
-
-
- class
-
-
- A type definition for a manageable object.
-
-
-
-
- package
-
-
- A grouping of class definitions that are related to a
- single software component. The package concept is used to
- extend the management schema beyond just the QPID software
- components.
-
-
-
-
- object
-
-
- Also "manageable object". An instantiation of a class. An
- object represents a physical or logical component in the
- core function of the system under management.
-
-
-
-
- property
-
-
- A typed member of a class which represents a configurable
- attribute of the class. In general, properties don't change
- frequently or may not change at all.
-
-
-
-
- statistic
-
-
- A typed member of a class which represents an
- instrumentation attribute of the class. Statistics are
- always read-only in nature and tend to change rapidly.
-
-
-
-
- method
-
-
- A member of a class which represents a callable procedure
- on an object of the class. Methods may have an arbitrary
- set of typed arguments and may supply a return code.
- Methods typically have side effects on the associated
- object.
-
-
-
-
- event
-
-
- A member of a class which represents the occurence of an
- event of interest within the system under management.
-
-
-
-
- management broker
-
-
- A software component built into the messaging broker that
- handles management traffic and distributes management data.
-
-
-
-
- management agent
-
-
- A software component that is separate from the messaging
- broker, connected to the management broker via an AMQP
- connection, which allows any software component to be
- managed remotely by QPID.
-
-
-
-
-
-
-
-
- Operational
- Scenarios: Basic vs. Extended
-
-
-
- The extensibility requirement introduces complexity to the
- management protocol that is unnecessary and undesirable for the
- user/developer that wishes only to manage QPID message brokers.
- For this reason, the protocol is partitioned into two parts: The
- basic protocol, which contains only the capability to
- manage a single broker; and the extended protocol, which
- provides the hooks for managing an extended set of components. A
- management console can be implemented using only the basic
- protocol if the extended capabilities are not needed.
-
-
-
-
-
- Architectural
- Framework
-
-
-
-
-
-
-
-
- The
- Management Exchange
-
-
-
- The management exchange (called "qpid.management" currently) is a
- special type of exchange used for remote management access to the
- Qpid broker. The management exchange is an extension of the
- standard "Topic" exchange. It behaves like a topic exchange with
- the following exceptions:
-
- When a queue is successfully bound to the exchange, a method
- is invoked on the broker's management agent to notify it of the
- presence of a new remote managment client.
-
- When messages arrive at the exchange for routing, the
- exchange examines the message's routing key and if the key
- represents a management command or method, it routes it directly
- to the management agent rather than routing it to queues using
- the topic algorithm.
- The management exchange is used by the management agent to
- distribute unsolicited management data. Such data is classified
- by the routing key allowing management clients to register for
- only the data they need.
-
-
- Routing
- Key Structure
-
-
-
- As noted above, the structure of the binding and routing keys
- used on the management exchange is important to the function of
- the management architecture. The routing key of a management
- message determines:
-
- The type of message (i.e. operation request or unsolicited
- update).
-
- The class of the object that the message pertains to.
-
- The specific operation or update type.
-
- The namespace in which the class belongs. This allows for
- plug-in expansion of the management schema for manageable objects
- that are outside of the broker itself.
-
-
- Placing this information in the routing key provides the ability
- to enforce access control at class, operation, and method
- granularity. It also separates the command structure from the
- content of the management message (i.e. element values) allowing
- the content to be encrypted and signed end-to-end while still
- allowing access control at the message-transport level. This
- means that special access control code need not be written for
- the management agent.
- There are two general types of routing/binding key:
-
-
- Command messages use the key:
- agent.<bank#> or broker
-
-
- Unsolicited keys have the structure:
- mgmt.<agent>.<type>.<package>.<class>.<severity>
- where
-
-
- <agent> is the uuid of the originating
- management agent,
-
-
- <type> is one of "schema", "prop", "stat",
- or "event",
-
-
- <package> is the namespace in which the
- <class> name is valid, and
-
-
- <class> is the name of the class as defined
- in the schema.
-
-
- <severity> is relevant for events only. It
- is one of "critical", "error", "warning", or "info".
-
-
-
-
- In both cases, the content of the message (i.e. method arguments,
- element values, etc.) is carried in the body segment of the
- message.
-
- The <package> namespace allows this management
- framework to be extended with the addition of other software
- packages.
-
-
-
-
-
- The Protocol
-
-
-
- Protocol
- Header
-
-
-
- The body segments of management messages are composed of
- sequences of binary-encoded data fields, in a manner consistent
- with the 0-10 version of the AMQP specification.
-
- All management messages begin with a message header:
-
-
- octet 0 1 2 3 4 5 6 7
- +---------+---------+---------+---------+---------+---------+---------+---------+
- | 'A' | 'M' | '1' | op-code | sequence |
- +---------+---------+---------+---------+---------+---------+---------+---------+
-
-
- The first three octets contain the protocol magic number
- "AM1" which is used to identify the type and version of the
- message.
-
- The opcode field identifies the operation represented by
- the message
-
-
-
-
- Protocol
- Exchange Patterns
-
-
-
- The following patterns are followed in the design of the
- protocol:
-
- Request-Response
-
- Query-Indication
-
- Unsolicited Indication
-
-
- The
- Request-Response Pattern
-
-
-
- In the request-response pattern, a requestor sends a
- request message to one of its peers. The peer then does
- one of two things: If the request can be successfully processed,
- a single response message is sent back to the requestor.
- This response contains the requested results and serves as the
- positive acknowledgement that the request was successfully
- completed.
-
- If the request cannot be successfully completed, the peer sends a
- command complete message back to the requestor with an
- error code and error text describing what went wrong.
-
- The sequence number in the response or command
- complete message is the same as the sequence number in the
- request.
-
-
- Requestor Peer
- | |
- | --- Request (seq) ------------------------------------------> |
- | |
- | <----------------------------------------- Response (seq) --- |
- | |
-
-
-
- Requestor Peer
- | |
- | --- Request (seq) ------------------------------------------> |
- | |
- | <-------------------------- Command Complete (seq, error) --- |
- | |
-
-
-
-
- The
- Query-Indication Pattern
-
-
-
- The query-indication pattern is used when there may be zero or
- more answers to a question. In this case, the requestor sends a
- query message to its peer. The peer processes the query,
- sending as many indication messages as needed back to the
- requestor (zero or more). Once the last indication has
- been sent, the peer then sends a command complete message
- with a success code indicating that the query is complete.
-
- If there is an error in the query, the peer may reply with
- a command complete message containg an error code. In this
- case, no indication messages may be sent.
-
- All indication and command complete messages shall
- have the same sequence number that appeared in the query
- message.
-
-
- Requestor Peer
- | |
- | --- Query (seq) --------------------------------------------> |
- | |
- | <--------------------------------------- Indication (seq) --- |
- | <--------------------------------------- Indication (seq) --- |
- | <--------------------------------------- Indication (seq) --- |
- | <--------------------------------------- Indication (seq) --- |
- | <--------------------------------------- Indication (seq) --- |
- | |
- | <------------------------ Command Complete (seq, success) --- |
- | |
-
-
-
- Requestor Peer
- | |
- | --- Query (seq) --------------------------------------------> |
- | |
- | <-------------------------- Command Complete (seq, error) --- |
- | |
-
-
-
-
- The
- Unsolicited-Indication Pattern
-
-
-
- The unsolicited-indication pattern is used when one peer needs to
- send unsolicited information to another peer, or to broadcast
- information to multiple peers via a topic exchange. In this case,
- indication messages are sent with the sequence number field set
- to zero.
-
-
- Peer Peer
- | |
- | <----------------------------------- Indication (seq = 0) --- |
- | <----------------------------------- Indication (seq = 0) --- |
- | <----------------------------------- Indication (seq = 0) --- |
- | <----------------------------------- Indication (seq = 0) --- |
- | |
-
-
-
-
-
- Object
- Identifiers
-
-
-
- Manageable objects are tagged with a unique 64-bit object
- identifier. The object identifier space is owned and managed by
- the management broker. Objects managed by a single management
- broker shall have unique object identifiers. Objects managed by
- separate management brokers may have the same object identifier.
-
- If a management console is designed to manage multiple management
- brokers, it must use the broker identifier as well as the object
- identifier to ensure global uniqueness.
-
-
- 62 48 47 24 23 0
- +-+-------------+-----------------------+-----------------------+
- |0| sequence | bank | object |
- +-+-------------+-----------------------+-----------------------+
-
- bit 63 - reserved, must be zero
- bits 63 .. 48 - broker boot sequence (32K)
- bits 47 .. 24 - bank (16M)
- bits 23 .. 0 - object (16M)
-
-
- For persistent IDs, boot-sequence is zero
-
- For non-persistent IDs, boot sequence is a constant number
- which increments each time the management broker is restarted.
-
- Bank number:
-
- 0 - reserved
-
- 1 - broker-persistent objects
-
- 2..4 - store-persistent objects
-
- > 4 - transient objects
-
-
-
-
-
-
-
-
- Establishing Communication Between Client and Agent
-
-
-
- Communication is established between the management client and
- management agent using normal AMQP procedures. The client creates
- a connection to the broker and then establishes a session with
- its corresponding channel.
-
- Two private queues are then declared (only one if method
- invocation is not needed). A management queue is declared and
- bound to the qpid.management exchange. If the binding key is
- "mgmt.#", all management-related messages sent to the exchange
- will be received by this client. A more specific binding key will
- result in a more restricted set of messages being received (see
- the section on Routing Key Structure below).
-
- If methods are going to be invoked on managed objects, a second
- private queue must be declared so the client can receive method
- replies. This queue is bound to the amq.direct exchange using a
- routing key equal to the name of the queue.
-
- When a client successfully binds to the qpid.management exchange,
- the management agent schedules a schema broadcast to be sent to
- the exchange. The agent will publish, via the exchange, a
- description of the schema for all manageable objects in its
- control.
-
-
- Client Broker
- | |
- | --- AMQP Connection and Session Setup ----------------------> |
- | |
- | --- Queue.declare (private data queue) ---------------------> |
- | --- Bind queue to exchange 'qpid.management' key 'mgmt.#' --> |
- | |
- | --- Queue.declare (private method-reply queue) -------------> |
- | --- Bind queue to exchange 'amq.direct' --------------------> |
- | |
- | --- Broker Request -----------------------------------------> |
- | <---------------------------------------- Broker Response --- |
- | |
- | |
- | |
- | <------- Management schema via exchange 'qpid.management' --- |
- | |
-
-
-
-
- Broadcast of Configuration and Instrumentation Updates
-
-
-
- The management agent will periodically publish updates to the
- configuration and instrumentation of management objects under its
- control. Under normal circumstances, these updates are published
- only if they have changed since the last time they were
- published. Configuration updates are only published if
- configuration has changed and instrumentation updates are only
- published if instrumentation has changed. The exception to this
- rule is that after a management client binds to the
- qpid.management exchange, all configuration and instrumentation
- records are published as though they had changed whether or not
- they actually did.
-
-
- Client Broker
- | |
- | <------------------ Object properties via 'mgmt.*.prop.#' --- | |
- | <------------------ Object statistics via 'mgmt.*.stat.#' --- | |
- | | |
- | | | Publish Interval
- | | |
- | | |
- | | V
- | <------------------ Object properties via 'mgmt.*.prop.#' --- |
- | <------------------ Object statistics via 'mgmt.*.stat.#' --- |
- | |
-
-
-
-
- Invoking
- a Method on a Managed Object
-
-
-
- When the management client wishes to invoke a method on a managed
- object, it sends a method request message to the qpid.management
- exchange. The routing key contains the object class and method
- name (refer to Routing Key Structure below). The method request
- must have a header entry (reply-to) that contains the name of the
- method-reply queue so that the method response can be properly
- routed back to the requestor.
-
- The method request contains a sequence number that is copied to
- the method reply. This number is opaque to the management agent
- and may be used by the management client to correlate the reply
- to the request. The asynchronous nature of requests and replies
- allows any number of methods to be in-flight at a time. Note that
- there is no guarantee that methods will be replied to in the
- order in which they were requested.
-
-
- Client Broker
- | |
- | --- Method Request (to exchange 'qpid.management') ---------> |
- | |
- | |
- | <--------------- Method Reply (via exchange 'amq.direct') --- |
- | |
-
-
-
-
-
- Messages
- for the Basic Scenario
-
-
-
- The principals in a management exchange are the management
- client and the management agent. The management
- agent is integrated into the QPID broker and the management
- client is a remote entity. A management agent may be managed by
- zero or more management clients at any given time. Additionally,
- a management client may manage multiple management agents at the
- same time.
-
- For authentication and access control, management relies on the
- mechanisms supplied by the AMQP protocol.
-
- Basic Opcodes
-
-
-
-
-
-
- opcode
-
-
- message
-
-
- description
-
-
-
-
- 'B'
-
-
- Broker Request
-
-
- This message contains a broker request, sent from the
- management console to the broker to initiate a management
- session.
-
-
-
-
- 'b'
-
-
- Broker Response
-
-
- This message contains a broker response, sent from the
- broker in response to a broker request message.
-
-
-
-
- 'z'
-
-
- Command Completion
-
-
- This message is sent to indicate the completion of a
- request.
-
-
-
-
- 'Q'
-
-
- Class Query
-
-
- Class query messages are used by a management console to
- request a list of schema classes that are known by the
- management broker.
-
-
-
-
- 'q'
-
-
- Class Indication
-
-
- Sent by the management broker, a class indication notifies
- the peer of the existence of a schema class.
-
-
-
-
- 'S'
-
-
- Schema Request
-
-
- Schema request messages are used to request the full schema
- details for a class.
-
-
-
-
- 's'
-
-
- Schema Response
-
-
- Schema response message contain a full description of the
- schema for a class.
-
-
-
-
- 'h'
-
-
- Heartbeat Indication
-
-
- This message is published once per publish-interval. It can
- be used by a client to positively determine which objects
- did not change during the interval (since updates are not
- published for objects with no changes).
-
-
-
-
- 'c', 'i', 'g'
-
-
- Content Indication
-
-
- This message contains a content record. Content records
- contain the values of all properties or statistics in an
- object. Such records are broadcast on a periodic interval
- if 1) a change has been made in the value of one of the
- elements, or 2) if a new management client has bound a
- queue to the management exchange.
-
-
-
-
- 'G'
-
-
- Get Query
-
-
- Sent by a management console, a get query requests that the
- management broker provide content indications for all
- objects that match the query criteria.
-
-
-
-
- 'M'
-
-
- Method Request
-
-
- This message contains a method request.
-
-
-
-
- 'm'
-
-
- Method Response
-
-
- This message contains a method result.
-
-
-
-
-
-
-
- Broker
- Request Message
-
-
-
- When a management client first establishes contact with the
- broker, it sends a Hello message to initiate the exchange.
-
-
- +-----+-----+-----+-----+-----------------------+
- | 'A' | 'M' | '1' | 'B' | 0 |
- +-----+-----+-----+-----+-----------------------+
-
-
- The Broker Request message has no payload.
-
-
-
-
- Broker
- Response Message
-
-
-
- When the broker receives a Broker Request message, it responds
- with a Broker Response message. This message contains an
- identifier unique to the broker.
-
-
- +-----+-----+-----+-----+-----------------------+
- | 'A' | 'M' | '1' | 'b' | 0 |
- +-----+-----+-----+-----+-----------------------+----------------------------+
- | brokerId (uuid) |
- +----------------------------------------------------------------------------+
-
-
-
-
- Command
- Completion Message
-
-
-
-
- +-----+-----+-----+-----+-----------------------+
- | 'A' | 'M' | '1' | 'z' | seq |
- +-----+-----+-----+-----+-----------------------+
- | Completion Code |
- +-----------------------+-----------------------------------------+
- | Completion Text |
- +-----------------------------------------------------------------+
-
-
-
-
-
- Class Query
-
-
-
- +-----+-----+-----+-----+-----------------------+
- | 'A' | 'M' | '1' | 'Q' | seq |
- +-----+-----+-----+-----+-----------------------+----------+
- | package name (str8) |
- +----------------------------------------------------------+
-
-
-
-
-
- Class
- Indication
-
-
-
-
- +-----+-----+-----+-----+-----------------------+
- | 'A' | 'M' | '1' | 'q' | seq |
- +-----+-----+-----+-----+-----------------------+----------+
- | package name (str8) |
- +----------------------------------------------------------+
- | class name (str8) |
- +----------------------------------------------------------+
- | schema hash (bin128) |
- +----------------------------------------------------------+
-
-
-
-
-
- Schema Request
-
-
-
-
- +-----+-----+-----+-----+-----------------------+
- | 'A' | 'M' | '1' | 'S' | seq |
- +-----+-----+-----+-----+-----------------------+----------+
- | packageName (str8) |
- +----------------------------------------------------------+
- | className (str8) |
- +----------------------------------------------------------+
- | schema-hash (bin128) |
- +----------------------------------------------------------+
-
-
-
-
- Schema
- Response
-
-
-
- +-----+-----+-----+-----+-----------------------+
- | 'A' | 'M' | '1' | 's' | seq |
- +-----+-----+-----+-----+-----------------------+----------+
- | packageName (str8) |
- +----------------------------------------------------------+
- | className (str8) |
- +----------------------------------------------------------+
- | schema-hash (bin128) |
- +-----------+-----------+-----------+-----------+----------+
- | propCnt | statCnt | methodCnt | eventCnt |
- +-----------+-----------+-----------+-----------+----------------------------+
- | propCnt property records |
- +----------------------------------------------------------------------------+
- | statCnt statistic records |
- +----------------------------------------------------------------------------+
- | methodCnt method records |
- +----------------------------------------------------------------------------+
- | eventCnt event records |
- +----------------------------------------------------------------------------+
-
-
- Each property record is an AMQP map with the following
- fields. Optional fields may optionally be omitted from the map.
-
-
-
-
- field name
-
-
- optional
-
-
- description
-
-
-
-
- name
-
-
- no
-
-
- Name of the property
-
-
-
-
- type
-
-
- no
-
-
- Type code for the property
-
-
-
-
- access
-
-
- no
-
-
- Access code for the property
-
-
-
-
- index
-
-
- no
-
-
- 1 = index element, 0 = not an index element
-
-
-
-
- optional
-
-
- no
-
-
- 1 = optional element (may be not present), 0 = mandatory
- (always present)
-
-
-
-
- unit
-
-
- yes
-
-
- Units for numeric values (i.e. seconds, bytes, etc.)
-
-
-
-
- min
-
-
- yes
-
-
- Minimum value for numerics
-
-
-
-
- max
-
-
- yes
-
-
- Maximum value for numerics
-
-
-
-
- maxlen
-
-
- yes
-
-
- Maximum length for strings
-
-
-
-
- desc
-
-
- yes
-
-
- Description of the property
-
-
-
-
- Each statistic record is an AMQP map with the following
- fields:
-
-
-
-
- field name
-
-
- optional
-
-
- description
-
-
-
-
- name
-
-
- no
-
-
- Name of the statistic
-
-
-
-
- type
-
-
- no
-
-
- Type code for the statistic
-
-
-
-
- unit
-
-
- yes
-
-
- Units for numeric values (i.e. seconds, bytes, etc.)
-
-
-
-
- desc
-
-
- yes
-
-
- Description of the statistic
-
-
-
-
- method and event records contain a main map that
- describes the method or header followed by zero or more maps
- describing arguments. The main map contains the following fields:
-
-
-
-
- field name
-
-
- optional
-
-
- description
-
-
-
-
- name
-
-
- no
-
-
- Name of the method or event
-
-
-
-
- argCount
-
-
- no
-
-
- Number of argument records to follow
-
-
-
-
- desc
-
-
- yes
-
-
- Description of the method or event
-
-
-
-
- Argument maps contain the following fields:
-
-
-
-
- field name
-
-
- method
-
-
- event
-
-
- optional
-
-
- description
-
-
-
-
- name
-
-
- yes
-
-
- yes
-
-
- no
-
-
- Argument name
-
-
-
-
- type
-
-
- yes
-
-
- yes
-
-
- no
-
-
- Type code for the argument
-
-
-
-
- dir
-
-
- yes
-
-
- no
-
-
- yes
-
-
- Direction code for method arguments
-
-
-
-
- unit
-
-
- yes
-
-
- yes
-
-
- yes
-
-
- Units for numeric values (i.e. seconds, bytes, etc.)
-
-
-
-
- min
-
-
- yes
-
-
- no
-
-
- yes
-
-
- Minimum value for numerics
-
-
-
-
- max
-
-
- yes
-
-
- no
-
-
- yes
-
-
- Maximum value for numerics
-
-
-
-
- maxlen
-
-
- yes
-
-
- no
-
-
- yes
-
-
- Maximum length for strings
-
-
-
-
- desc
-
-
- yes
-
-
- yes
-
-
- yes
-
-
- Description of the argument
-
-
-
-
- default
-
-
- yes
-
-
- no
-
-
- yes
-
-
- Default value for the argument
-
-
-
-
- type codes are numerics with the following values:
-
-
-
-
-
- Heartbeat
- Indication
-
-
-
-
- +-----+-----+-----+-----+-----------------------+
- | 'A' | 'M' | '1' | 'h' | 0 |
- +-----+-----+-----+-----+-----------------------+
- | timestamp of current interval (datetime) |
- +-----------------------------------------------+
-
-
-
-
- Configuration and Instrumentation Content Messages
-
-
-
- Content messages are published when changes are made to the
- values of properties or statistics or when new management clients
- bind a queue to the management exchange.
-
-
- +-----+-----+-----+-------+-----------------------+
- | 'A' | 'M' | '1' |'g/c/i'| seq |
- +-----+-----+-----+-------+-----------------------+--------+
- | packageName (str8) |
- +----------------------------------------------------------+
- | className (str8) |
- +----------------------------------------------------------+
- | class hash (bin128) |
- +-----+-----+-----+-----+-----+-----+-----+-----+----------+
- | timestamp of current sample (datetime) |
- +-----+-----+-----+-----+-----+-----+-----+-----+
- | time object was created (datetime) |
- +-----+-----+-----+-----+-----+-----+-----+-----+
- | time object was deleted (datetime) |
- +-----+-----+-----+-----+-----+-----+-----+-----+
- | objectId (uint64) |
- +-----+-----+-----+-----+-----+-----+-----+-----+
- | presence bitmasks (0 or more uint8 fields) |
- +-----+-----+-----+-----+-----+-----+-----+-----+------------------------+
- | config/inst values (in schema order) |
- +------------------------------------------------------------------------+
-
-
- All timestamps are uint64 values representing nanoseconds since
- the epoch (January 1, 1970). The objectId is a uint64 value that
- uniquely identifies this object instance.
-
- If any of the properties in the object are defined as optional,
- there will be 1 or more "presence bitmask" octets. There are as
- many octets as are needed to provide one bit per optional
- property. The bits are assigned to the optional properties in
- schema order (first octet first, lowest order bit first).
-
- For example: If there are two optional properties in the schema
- called "option1" and "option2" (defined in that order), there
- will be one presence bitmask octet and the bits will be assigned
- as bit 0 controls option1 and bit 1 controls option2.
-
- If the bit for a particular optional property is set (1), the
- property will be encoded normally in the "values" portion of the
- message. If the bit is clear (0), the property will be omitted
- from the list of encoded values and will be considered "NULL" or
- "not present".
-
- The element values are encoded by their type into the message in
- the order in which they appeared in the schema message.
-
-
-
-
- Get Query
- Message
-
-
-
- A Get Request may be sent by the management console to cause a
- management agent to immediately send content information for
- objects of a class.
-
-
- +-----+-----+-----+-----+-----------------------+
- | 'A' | 'M' | '1' | 'G' | seq |
- +-----+-----+-----+-----+-----------------------+----------+
- | Get request field table |
- +----------------------------------------------------------+
-
-
- The content of a get request is a field table that specifies what
- objects are being requested. Most of the fields are optional and
- are available for use in more extensive deployments.
-
-
-
-
- Field Key
-
-
- Mandatory
-
-
- Type
-
-
- Description
-
-
-
-
- "_class"
-
-
- yes
-
-
- short-string
-
-
- The name of the class of objects being requested.
-
-
-
-
- "_package"
-
-
- no
-
-
- short-string
-
-
- The name of the extension package the class belongs to. If
- omitted, the package defaults to "qpid" for access to
- objects in the connected broker.
-
-
-
-
- "_agent"
-
-
- no
-
-
- uuid
-
-
- The management agent that is the target of the request. If
- omitted, agent defaults to the connected broker.
-
-
-
-
- When the management agent receives a get request, it sends
- content messages describing the requested objects. Once the last
- content message is sent, it then sends a Command Completion
- message with the same sequence number supplied in the request to
- indicate to the requestor that there are no more messages coming.
-
-
-
-
-
- Method Request
-
-
-
- Method request messages have the following structure. The
- sequence number is opaque to the management agent. It is returned
- unchanged in the method reply so the calling client can correctly
- associate the reply to the request. The objectId is the unique ID
- of the object on which the method is to be executed.
-
-
- +-----+-----+-----+-----+-----------------------+
- | 'A' | 'M' | '1' | 'M' | seq |
- +-----+-----+-----+-----+-----------------------+
- | objectId (uint64) |
- +-----------------------------------------------+
- | methodName (str8) |
- +-----------------------------------------------+------------------------+
- | input and bidirectional argument values (in schema order) |
- +------------------------------------------------------------------------+
-
-
-
-
- Method
- Response
-
-
-
- Method reply messages have the following structure. The sequence
- number is identical to that supplied in the method request. The
- status code (and text) indicate whether or not the method was
- successful and if not, what the error was. Output and
- bidirectional arguments are only included if the status code was
- 0 (STATUS_OK).
-
-
- +-----+-----+-----+-----+-----------------------+
- | 'A' | 'M' | '1' | 'm' | seq |
- +-----+-----+-----+-----+-----------------------+
- | status code |
- +-----------------------+----------------------------------+
- | status text (str8) |
- +-----------------------+----------------------------------+-------------+
- | output and bidirectional argument values (in schema order) |
- +------------------------------------------------------------------------+
-
-
- status code values are:
-
-
-
-
- value
-
-
- description
-
-
-
-
- 0
-
-
- STATUS_OK - successful completion
-
-
-
-
- 1
-
-
- STATUS_UNKNOWN_OBJECT - objectId not found in the agent
-
-
-
-
- 2
-
-
- STATUS_UNKNOWN_METHOD - method is not known by the object
- type
-
-
-
-
- 3
-
-
- STATUS_NOT_IMPLEMENTED - method is not currently
- implemented
-
-
-
-
-
-
-
-
- Messages
- for Extended Scenario
-
-
-
- Extended
- Management Protocol
-
-
-
- Qpid supports management extensions that allow the management
- broker to be a central point for the management of multiple
- external entities with their own management schemas.
-
-
- Broker Remote Agent
- | |
- | <----------------------------------------- Attach Request --- |
- | --- Attach Response ----------------------------------------> |
- | |
- | <------------------------------------- Package Indication --- |
- | <------------------------------------- Package Indication --- |
- | |
- | <--------------------------------------- Class Indication --- |
- | <--------------------------------------- Class Indication --- |
- | <--------------------------------------- Class Indication --- |
- | <--------------------------------------- Class Indication --- |
- | <--------------------------------------- Class Indication --- |
- | |
- | --- Schema Request (class key) -----------------------------> |
- | <---------------------------------------- Schema Response --- |
- | |
- | --- Schema Request (class key) -----------------------------> |
- | <---------------------------------------- Schema Response --- |
- | |
- | |
-
-
-
-
- Extended
- Opcodes
-
-
-
-
-
-
- opcode
-
-
- message
-
-
- description
-
-
-
-
- 'P'
-
-
- Package Query
-
-
- This message contains a schema package query request,
- requesting that the broker dump the list of known packages
-
-
-
-
- 'p'
-
-
- Package Indication
-
-
- This message contains a schema package indication,
- identifying a package known by the broker
-
-
-
-
- 'A'
-
-
- Agent Attach Request
-
-
- This message is sent by a remote agent when it wishes to
- attach to a management broker
-
-
-
-
- 'a'
-
-
- Agent Attach Response
-
-
- The management broker sends this response if an attaching
- remote agent is permitted to join
-
-
-
-
- 'x'
-
-
- Console Added Indication
-
-
- This message is sent to all remote agents by the management
- broker when a new console binds to the management exchange
-
-
-
-
-
-
-
-
- Package Query
-
-
-
-
- +-----+-----+-----+-----+-----------------------+
- | 'A' | 'M' | '1' | 'P' | seq |
- +-----+-----+-----+-----+-----------------------+
-
-
-
-
- Package
- Indication
-
-
-
-
- +-----+-----+-----+-----+-----------------------+
- | 'A' | 'M' | '1' | 'p' | seq |
- +-----+-----+-----+-----+-----------------------+----------+
- | package name (str8) |
- +----------------------------------------------------------+
-
-
-
-
- Attach Request
-
-
-
- +-----+-----+-----+-----+-----------------------+
- | 'A' | 'M' | '1' | 'A' | seq |
- +-----+-----+-----+-----+-----------------------+----------+
- | label (str8) |
- +-----------------------+----------------------------------+
- | system-id (uuid) |
- +-----------------------+----------------------------------+
- | requested objId bank |
- +-----------------------+
-
-
-
-
- Attach
- Response (success)
-
-
-
-
- +-----+-----+-----+-----+-----------------------+
- | 'A' | 'M' | '1' | 'a' | seq |
- +-----+-----+-----+-----+-----------------------+
- | assigned broker bank |
- +-----------------------+
- | assigned objId bank |
- +-----------------------+
-
-
-
-
- Console Added
- Indication
-
-
-
-
- +-----+-----+-----+-----+-----------------------+
- | 'A' | 'M' | '1' | 'x' | seq |
- +-----+-----+-----+-----+-----------------------+
-
-
-
-
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/old/NET-User-Guide.xml b/qpid/doc/book/src/old/NET-User-Guide.xml
deleted file mode 100644
index 7bfa20b8c8..0000000000
--- a/qpid/doc/book/src/old/NET-User-Guide.xml
+++ /dev/null
@@ -1,1383 +0,0 @@
-
-
-
-
-
- Apache Qpid: Open Source AMQP Messaging - .NET User Guide
-
-
-
- Tutorial
-
-
- This tutorial consists of a series of examples using the three
- most commonly used exchange types - Direct, Fanout and
- Topic
- exchanges. These examples show how to write applications that use
- the most common messaging paradigms.
-
-
-
- direct
- In the direct examples, a message producer writes to the direct
- exchange, specifying a routing key. A message consumer reads
- messages from a named queue. This illustrates clean separation
- of concerns - message producers need to know only the exchange
- and the routing key, message consumers need to know only which
- queue to use on the broker.
-
-
-
- fanout
- The fanout examples use a fanout exchange and do not use
- routing keys. Each binding specifies that all messages for a
- given exchange should be delivered to a given queue.
-
-
-
- pub-sub
- In the publish/subscribe examples, a publisher
- application writes messages to an exchange, specifying a
- multi-part key. A subscriber application subscribes to
- messages that match the relevant parts of these keys, using a
- private queue for each subscription.
-
-
-
- request-response
- In the request/response examples, a simple service accepts
- requests from clients and sends responses back to them. Clients
- create their own private queues and corresponding routing keys.
- When a client sends a request to the server, it specifies its
- own routing key in the reply-to field of the request. The
- server uses the client's reply-to field as the routing key for
- the response.
-
-
-
-
-
- Running the
- Examples
-
-
- Before running the examples, you need to unzip the file
- Qpid.NET-net-2.0-M4.zip, the following tree is created:
-
-
-
-
-<home>
- |-qpid
- |-lib (contains the required dlls)
- |-examples
- |- direct
- | |-example-direct-Listener.exe
- | |-example-direct-Producer.exe
- |- fanout
- | |-example-fanout-Listener.exe
- | |-example-fanout-Producer.exe
- |- pub-sub
- | |-example-pub-sub-Listener.exe
- | |-example-pub-sub-Publisher.exe
- |- request-response
- |-example-request-response-Client.exe
- |-example-request-response-Server.exe
-
-
-
-
- Make sure your PATH contains the directory
- <home>/qpid/lib
- The examples can be run by executing the provided exe files:
-
-
-
-
-$ cd <home>/qpid/examples/examplefolder
-$ example-...-.exe [hostname] [portnumber]
-
-
-
-
- where [hostname] is the qpid broker host name
- (default is localhost) and [portnumber] is the port number on which the
- qpid broker is accepting connection (default is 5672).
-
-
-
-
-
-
- Creating
- and Closing Sessions
-
-
-
- All of the examples have been written using the Apache Qpid .NEt
- 0.10 API. The examples use the same skeleton code to initialize
- the program, create a session, and clean up before exiting:
-
-
-
-
-using System;
-using System.IO;
-using System.Text;
-using System.Threading;
-using org.apache.qpid.client;
-using org.apache.qpid.transport;
-
-...
-
- private static void Main(string[] args)
- {
- string host = args.Length > 0 ? args[0] : "localhost";
- int port = args.Length > 1 ? Convert.ToInt32(args[1]) : 5672;
- Client connection = new Client();
- try
- {
- connection.connect(host, port, "test", "guest", "guest");
- ClientSession session = connection.createSession(50000);
-
- //--------- Main body of program --------------------------------------------
-
- connection.close();
- }
- catch (Exception e)
- {
- Console.WriteLine("Error: \n" + e.StackTrace);
- }
- }
-...
-
-
-
-
-
-
- Writing
- Direct Applications
-
-
-
- This section describes two programs that implement direct
- messaging using a Direct exchange:
- • org.apache.qpid.example.direct.Producer (from
- example-direct-producer) publishes messages to the amq.direct
- exchange, using the routing key routing_key.
- •org.apache.qpid.example.direct.Listener (from
- example-direct-Listener) uses a message listener to receive
- messages from the queue named message_queue.
-
-
-
- Running the
- Direct Examples
-
-
- 1) Make sure your PATH contains the directory
- <home>/qpid/lib
-
-
- 2) Make sure that a qpid broker is running:
-
-
-
-
-$ ps -eaf | grep qpidd
-
-
-
-
- If a broker is running, you should see the qpidd process in the
- output of the above
- command.
-
-
- 3) Read the messages from the message queue using direct
- listener, as follows:
-
-
-
-
-$ cd <home>/qpid/examples/direct
-
-
-
-
- With cygwin:
-
-
-
-
-$ ./example-direct-Listener.exe [hostname] [portnumber]
-
-
-
-
- or with mono:
-
-
-
-
-$ mono ./example-direct-Listener.exe [hostname] [portnumber]
-
-
-
-
- This program is waiting for messages to be published, see next
- step:
-
-
- 4) Publish a series of messages to the amq.direct exchange by
- running direct producer, as follows:
-
-
-
-
-$ cd <home>/qpid/examples/direct
-
-
-
-
- With cygwin:
-
-
-
-
-$ ./example-direct-Producer.exe [hostname] [portnumber]
-
-
-
-
- or with mono:
-
-
-
-
-$ mono ./example-direct-Producer.exe [hostname] [portnumber]
-
-
-
-
- This program has no output; the messages are routed to the
- message queue, as instructed by the binding.
-
-
- 5) Go to the windows where you are running your listener. You
- should see the following output:
-
-
-
-
-Message: Message 0
-Message: Message 1
-Message: Message 2
-Message: Message 3
-Message: Message 4
-Message: Message 5
-Message: Message 6
-Message: Message 7
-Message: Message 8
-Message: Message 9
-Message: That's all, folks!
-
-
-
-
- Now we will examine the code for each of these programs. In each
- section, we will discuss only
- the code that must be added to the skeleton shown in Section
- "Creating and Closing Sessions".
-
-
-
-
-
-
- Reading
- Messages from the Queue
-
-
-
- The program , listener.cs, is a message listener that receives
- messages from a queue.
-
-
- First it creates a queue named message_queue, then binds it to
- the amq.direct exchange using the binding key routing_key.
-
-
-
-
-//--------- Main body of program --------------------------------------------
-// Create a queue named "message_queue", and route all messages whose
-// routing key is "routing_key" to this newly created queue.
-session.queueDeclare("message_queue");
-session.exchangeBind("message_queue", "amq.direct", "routing_key");
-
-
-
-
- The queue created by this program continues to exist after the
- program exits, and any message whose routing key matches the key
- specified in the binding will be routed to the corresponding
- queue by the broker. Note that the queue could have been be
- deleted using the following code:
-
-
-
-
-session.queueDelete("message_queue");
-
-
-
-
- To create a message listener, create a class derived from
- IMessageListener, and override the messageTransfer method,
- providing the code that should be executed when a message is
- received.
-
-
-
-
-public class MessageListener : IMessageListener
-{
- ......
- public void messageTransfer(IMessage m)
- {
- .....
-}
-
-
-
-
- The main body of the program creates a listener for the
- subscription; attaches the listener to a message queue; and
- subscribe to the queue to receive messages from the queue.
-
-
-
-
-lock (session)
-{
- // Create a listener and subscribe it to the queue named "message_queue"
- IMessageListener listener = new MessageListener(session);
- session.attachMessageListener(listener, "message_queue");
- session.messageSubscribe("message_queue");
- // Receive messages until all messages are received
- Monitor.Wait(session);
-}
-
-
-
-
- The MessageListener's messageTransfer() function is called
- whenever a message is received. In this example the message is
- printed and tested to see if it is the final message. Once the
- final message is received, the messages are acknowledged.
-
-
-
-
-BinaryReader reader = new BinaryReader(m.Body, Encoding.UTF8);
-byte[] body = new byte[m.Body.Length - m.Body.Position];
-reader.Read(body, 0, body.Length);
-ASCIIEncoding enc = new ASCIIEncoding();
-string message = enc.GetString(body);
- Console.WriteLine("Message: " + message);
-// Add this message to the list of message to be acknowledged
-_range.add(m.Id);
-if( message.Equals("That's all, folks!") )
-{
- // Acknowledge all the received messages
- _session.messageAccept(_range);
- lock(_session)
- {
- Monitor.Pulse(_session);
- }
-}
-
-
-
-
-
-
- Publishing
- Messages to a Direct Exchange
-
-
- The second program in the direct example, Producer.cs, publishes
- messages to the amq.direct exchange using the routing key
- routing_key.
-
-
- First, create a message and set a routing key. The same routing
- key will be used for each message we send, so you only need to
- set this property once.
-
-
-
-
-IMessage message = new Message();
-// The routing key is a message property. We will use the same
-// routing key for each message, so we'll set this property
-// just once. (In most simple cases, there is no need to set
-// other message properties.)
-message.DeliveryProperties.setRoutingKey("routing_key");
-
-
-
-
- Now send some messages:
-
-
-
-
-// Asynchronous transfer sends messages as quickly as
-// possible without waiting for confirmation.
-for (int i = 0; i < 10; i++)
-{
- message.clearData();
- message.appendData(Encoding.UTF8.GetBytes("Message " + i));
- session.messageTransfer("amq.direct", message);
-}
-
-
-
-
- Send a final synchronous message to indicate termination:
-
-
-
-
-// And send a syncrhonous final message to indicate termination.
-message.clearData();
-message.appendData(Encoding.UTF8.GetBytes("That's all, folks!"));
-session.messageTransfer("amq.direct", "routing_key", message);
-session.sync();
-
-
-
-
-
-
-
-
-
-
- Writing
- Fanout Applications
-
-
-
- This section describes two programs that illustrate the use of a
- Fanout exchange.
-
-
-
- Listener.cs makes a unique queue private for each instance of
- the listener, and binds that queue to the fanout exchange. All
- messages sent to the fanout exchange are delivered to each
- listener's queue.
-
-
-
- Producer.cs publishes messages to the fanout exchange. It
- does not use a routing key, which is not needed by the fanout
- exchange.
-
-
-
-
-
- Running the
- Fanout Examples
-
-
-
- 1) Make sure your PATH contains the directory
- <home>/qpid/lib
-
-
- 2) Make sure that a qpid broker is running:
-
-
-
-
-$ ps -eaf | grep qpidd
-
-
-
-
- If a broker is running, you should see the qpidd process in the
- output of the above
- command.
-
-
- 3) In separate windows, start one or more fanout listeners as
- follows:
-
-
-
-
-$ cd <home>/qpid/examples/direct
-
-
-
-
- With cygwin:
-
-
-
-
-$ ./example-fanout-Listener.exe [hostname] [portnumber]
-
-
-
-
- or with mono:
-
-
-
-
-$ mono ./example-fanout-Listener.exe [hostname] [portnumber]
-
-
-
-
- The listener creates a private queue, binds it to the amq.fanout
- exchange, and waits for messages to arrive on the queue. When the
- listener starts, you will see the following message:
-
-
-
-
-Listening
-
-
-
-
- This program is waiting for messages to be published, see next
- step:
-
-
- 4) In a separate window, publish a series of messages to the
- amq.fanout exchange by running fanout producer, as follows:
-
-
-
-
-$ cd <home>/qpid/examples/direct
-
-
-
-
- With cygwin:
-
-
-
-
-$ ./example-fanout-Producer.exe [hostname] [portnumber]
-
-
-
-
- or with mono:
-
-
-
-
-$ mono ./example-fanout-Producer.exe [hostname] [portnumber]
-
-
-
-
- This program has no output; the messages are routed to the
- message queue, as prescribed by the binding.
-
-
- 5) Go to the windows where you are running listeners. You should
- see the following output for each listener:
-
-
-
-
-Message: Message 0
-Message: Message 1
-Message: Message 2
-Message: Message 3
-Message: Message 4
-Message: Message 5
-Message: Message 6
-Message: Message 7
-Message: Message 8
-Message: Message 9
-Message: That's all, folks!
-
-
-
-
- Now we will examine the code for each of these programs. In each
- section, we will discuss only
- the code that must be added to the skeleton shown in Section
- "Creating and Closing Sessions".
-
-
-
-
-
-
-
-
-
-
- Consuming from a
- Fanout Exchange
-
-
-
- The first program in the fanout example, Listener.cs, creates a
- private queue, binds it to the amq.fanout exchange, and waits for
- messages to arrive on the queue, printing them out as they
- arrive. It uses a Listener that is identical to the one used in
- the direct example:
-
-
-
-
- public class MessageListener : IMessageListener
- {
- private readonly ClientSession _session;
- private readonly RangeSet _range = new RangeSet();
- public MessageListener(ClientSession session)
- {
- _session = session;
- }
-
- public void messageTransfer(IMessage m)
- {
- BinaryReader reader = new BinaryReader(m.Body, Encoding.UTF8);
- byte[] body = new byte[m.Body.Length - m.Body.Position];
- reader.Read(body, 0, body.Length);
- ASCIIEncoding enc = new ASCIIEncoding();
- string message = enc.GetString(body);
- Console.WriteLine("Message: " + message);
- // Add this message to the list of message to be acknowledged
- _range.add(m.Id);
- if (message.Equals("That's all, folks!"))
- {
- // Acknowledge all the received messages
- _session.messageAccept(_range);
- lock (_session)
- {
- Monitor.Pulse(_session);
- }
- }
- }
- }
-
-
-
-
- The listener creates a private queue to receive its messages and
- binds it to the fanout exchange:
-
-
-
-
-string myQueue = session.Name;
-session.queueDeclare(myQueue, Option.EXCLUSIVE, Option.AUTO_DELETE);
-session.exchangeBind(myQueue, "amq.fanout", "my-key");
-
-
-
-
- Now we create a listener and subscribe it to the queue:
-
-
-
-
-lock (session)
-{
- Console.WriteLine("Listening");
- // Create a listener and subscribe it to my queue.
- IMessageListener listener = new MessageListener(session);
- session.attachMessageListener(listener, myQueue);
- session.messageSubscribe(myQueue);
- // Receive messages until all messages are received
- Monitor.Wait(session);
-}
-
-
-
-
-
- Publishing
- Messages to the Fanout Exchange
-
-
-
- The second program in this example, Producer.cs, writes messages
- to the fanout queue.
-
-
-
-
-// Unlike topic exchanges and direct exchanges, a fanout
-// exchange need not set a routing key.
-IMessage message = new Message();
-// Asynchronous transfer sends messages as quickly as
-// possible without waiting for confirmation.
-for (int i = 0; i < 10; i++)
-{
- message.clearData();
- message.appendData(Encoding.UTF8.GetBytes("Message " + i));
- session.messageTransfer("amq.fanout", message);
-}
-
-// And send a syncrhonous final message to indicate termination.
-message.clearData();
-message.appendData(Encoding.UTF8.GetBytes("That's all, folks!"));
-session.messageTransfer("amq.fanout", message);
-session.sync();
-
-
-
-
-
-
-
-
-
-
- Writing
- Publish/Subscribe Applications
-
-
-
- This section describes two programs that implement
- Publish/Subscribe messaging using a topic exchange.
-
-
- • Publisher.cS sends messages to the amq.topic exchange,
- using the multipart routing keys usa.news, usa.weather,
- europe.news, and europe.weather.
- • Listener.cs creates private queues for news, weather,
- usa, and europe, binding them to the amq.topic exchange using
- bindings that match the corresponding parts of the multipart
- routing keys.
-
-
- In this example, the publisher creates messages for topics like
- news, weather, and sports that happen in regions like Europe,
- Asia, or the United States. A given consumer may be interested in
- all weather messages, regardless of region, or it may be
- interested in news and weather for the United States, but
- uninterested in items for other regions. In this example, each
- consumer sets up its own private queues, which receive precisely
- the messages that particular consumer is interested in.
-
-
-
- Running
- the Publish-Subscribe Examples
-
-
- 1) Make sure your PATH contains the directory
- <home>/qpid/lib
-
-
- 2) Make sure that a qpid broker is running:
-
-
-
-
-$ ps -eaf | grep qpidd
-
-
-
-
- If a broker is running, you should see the qpidd process in the
- output of the above
- command.
-
-
- 3) In separate windows, start one or more topic subscribers as
- follows:
-
-
-
-
-$ cd <home>/qpid/examples/direct
-
-
-
-
- With cygwin:
-
-
-
-
-$ ./example-pub-sub--Listener.exe [hostname] [portnumber]
-
-
-
-
- or with mono:
-
-
-
-
-$ mono ./example-pub-sub-Listener.exe [hostname] [portnumber]
-
-
-
-
- You will see output similar to this:
-
-
-
-
-Listening for messages ...
-Declaring queue: usa
-Declaring queue: europe
-Declaring queue: news
-Declaring queue: weather
-
-
-
-
- Each topic consumer creates a set of private queues, and binds
- each queue to the amq.topic exchange together with a binding that
- indicates which messages should be routed to the queue.
-
-
- 4) In another window, start the topic publisher, which publishes
- messages to the amq.topic exchange, as follows:
-
-
-
-
-$ cd <home>/qpid/examples/direct
-
-
-
-
- With cygwin:
-
-
-
-
-$ ./example-pub-sub-Producer.exe [hostname] [portnumber]
-
-
-
-
- or with mono:
-
-
-
-
-$ mono ./example-pub-sub-Producer.exe [hostname] [portnumber]
-
-
-
-
- This program has no output; the messages are routed to the
- message queues for each topic_consumer as specified by the
- bindings the consumer created.
-
-
- 5) Go back to the window for each topic consumer. You should see
- output like this:
-
-
-
-
-Message: Message 0 from usa
-Message: Message 0 from news
-Message: Message 0 from weather
-Message: Message 1 from usa
-Message: Message 1 from news
-Message: Message 2 from usa
-Message: Message 2 from news
-Message: Message 3 from usa
-Message: Message 3 from news
-Message: Message 4 from usa
-Message: Message 4 from news
-Message: Message 5 from usa
-Message: Message 5 from news
-Message: Message 6 from usa
-Message: Message 6 from news
-Message: Message 7 from usa
-Message: Message 7 from news
-Message: Message 8 from usa
-Message: Message 8 from news
-Message: Message 9 from usa
-....
-Message: That's all, folks! from weather
-Shutting down listener for control
-Message: That's all, folks! from europe
-Shutting down listener for control
-
-
-
-
- Now we will examine the code for each of these programs. In each
- section, we will discuss only
- the code that must be added to the skeleton shown in Section
- "Creating and Closing Sessions".
-
-
-
-
-
-
-
- Publishing
- Messages to a Topic Exchange
-
-
-
- The first program in the publish/subscribe example, Publisher.cs,
- defines two new functions: one that publishes messages to the
- topic exchange, and one that indicates that no more messages are
- coming.
-
-
- The publishMessages function publishes a series of five messages
- using the specified routing key.
-
-
-
-
-private static void publishMessages(ClientSession session, string routing_key)
-{
- IMessage message = new Message();
- // Asynchronous transfer sends messages as quickly as
- // possible without waiting for confirmation.
- for (int i = 0; i < 10; i++)
- {
- message.clearData();
- message.appendData(Encoding.UTF8.GetBytes("Message " + i));
- session.messageTransfer("amq.topic", routing_key, message);
- }
-}
-
-
-
-
- The noMoreMessages function signals the end of messages using the
- control routing key, which is reserved for control messages.
-
-
-
-
-private static void noMoreMessages(ClientSession session)
-{
- IMessage message = new Message();
- // And send a syncrhonous final message to indicate termination.
- message.clearData();
- message.appendData(Encoding.UTF8.GetBytes("That's all, folks!"));
- session.messageTransfer("amq.topic", "control", message);
- session.sync();
-}
-
-
-
-
- In the main body of the program, messages are published using
- four different routing keys, and then the end of messages is
- indicated by a message sent to a separate routing key.
-
-
-
-
-publishMessages(session, "usa.news");
-publishMessages(session, "usa.weather");
-publishMessages(session, "europe.news");
-publishMessages(session, "europe.weather");
-
-noMoreMessages(session);
-
-
-
-
-
-
- Reading
- Messages from the Queue
-
-
-
- The second program in the publish/subscribe example, Listener.cs,
- creates a local private queue, with a unique name, for each of
- the four binding keys it specifies: usa.#, europe.#, #.news, and
- #.weather, and creates a listener.
-
-
-
-
-Console.WriteLine("Listening for messages ...");
-// Create a listener
-prepareQueue("usa", "usa.#", session);
-prepareQueue("europe", "europe.#", session);
-prepareQueue("news", "#.news", session);
-prepareQueue("weather", "#.weather", session);
-
-
-
-
- The prepareQueue() method creates a queue using a queue name and
- a routing key supplied as arguments it then attaches a listener
- with the session for the created queue and subscribe for this
- receiving messages from the queue:
-
-
-
-
-// Create a unique queue name for this consumer by concatenating
-// the queue name parameter with the Session ID.
-Console.WriteLine("Declaring queue: " + queue);
-session.queueDeclare(queue, Option.EXCLUSIVE, Option.AUTO_DELETE);
-
-// Route messages to the new queue if they match the routing key.
-// Also route any messages to with the "control" routing key to
-// this queue so we know when it's time to stop. A publisher sends
-// a message with the content "That's all, Folks!", using the
-// "control" routing key, when it is finished.
-
-session.exchangeBind(queue, "amq.topic", routing_key);
-session.exchangeBind(queue, "amq.topic", "control");
-
-// subscribe the listener to the queue
-IMessageListener listener = new MessageListener(session);
-session.attachMessageListener(listener, queue);
-session.messageSubscribe(queue);
-
-
-
-
-
-
-
-
- Writing
- Request/Response Applications
-
-
-
- In the request/response examples, we write a server that accepts
- strings from clients and converts them to upper case, sending the
- result back to the requesting client. This example consists of
- two programs.
-
-
-
- Client.cs is a client application that sends messages to the
- server.
- • Server.cs is a service that accepts messages, converts
- their content to upper case, and sends the result to the
- amq.direct exchange, using the request's reply-to property as
- the routing key for the response.
-
-
-
-
-
- Running
- the Request/Response Examples
-
-
- 1) Make sure your PATH contains the directory
- <home>/qpid/lib
-
-
- 2) Make sure that a qpid broker is running:
-
-
-
-
-$ ps -eaf | grep qpidd
-
-
-
-
- If a broker is running, you should see the qpidd process in the
- output of the above
- command.
-
-
- 3) Run the server.
-
-
- $ cd <home>/qpid/examples/direct
-
-
-
-
- With cygwin:
-
-
-
-
- $ ./example-request-response-Server.exe [hostname] [portnumber]
-
-
-
-
- or with mono:
-
-
-
-
- $ mono ./example-request-response-Server.exe [hostname] [portnumber]
-
-
-
-
- You will see output similar to this:
-
-
-
-
- Waiting for requests
-
-
-
-
-4) In a separate window, start a client:
-
-$ cd <home>/qpid/examples/direct
-
-
-
-
- With cygwin:
-
-
-
-
-$ ./example-request-response-Client.exe [hostname] [portnumber]
-
-
-
-
- or with mono:
-
-
-
-
-$ mono ./example-request-response-Client.exe [hostname] [portnumber]
-
-
-
-
- You will see output similar to this:
-
-
-
-
-Activating response queue listener for: clientSystem.Byte[]
-Waiting for all responses to arrive ...
-Response: TWAS BRILLIG, AND THE SLITHY TOVES
-Response: DID GIRE AND GYMBLE IN THE WABE.
-Response: ALL MIMSY WERE THE BOROGROVES,
-Response: AND THE MOME RATHS OUTGRABE.
-Shutting down listener for clientSystem.Byte[]
-Response: THAT'S ALL, FOLKS!
-
-
-
-
- 4) Go back to the server window, the output should be similar to
- this:
-
-
-
-
-Waiting for requests
-Request: Twas brillig, and the slithy toves
-Request: Did gire and gymble in the wabe.
-Request: All mimsy were the borogroves,
-Request: And the mome raths outgrabe.
-Request: That's all, folks!
-
-
-
-
- Now we will examine the code for each of these programs. In each
- section, we will discuss only the code that must be added to the
- skeleton shown in Section "Creating and Closing Sessions".
-
-
-
-
-
-
-
- The Client
- Application
-
-
-
- The first program in the request-response example, Client.cs,
- sets up a private response queue to receive responses from the
- server, then sends messages the server, listening to the response
- queue for the server's responses.
-
-
-
-
-string response_queue = "client" + session.getName();
-// Use the name of the response queue as the routing key
-session.queueDeclare(response_queue);
-session.exchangeBind(response_queue, "amq.direct", response_queue);
-
-// Create a listener for the response queue and listen for response messages.
-Console.WriteLine("Activating response queue listener for: " + response_queue);
-IMessageListener listener = new ClientMessageListener(session);
-session.attachMessageListener(listener, response_queue);
-session.messageSubscribe(response_queue);
-
-
-
-
- Set some properties that will be used for all requests. The
- routing key for a request is request.
- The reply-to property is set to the routing key for the client's
- private queue.
-
-
-
-
-IMessage request = new Message();
-request.DeliveryProperties.setRoutingKey("request");
-request.MessageProperties.setReplyTo(new ReplyTo("amq.direct", response_queue));
-
-
-
-
- Now send some requests...
-
-
-
-
-string[] strs = {
- "Twas brillig, and the slithy toves",
- "Did gire and gymble in the wabe.",
- "All mimsy were the borogroves,",
- "And the mome raths outgrabe.",
- "That's all, folks!"
- };
-foreach (string s in strs)
-{
- request.clearData();
- request.appendData(Encoding.UTF8.GetBytes(s));
- session.messageTransfer("amq.direct", request);
-}
-
-
-
-
- And wait for responses to arrive:
-
-
-
-
-Console.WriteLine("Waiting for all responses to arrive ...");
-Monitor.Wait(session);
-
-
-
-
-
-
- The Server
- Application
-
-
-
- The second program in the request-response example, Server.cs,
- uses the reply-to property as the routing key for responses.
-
-
- The main body of Server.cs creates an exclusive queue for
- requests, then waits for messages to arrive.
-
-
-
-
-const string request_queue = "request";
-// Use the name of the request queue as the routing key
-session.queueDeclare(request_queue);
-session.exchangeBind(request_queue, "amq.direct", request_queue);
-
-lock (session)
-{
- // Create a listener and subscribe it to the request_queue
- IMessageListener listener = new MessageListener(session);
- session.attachMessageListener(listener, request_queue);
- session.messageSubscribe(request_queue);
- // Receive messages until all messages are received
- Console.WriteLine("Waiting for requests");
- Monitor.Wait(session);
-}
-
-
-
-
- The listener's messageTransfer() method converts the request's
- content to upper case, then sends a response to the broker, using
- the request's reply-to property as the routing key for the
- response.
-
-
-
-
-BinaryReader reader = new BinaryReader(request.Body, Encoding.UTF8);
-byte[] body = new byte[request.Body.Length - request.Body.Position];
-reader.Read(body, 0, body.Length);
-ASCIIEncoding enc = new ASCIIEncoding();
-string message = enc.GetString(body);
-Console.WriteLine("Request: " + message);
-
-// Transform message content to upper case
-string responseBody = message.ToUpper();
-
-// Send it back to the user
-response.clearData();
-response.appendData(Encoding.UTF8.GetBytes(responseBody));
-_session.messageTransfer("amq.direct", routingKey, response);
-
-
-
-
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/old/PythonBrokerTest.xml b/qpid/doc/book/src/old/PythonBrokerTest.xml
deleted file mode 100644
index ae7edade40..0000000000
--- a/qpid/doc/book/src/old/PythonBrokerTest.xml
+++ /dev/null
@@ -1,98 +0,0 @@
-
-
-
-
-
- PythonBrokerTest
-
-
-
- Python Broker System Test Suite
-
-
- This is a suite of python client tests that exercise and verify
- broker functionality. Python allows us to rapidly develop client
- test scenarios and provides a 'neutral' set of tests that can run
- against any AMQP-compliant broker.
-
-
- The python/tests directory contains a collection of python
- modules, each containing several unittest classes, each
- containing a set of test methods that represent some test
- scenario. Test classes inherit qpid.TestBas from
- qpid/testlib.py, it inherits unittest.TestCase
- but adds some qpid-specific setUp/tearDown and
- convenience functions.
-
-
- TODO: get pydoc generated up to qpid wiki or website
- automatically?
-
-
-
- Running the tests
-
-
- Simplest way to run the tests:
-
-
-
- Run a broker on the default port
-
-
-
-
- ./run_tests
-
-
-
-
- For additional options: ./run_tests --help
-
-
-
-
-
-
- Expected failures
-
-
- Until we complete functionality, tests may fail because the
- tested functionality is missing in the broker. To skip
- expected failures in the C++ or Java brokers:
-
-
-./run_tests -I cpp_failing.txt
-./run_tests -I java_failing.txt
-
-
- If you fix a failure, please remove it from the corresponding
- list.
-
-
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/old/QMan-Qpid-Management-bridge.xml b/qpid/doc/book/src/old/QMan-Qpid-Management-bridge.xml
deleted file mode 100644
index f2c366dcbb..0000000000
--- a/qpid/doc/book/src/old/QMan-Qpid-Management-bridge.xml
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-
-
- QMan - Qpid Management bridge
-
- QMan
- : Qpid Management Bridge
-
-
- QMan is a management bridge for Qpid. It allows external clients
- to manage and monitor one or more Qpid brokers.
-
-
- Please note: All WS-DM related concerns have to be considered
- part of M5 release.
-
- QMan exposes the broker management interfaces using Java
- Management Extensions (JMX) and / or OASIS Web Services
- Distributed Management (WSDM). While the first one is supposed to
- be used by java based clients only the latter is an interoperable
- protocol that enables management clients to access and receive
- notifications of management-enabled resources using Web Services.
-
- QMan can be easily integrated in your preexisting system in
- different ways :
-
- As a standalone application : in this case it runs as a
- server. More specifically it enables communication via RMI (for
- JMX) or via HTTP (for WS-DM); Note that when the WS-DM adapter is
- used the JMX interface is not exposed;
-
- As a deployable unit : it is also available as a standard
- Java web application (war); This is useful when there's a
- preexisting Application Server in your environment and you don't
- want start another additional server in order to run QMan.
-
-
-
-
- User
- Documentation
-
-
- With "User Documentation" we mean all information that you need
- to know in order to use QMan from a user perspective. Those
- information include :
-
-
-
-
-
- Technical
- Documentation
-
-
- If you are interested in technical details about QMan and related
- technologies this is a good starting point. In general this
- section provides information about QMan design, interfaces,
- patterns and so on...
-
-
-
-
-
-
- Section
-
-
- Description
-
-
-
-
-
-
-
- A short introduction about QMan deployment context.
-
-
-
-
-
-
-
- Describes QMan components, their interactions and
- responsibilities.
-
-
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/old/Qpid-ACLs.xml b/qpid/doc/book/src/old/Qpid-ACLs.xml
deleted file mode 100644
index a2b64061c3..0000000000
--- a/qpid/doc/book/src/old/Qpid-ACLs.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-
- Qpid ACL Formats
-
- The Qpid project has two ACL implementations currently. The java broker
- has a simple XML configuration mechanism icluded as part of the main
- broker configuration. The C++ broker and the latest versions of the Java
- broker also have a new, text based ACL file format.
-
- Specifications
-
- The specifications for each of the ACL formats are linked here:
-
-
-
-
-
- User Guides
-
- To aid users in defining their ACLs we have a user guide for each
- of the ACL formats and a page describing the security plugin mechanism in the Java broker.
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/old/Qpid-Book.xml b/qpid/doc/book/src/old/Qpid-Book.xml
deleted file mode 100644
index ee69532152..0000000000
--- a/qpid/doc/book/src/old/Qpid-Book.xml
+++ /dev/null
@@ -1,93 +0,0 @@
-
-
-
-
-
-
-
-
-
- Basics
-
-
-
-
-
-
-
-
-
-
-
- AMQP Messaging Clients Clients
-
-
-
-
-
-
-
-
- Appendices
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/old/Qpid-Compatibility-And-Interoperability-Book.xml b/qpid/doc/book/src/old/Qpid-Compatibility-And-Interoperability-Book.xml
deleted file mode 100644
index f382f390c7..0000000000
--- a/qpid/doc/book/src/old/Qpid-Compatibility-And-Interoperability-Book.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
-
-
- AMQP Compatibility
-
-
-
- Qpid Interoperability Documentation
-
-
-
diff --git a/qpid/doc/book/src/old/SASL-Compatibility.xml b/qpid/doc/book/src/old/SASL-Compatibility.xml
deleted file mode 100644
index ad223792b5..0000000000
--- a/qpid/doc/book/src/old/SASL-Compatibility.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-
-h2. Qpid Interoperability Documentation
-
-This page documents the various interoperable features of the Qpid clients.
-
-
-h3. SASL
-{anchor:sasl}
-h4. Standard Mechanisms
-[SASL Mechanisms |http://en.wikipedia.org/wiki/Simple_Authentication_and_Security_Layer#SASL_Mechanisms]
-
-This table list the various SASL mechanisms that each component supports. The version listed shows when this
-functionality was added to the product.
-
-|| Component || ANONYMOUS || CRAM-MD5 || DIGEST-MD5 || EXTERNAL || GSSAPI/Kerberos || PLAIN ||
-| C++ Broker |M3 |M3 | M3 |0.8\[[#1]\]|M3 | M1 |
-| C++ Client |M3 |0.5 | 0.5 |0.8\[[#1]\]| | M1 |
-| Java Broker | | M1 | | | | M1 |
-| Java Client | | M1 | | M1 | | M1 |
-| .Net Client | M2 | M2 | M2 | M2 | | M2 |
-| Python Client |0.6\[[#2]\]|0.6\[[#2]\]|0.6\[[#2]\] |0.6\[[#2]\]|0.6\[[#2]\] | M4 |
-| Ruby Client |0.6\[[#2]\]|0.6\[[#2]\]|0.6\[[#2]\] |0.6\[[#2]\]|0.6\[[#2]\] | M4 |
-
-{anchor:1}
-1: Only enabled for client authenticated SSL connections.
-{anchor:2}
-2: On linux only via cyrus-sasl integration.
-
-h4. Custom Mechanisms
-
-There have been some custom mechanisms added to our implementations.
-
-|| Component || AMQPLAIN || CRAM-MD5-HASHED ||
-| C++ Broker | | |
-| C++ Client | | |
-| Java Broker | M1 | M2 |
-| Java Client | M1 | M2 |
-| .Net Client | | |
-| Python Client | M2 | |
-| Ruby Client | M2 | |
-
-
-h5. AMQPLAIN
-
-h5. CRAM-MD5-HASHED
-
-The Java SASL implementations require that you have the password of the user to validate the incoming request. This then means that the user's password must be stored on disk. For this to be secure either the broker must encrypt the password file or the need for the password being stored must be removed.
-
-The CRAM-MD5-HASHED SASL plugin removes the need for the plain text password to be stored on disk. The mechanism defers all functionality to the build in CRAM-MD5 module the only change is on the client side where it generates the hash of the password and uses that value as the password. This means that the Java Broker only need store the password hash on the file system. While a one way hash is not very secure compared to other forms of encryption in environments where the having the password in plain text is unacceptable this will provide and additional layer to protect the password. In particular this offers some protection where the same password may be shared amongst many systems. It offers no real extra protection against attacks on the broker (the secret is now the hash rather than the password).
-
-
diff --git a/qpid/doc/book/src/old/SSL.xml b/qpid/doc/book/src/old/SSL.xml
deleted file mode 100644
index a9a5cb953a..0000000000
--- a/qpid/doc/book/src/old/SSL.xml
+++ /dev/null
@@ -1,180 +0,0 @@
-
-
-
-
- SSL
-
-
-
- SSL How to
-
-
-
- C++ broker (M4 and up)
-
-
- You need to get a certificate signed by a CA, trusted by your
- client.
-
-
- If you require client authentication, the clients certificate
- needs to be signed by a CA trusted by the broker.
-
-
- Setting up the certificates for testing.
-
- For testing purposes you could use the to setup your certificates.
-
- In summary you need to create a root CA and import it to
- the brokers certificate data base.
-
- Create a certificate for the broker, sign it using the
- root CA and then import it into the brokers certificate data
- base.
-
-
-
-
- Load the acl module using --load-module or if loading more
- than one module, copy ssl.so to the location pointed by
- --module-dir
-
-
-Ex if running from source. ./qpidd --load-module /libs/ssl.so
-
-
-
-
- Specify the password file (a plain text file with the
- password), certificate database and the brokers certificate name
- using the following options
-
-
-Ex ./qpidd ... --ssl-cert-password-file ~/pfile --ssl-cert-db ~/server_db/ --ssl-cert-name localhost.localdomain
-
-
-
-
- If you require client authentication you need to add
- --ssl-require-client-authentication as a command line argument.
-
-
- Please note that the default port for SSL connections is
- 5671, unless specified by --ssl-port
-
-
- Here is an example of a broker instance that requires SSL client
- side authenticaiton
-
-
-./qpidd ./qpidd --load-module /libs/ssl.so --ssl-cert-password-file ~/pfile --ssl-cert-db ~/server_db/ --ssl-cert-name localhost.localdomain --ssl-require-client-authentication
-
-
-
- Java Client (M4 and up)
-
-
- This guide is for connecting with the Qpid c++ broker.
-
-
- Setting up the certificates for testing. In summary,
-
- You need to import the trusted CA in your trust store and
- keystore
-
- Generate keys for the certificate in your key store
-
- Create a certificate request using the generated keys
-
- Create a certficate using the request, signed by the
- trusted CA.
-
- Import the signed certificate into your keystore.
-
-
-
-
- Pass the following JVM arguments to your client.
-
-
--Djavax.net.ssl.keyStore=/home/bob/ssl_test/keystore.jks
- -Djavax.net.ssl.keyStorePassword=password
- -Djavax.net.ssl.trustStore=/home/bob/ssl_test/certstore.jks
- -Djavax.net.ssl.trustStorePassword=password
-
-
-
-
-
-
-
- .Net Client (M4 and up)
-
-
- If the Qpid broker requires client authentication then you
- need to get a certificate signed by a CA, trusted by your client.
-
-
- Use the connectSSL instead of the standard connect method of the
- client interface.
-
- connectSSL signature is as follows:
-
-
-public void connectSSL(String host, int port, String virtualHost, String username, String password, String serverName, String certPath, bool rejectUntrusted)
-
-
- Where
-
- host: Host name on which a Qpid broker is deployed
-
- port: Qpid broker port
-
- virtualHost: Qpid virtual host name
-
- username: User Name
-
- password: Password
-
- serverName: Name of the SSL server
-
-
- certPath: Path to the X509 certificate to be used when the
- broker requires client authentication
-
- rejectUntrusted: If true connection will not be established
- if the broker is not trusted (the server certificate must be
- added in your truststore)
-
-
-
-
-
- Python &
- Ruby Client (M4 and up)
-
-
- Simply use amqps:// in the URL string as defined above
-
-
-
-
diff --git a/qpid/doc/book/src/old/Security-Plugins.xml b/qpid/doc/book/src/old/Security-Plugins.xml
deleted file mode 100644
index bf5cb726b3..0000000000
--- a/qpid/doc/book/src/old/Security-Plugins.xml
+++ /dev/null
@@ -1,611 +0,0 @@
-
-
-
- Security Plugins Documentation
-
-
- Introduction
-
- This document describes the structure and design of Qpid security plugins, for
- the Java broker. In particular, the new Access Control plugin, which implements
- the same ACL file syntax as the C++ broker, is examined in detail. The security
- plugins use the broker's OSGi bundle functionality to manage their lifecycle,
- and the ConfigurationPlugin mechanism to manage their configuration via the
- Apache commons configuration XML configuration file.
-
-
- The Java interfaces and packages used by the security plugins are described here,
- although the Javadoc documentation generated from the source should also be
- consulted, and as always reading the source should provide further insight and information.
-
-
-
- Use Cases
-
- The following use cases were identified and used to drive the design and development
- of both the security plugin mechanism in general, and the access control plugin in particular.
-
-
-
-
- Allow access to broker functions to be controlled by an ACL, with the checks being
- carried out independently of the mechanism used to access the broker. This would
- mean that a single CREATE permission would apply whether the queue was
- created when a user logged in and used it, or if that user connected to the broker
- via JMX or QMF and used the management operations to create the queue.
-
-
-
-
- Permissions must be definable at a virtualhost level, with fallback to global
- permissions. This allows access to be granted for operations only on a certain
- host, while global operations such as broker administration can be defined at
- the global level. It also allows default behaviour to be specified globally and
- then overridden on a per-host basis.
-
-
-
-
- The ACL mechanism controls access to operations on particular objects for all users,
- if at least one user has a rule controlling access to that operation on that type of
- object. This means that all users requiring access to a particular operation must be
- configured. The default behaviour will be to deny access.
-
-
-
-
- It should be possible for the addition of one access control rule to trigger the
- addition of other rules, to simplify creation of rulesets.
-
-
-
-
- The behaviour of the access control mechanism should be configurable.
-
-
-
-
- The Java and C++ brokers should share a common configuration file format.
-
-
-
-
- It should be possible to configure access to not just internal broker application
- objects, but to the management operations and attributes of the broker, as well
- as to external objects such as plugins.
-
-
-
-
- As long as a suitably authenticated channel is used to connect, access control
- rules should be applied when performing operations on broker objects. This does
- not hold when, for example, an operator has local access and is using JConsole
- to manage the broker.
-
-
-
-
-
- Java Interfaces, Packages and Classes
-
- This section describes the Java artifacts that are involved in security plugin development.
- They are mostly contained in the package org.apache.qpid.server.security which
- is part of the broker code. It is recommended that a package prefix is chosen for new
- security plugins, and this should be used to form the packages for the implementing classes.
-
-
- In general, when creating a new plugin, you need three classes. These would be the main
- PluginName class, which should implement the SecurityPlugin
- interface and have a public static instance of an anonymous internal classes that implements
- SecurityPluginfactory. Additionally, the PluginNameConfiguration
- class, which should implement the ConfigurationPlugin interface and have a
- public static instance of an anonymous internal classes that implements
- ConfigurationPluginfactory, and finally the PluginNameActivator
- class, which should extend the SecurityPluginActivator abstract class
- and implement the required methods exposing the factories from the other classes.
-
-
- These classes need to be visible from the broker, so they should be placed in the
- org.apache.qpid.server.security.pluginname.plugins package, which should be
- listed in the manifest file. Any internal classes for the plugin should be placed in
- the org.apache.qpid.server.security.pluginname.config package which
- should be marked as provate in the manifest.
-
-
- If logging using the actor and subject framework is required, the property file should
- be located in the org.apache.qpid.server.security.pluginname.logging
- package, and this should also be exported in the manifest file.
-
-
- OSGi
-
- The security plugins are now loaded using the Felix OSGi container, which is started
- as an embedded process inside the broker. This loads all plugin .jar files from the
- directory named in the plugin-directory configuration element, cacheing them in the
- cache-directory directory. Note that, at present, the cache directory is cleared at
- startup, although this behaviour may change. To create OSGi plugin bundles, a manifest
- file - MANIFEST.MF is created that specifies certain attributes of the bundle. A
- sample manifest file for one of the security plugins is shown below.
-
-
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: Qpid Broker-Plugins PluginName
-Bundle-SymbolicName: broker-plugins-pluginname
-Bundle-Description: Name description.
-Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt
-Bundle-DocURL: http://www.apache.org/qpid/pluginname.html
-Bundle-Version: 1.0.0
-Bundle-Activator: org.apache.qpid.server.security.pluginname.plugins.PluginNameActivator
-Bundle-RequiredExecutionEnvironment: JavaSE-1.5
-Bundle-ActivationPolicy: lazy
-Import-Package: org.apache.qpid
-Private-Package: org.apache.qpid.server.security.pluginname.config,
- org.apache.qpid.server.security.pluginname.logging
-Export-Package: org.apache.qpid.server.security.pluginname.plugins
-
-
- The complete list of packages to import will be determined by the actual operation of
- the plugin, however the number of exported packages should be kept to a minimum.
-
-
-
- Plugin
-
- This is the main interface to be extended by all plugins. It contains a
- method that allows configuration via the ConfigurationPlugin
- mechanism.
-
-
-public void configure(ConfigurationPlugin config);
-
-
-
- PluginFactory and SecurityPluginFactory
-
- These factories are used to initialise instances of plugins and configure them appropriately.
- The factories are managed by the OSGI framework started by the PluginManager,
- which is also used to retrieve the instances.
-
-
-public Class<P> getPluginClass();
-public String getPluginName();
-public P newInstance(ConfigurationPlugin config) throws ConfigurationException;
-
-
-
- SecurityPlugin
-
- This is the interface that defines security plugins. The getDefault method
- returns the default result for the plugin when no configuration is found for some
- situation.
-
-
- The authorise method is the main entry-point to the plugin, and is called
- by the SecurityManager with the relevant paramaters. Similarly, the
- access method is used for the special case of controlling access to
- the entire virtual host, and the
-
-
-Result getDefault();
-Result access(ObjectType objectType, Object instance);
-Result authorise(Operation operation, ObjectType objectType, ObjectProperties properties);
-
-
-
- SecurityPluginActivator
-
- The activator registers the factories with the OSGI framework, based on the
- implementations of the abstract methods.
-
-
-public abstract SecurityPluginFactory getFactory();
-public abstract ConfigurationPluginFactory getConfigurationFactory();
-
-
-
- AbstractPlugin
-
- This is a simple parent class, which allows a common point of extension
- for shared plugin code. Currently it simply implements the interface with
- abstract methods.
-
-
-public abstract Result access(ObjectType object, Object instance);
-public abstract Result authorise(Operation operation, ObjectType object, ObjectProperties properties);
-
-
-
- AbstractProxyPlugin
-
- This class is designed to be extended by plugins that only wish to take part in a subset
- of the possible security descisions. Normally, a call to the authorise method
- is proxied to one of the provided methods, based on the operation, for example a CONSUME
- access control check would be proxied to the authoriseConsume method with
- the appropriate paramaters set. The default behaviour is to return ABSTAIN, meaning
- the plugin does not handle this type of operation. If a method is overridden, it can then perform
- whatever security checks are required and return ALLOWED or DENIED
- as appropriate.
-
-
-public Result authoriseConsume(ObjectType object, ObjectProperties properties);
-public Result authorisePublish(ObjectType object, ObjectProperties properties);
-public Result authoriseCreate(ObjectType object, ObjectProperties properties);
-public Result authoriseAccess(ObjectType object, ObjectProperties properties);
-public Result authoriseBind(ObjectType object, ObjectProperties properties);
-public Result authoriseUnbind(ObjectType object, ObjectProperties properties);
-public Result authoriseDelete(ObjectType object, ObjectProperties properties);
-public Result authorisePurge(ObjectType object, ObjectProperties properties);
-public Result authoriseExecute(ObjectType object, ObjectProperties properties);
-public Result authoriseUpdate(ObjectType object, ObjectProperties properties);
-public Result accessVirtualhost(Object instance);
-
-
-
-
- Access Control Security Plugin
-
- This security plugin implements access control using the same configuration file syntax as the
- C++ broker. The classes are all in sub-packages of the org.apache.qpid.server.security.access
- package. The exposed classes consist of the plugoin itself, its OSGi activator and the configuration
- plugin, as well as the properties file and generated code for logging. The private, internal classes,
- consist of the ruleset implementation for managing access control list rules. The plugin also makes
- extensive use of the enumerations provided by the broker as part of the security plugin interfaces,
- for operations, objects and permissions.
-
-
- Enumerations
-
- These enumerations are used to define exactly what a security plugin can control.
-
-
- The ObjectProperties and ObjectProperties.Property lalala
-
-
- The ObjectType
-
-
- The Operation
-
-
- The Permission
-
-
-
- Configuration
-
- Security plugins are configurable using the Qpid XML configuration file, under the <security>
- element. This can be either inside the main <broker /> element, as a global plugin affecting
- all virtual hosts, or under a <virtualhosts><virtualhost><name> element, where
- the <name> element is the name of the virtual host that is to be configured. Each security
- plugin must register the elements it expects to process using a ConfigurationPlugin, which is
- documented elsewhere.
-
-
- The plugins are checked in order, first for the virtual host, then globally, and the first ALLOWED or
- DENIED response is used.
-
-
- The ACL configuration file is specified via the contents of the <aclv2> element. This is simply
- the path to the file, which is a plain text format, and is parseable by both Java and C++ brokers. The path can be
- specified with embedded property value interpolation, for environment variables or other properties defined in the
- configuration file.
-
-
-
-
- ${QPID_HOME}/etc/global-security-config.txt
-
-]]>
-
-
- File Format
-
- The file format is described below.
-
-
-
-
- Whitespace is considered to be any ASCII
- byte with a value below 0x20, and is
- ignored when it occurs between tokens.
-
-
-
-
- Continuations using the \
- character (ASCII 0x5c) are allowed
- anywhere on a line, and
- can consist of a blank line with a continuation
- character as the last non-whitespace token
-
-
-group group1 name1 name2 \
- name3 name4 \
- name5
-acl allow group1 create queue \
- property1 = "value1" \
- property2 \
- = "value2"
-
-
-
-
- Comments are line-style comments, and any text after
- an un-quoted # (ASCII 0x23)
- are ignored, including continuations. The #
- charater may appear in a quoted string.
-
-
-
-
- Quoted strings consist of any ASCII inside matching pairs of
- ' or " (ASCII 0x27
- and 0x22) characters, including any
- otherwise special characters.
-
-
-
-
- Tokens are NOT case sensitive, but quoted
- strings ARE.
-
-
-
-
- The = (ASCII 0x3d) character
- is special, and is used to indicate property value assignment.
-
-
-
-
- Wildcards are specified using the * (ASCII
- 0x2a) character in a property value string,
- which may be quoted.
-
-
-
-
- Empty lines and lines that contain only whitespace are ignored.
-
-
-
-
- The keyword all is reserved, and matches all individuals,
- groups and actions. It may be used in place of a group or
- individual name and/or an action - eg acl allow all all,
- acl deny all all or acl deny user1 all.
-
-
-
-
- Rules are interpreted from the top of the file down until the
- name match is obtained; at which point processing stops.
-
-
-
-
- The last line of the file (whether present or not) will be
- assumed to be acl deny all all. If present in the file, any
- lines below this one are ignored.
-
-
-
-
- Names and group names may contain only a-z,
- A-Z, 0-9,
- -, @, /
- or _.
-
-
-
-
- Rules must be preceded by any configuration and group definitions they may use;
- any name not previously defined as a group will be assumed to be
- that of an individual user.
-
-
-
-
- CONFIG lines must have the following tokens in order:
-
-
-
- The string literal config
-
-
- One or more property name-value pairs, in the form property = value
- where value is the token true or false
-
-
-
-
-
- GROUP lines must have the following tokens in order:
-
-
-
- The string literal group
-
-
- The name of the group, which cannot contain @ or
- / characters
-
-
- A whitespace separated list of user and group names. User names are formatted
- as username/domain@realm and group names must have been defined
- earlier in the file
-
-
-
-
-
- ACL rules must have the following tokens in order:
-
-
-
- An optional rule number, which should be expressible as a positive Java integer
-
-
- The string literal acl
-
-
- The permission, one of allow, allow-log,
- deny or deny-log
-
-
- The name of a single group or individual or the keyword all
-
-
- The name of an operation, which should be one of consume,
- publish, create, access,
- bind, unbind, delete,
- purge, update, execute
- or the keyword all
-
-
- Optionally, a single object type or the keyword all
- Objects allowed are virtualhost, queue,
- topic and exchange
- Objects allowed are virtualhost, queue,
- topic, exchange, link,
- route, method and object
-
-
- If the object is present, then optionally one or more property name-value pairs in the form
- property=value. The property and value can be separated from the
- = charater by any amount of whitespace, and the calue can be quoted if
- it contains special characters or whitespace.
-
-
- Property values can add the wildcard * character at the end of the string
- to indicate that any string beginning with the characters up to the wildcard will match, or
- if the wildcard is the only character, that any string will match
-
-
-
-
-
- This allows a rather looser and more readable style for ACL files,
- while still retaining the ability to read the stricter files accepted
- by the C++ broker. Bear in mind that the group declarations are to be
- deprecated, in favour of an external directory service, using a plugin
- mechanism.
-
-
- The initial number is used to allow rulesets to be created which allow
- individual rules to be enabled and disabled using an admin interface,
- and an ACL file using numbered lines would be restricted to having
- increasing numbers per rule, although gaps would be allowed to enable
- rules to be inserted later, again using an admin interface. This
- administrative interface would also allow saving of a modified ruleset
- and re-loading.
-
-
-
- Broker Access Control
-
- The Java broker access control mechanism is used to protect internal
- entities used by the broker. These are virtual hosts, queues, topics
- and exchanges. The actual access control checks take place in the
- methods that carry out the operations on these objects, in order to
- ensure thatsecurity is both mechanism and protocol agnostic.
-
-
- The Java broker does not support LINK or
- ROUTE object types.
-
-
- An example of the various rules that can be specified follows:
-
-
-acl allow robot create exchange name="robot.*"
-acl deny kitten create queue
-acl allow guest bind exchange name=amq.topic routingkey="kitten.#"
-acl allow all create queue name="tmp.*"
-acl allow guest publish all durable="false"
-acl allow robot create queue name="robot"
-acl allow kitten consume queue durable="true"
-acl allow guest create all
-
-
-
- Management Access Control
-
- The management of the broker using JMX is also protected by the security
- plugins, in two ways. If the management interface is used to perform
- operations that would be access controlled normally, the same rules
- would still apply and be applied. However, this only occurs when the
- JMX connection was authenticated. If JConsole is used to connect directly
- to a broker process started by the same user, then no extra checks are made.
-
-
- The management operations themselves are also able to be access controlled.
- This is done using the METHOD object type. A component name
- and method name are specified as properties, and these indicate the MBean
- type name and JMX method name respectively. If the operation is set to
- ALL then reading JMX attributes, writing JMX attributes and
- invoking JMX operations are controlled by the rule. Otherwise, the three
- operations ACCESS, UPDATE and EXECUTE
- control reading, writing and invocation respectively.
-
-
-ACL ALLOW user ALL METHOD
-ACL ALLOW user ALL METHOD name="method"
-ACL ALLOW user ALL METHOD name="prefix*"
-ACL ALLOW user ALL METHOD component="MBean" name="method"
-ACL ALLOW user ACCESS METHOD component="MBean"
-ACL ALLOW user UPDATE METHOD component="MBean"
-ACL ALLOW user EXECUTE METHOD component="MBean"
-
-
-
- External Object Access Control
-
- At the moment the C++ broker has an extension point to allow access control
- of external objects. This will be provided in the Java broker as well, using the
- ACCESS OBJECT rule, with package name and class name properties.
- The external object must be able to retrieve a reference to the virtual host
- it is running on, and then call the accessObject method. This
- must be the responsibility of the external object.
-
-
- Note that this is not currently implemented in the SecurityManager.
-
-
-ACL ALLOW user ACCESS OBJECT package="com.example.application" class="Extension"
-
-
-if (!_vhost.getSecurityManager().accessObject("com.example.application", "Extension"))
-{
- // TODO reject access somehow - exception
-}
-
-
-
-
-
diff --git a/qpid/doc/book/src/old/System-Properties.xml b/qpid/doc/book/src/old/System-Properties.xml
deleted file mode 100644
index 40b823185f..0000000000
--- a/qpid/doc/book/src/old/System-Properties.xml
+++ /dev/null
@@ -1,357 +0,0 @@
-
-
-
-
-
-
- System Properties
-
-
-
-
- Explanation of System properties used in Qpid
-
-
- This page documents the various System Properties that are
- currently used in the Qpid Java code base.
-
-
-
-
-
- Client Properties
-
-
-
- STRICT_AMQP
-
-
-
- Type
- Boolean
-
-
- Default
- FALSE
-
-
- This forces the client to only send AMQP compliant
- frames. This will disable a number of JMS features.
-
-
- Features disabled by STRICT_AMQP
- Queue Browser
-
- Message Selectors
-
- Durable Subscriptions
-
- Session Recover may result in duplicate message delivery
-
- Destination validation, so no InvalidDestinationException
- will be thrown
-
-
-
- This is associated with property
-
-
-
-
-
-
-
- STRICT_AMQP_FATAL
-
-
-
- Type
- Boolean
-
-
- Default
- FALSE
-
-
-
- This will cause any attempt to utilise an enhanced feature to
- throw and UnsupportedOperationException. When set to false then
- the exception will not occur but the feature will be disabled.
-
-
- e.g.
- The Queue Browser will always show no messages.
- Any message selector will be removed.
-
-
-
-
-
-
- IMMEDIATE_PREFETCH
-
-
-
- Type
- Boolean
-
-
- Default
- FALSE
-
-
-
- The default with AMQP is to start prefetching messages. However,
- with certain 3rd party Java tools, such as Mule this can cause a
- problem. Mule will create a consumer but never consume from it so
- any any prefetched messages will be stuck until that session is
- closed. This property is used to re-instate the default AMQP
- behaviour. The default Qpid behaviour is to prevent prefetch
- occurring, by starting the connection Flow Controlled, until a
- request for a message is made on the consumer either via a
- receive() or setting a message listener.
-
-
-
-
-
-
- qpid.sync_op_timeout
-
-
-
- Type
- long
-
-
- Default
- 60000
-
-
- The length of time (in milliseconds) to wait for a synchronous operation to complete.
- For compatibility with older clients, the synonym amqj.default_syncwrite_timeout is supported.
-
-
-
-
- amq.dynamicsaslregistrar.properties
-
-
-
- Type
- String
-
-
- Default
- org/apache/qpid/client/security/DynamicSaslRegistrar.properties
-
-
- The name of the SASL configuration properties file.
-
-
-
-
-
- amqj.heartbeat.timeoutFactor
-
-
-
- Type
- float
-
-
- Default
- 2.0
-
-
-
- The factor used to get the timeout from the delay between
- heartbeats
-
-
-
-
-
-
- amqj.tcp_nodelay
-
-
-
- Type
- Boolean
-
-
- Default
- TRUE
-
-
- Disable Nagle's algorithm on the TCP connection.
-
-
-
-
-
- amqj.protocol.logging.level
-
-
-
- Type
- Boolean
-
-
- Default
- null
-
-
- If set this will turn on protocol logging on the
- client.
-
-
-
-
- jboss.host
-
-
- Used by the JBossConnectionFactoryInitialiser to specify the host
- to connect to perform JNDI lookups.
-
-
-
-
-
- jboss.port
-
-
- Used by the JBossConnectionFactoryInitialiser to specify the port
- to connect to perform JNDI lookups.
-
-
-
-
-
- amqj.MaximumStateWait
-
-
-
- Default
- 30000
-
-
-
- Used to set the maximum time the State Manager should wait before
- timing out a frame wait.
-
-
-
-
-
-
-
-
-
-
- Management Properties
-
-
-
-
- security
-
-
-
- Default
- null
-
-
-
- String representing the Security level to be used to on
- the connection to the broker. The null default results
- in no security or PLAIN. When used with jmxconnector
- 'javax.management.remote.jmxmp.JMXMPConnector' a
- security value of 'CRAM-MD5' will result in all
- communication to the broker being encrypted.
-
-
-
-
-
- jmxconnector
-
-
-
- Default
- null
-
-
-
- String representing the JMXConnector class used to
- perform the connection to the broker. The null default
- results in the standard JMX connector. Utilising
- 'javax.management.remote.jmxmp.JMXMPConnector' and
- security 'CRAM-MD5' will result in all communication to
- the broker being encrypted.
-
-
-
-
-
- timeout
-
-
-
- Default
- 5000
-
-
-
- Long value representing the milli seconds before
- connection to the broker should timeout.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Properties used in Examples
-
-
-
- archivepath
-
-
- Used in FileMessageDispatcher. This
- properties specifies the directory to move payload
- file(s) to archive location as no error
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/old/Using-Qpid-with-other-JNDI-Providers.xml b/qpid/doc/book/src/old/Using-Qpid-with-other-JNDI-Providers.xml
deleted file mode 100644
index 2bd7d761ef..0000000000
--- a/qpid/doc/book/src/old/Using-Qpid-with-other-JNDI-Providers.xml
+++ /dev/null
@@ -1,215 +0,0 @@
-
-
-
-
-
-
- Using Qpid with other JNDI Providers
-
-
-
-
- How to use a JNDI Provider
-
-
- Qpid will work with any JNDI provider capable of storing Java
- objects. We have a task to add our own initial context factory,
- but until that's available ....
-
-
-
- First you must select a JNDI provider to use. If you aren't
- already using an application server (i.e. Tomcat ?) which
- provides JNDI support you could consider using either:
-
-
-
- Apache's
- which provides an LDAP JNDI implementation
-
-
-
-
-
- OR the SUN JNDI SPI for the FileSystem which can be
- downloaded from
-
-
- Click : Download JNDI 1.2.1 & More button
-
- Download: File System Service Provider, 1.2 Beta 3
-
- and then add the two jars in the lib dir to your class path.
-
-
-
-
-
-
-
- There are two steps to using JNDI objects.
-
-
-
- Bind : Which stores a reference to a JMS
- Object in the provider.
- Lookup : Which tries to retrieve the
- reference and create the JMS Object.
-
-
-
- There are two objects that would normally be stored in JNDI.
-
-
-
- A ConnectionFactory
-
- A Destination (Queue or Topic)
-
-
-
-
-
-
- Binding
-
-
-
- Then you need to setup the values that the JNDI provider will
- used to bind your references, something like this:
-
-
-
- Setup JNDI
-
-
-
-Hashtable env = new Hashtable(11);
- env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.fscontext.RefFSContextFactory");
- env.put(Context.PROVIDER_URL,LOCAL_FILE_PATH_FOR_STORING_BINDS_PATH_MUST_EXIST);
-
-
-
-
- These values are then used to create a context to bind your
- references.
-
-
-
- Perform Binding of ConnectionFactory
-
-
-
-try
-{
- Context ctx = new InitialContext(env);
-
- // Create the object to be bound in this case a ConnectionFactory
- ConnectionFactory factory = null;
-
- try
- {
- factory = new AMQConnectionFactory(CONNECTION_URL);
- try
- {
- ctx.bind(binding, factory);
- }
- catch (NamingException e)
- {
- //Handle problems with binding. Such as the binding already exists.
- }
- }
- catch (URLSyntaxException amqe)
- {
- //Handle any exception with creating ConnnectionFactory
- }
-}
-catch (NamingException e)
-{
- //Handle problem creating the Context.
-}
-
-
-
-
- To bind a queue instead simply create a AMQQueue object and use
- that in the binding call.
-
-
-
- Bind a AMQQueue
-
-AMQQueue queue = new AMQQueue(QUEUE_URL);
-ctx.bind(binding, queue);
-
-
-
-
-
-
- Lookup
-
-
- You can then get a queue connection factory from the JNDI
- context.
-
-
-
-
- Perform Binding of ConnectionFactory
-
-
-
-ConnectionFactory factory;
-try
-{
- factory= (ConnectionFactory)ctx.lookup(binding);
-}
-catch (NamingException e)
-{
- //Handle problems with lookup. Such as binding does not exist.
-}
-
-
-
-
- Note that you need not cast the bound object back to an
- AMQConnectionFactory so all your current JMS apps that
- use JNDI can start using Qpid straight away.
-
-
-
-
-
-
- How to create a TopicConnectionFactory and
- QueueConnectionFactory
-
-
- AMQConnectionFactory implements TopicConnectionFactory and
- QueueConnectionFactory as well as the ConnectionFactory.
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/old/WCF.xml b/qpid/doc/book/src/old/WCF.xml
deleted file mode 100644
index aaf54463db..0000000000
--- a/qpid/doc/book/src/old/WCF.xml
+++ /dev/null
@@ -1,137 +0,0 @@
-
-
-
-
-
- WCF
-
-
-
- Introduction
-
-
-
- WCF (Windows Communication Foundation) unifies the .Net
- communication capabilities into a single, common, general Web
- service oriented framework. A good WCF tutorial can be found
- here.
-
-
- WCF separates how service logic is written from how services
- communicate with clients. Bindings are used to specify the
- transport, encoding, and protocol details required for clients
- and services to communicate with each other. Qpid provide a WCF
- binding: org.apache.qpid.wcf.model.QpidBinding. WCF Services that
- use the Qpid binding communicate through queues that are
- dynamically created on a Qpid broker.
-
-
-
-
-
- How to use Qpid binding
-
-
-
- WCF services are implemented using:
-
-
-
- A service contract with one or more operation contracts.
-
-
-
- A service implementation for those contracts.
-
-
-
- A configuration file to provide that implementation with an
- endpoint and a binding for that specific contract.
-
-
-
-
- The following configuration file can be used to configure a Hello
- Service:
-
-
-<configuration>
- <system.serviceModel>
- <services>
- <!-- the service class -->
- <service name="org.apache.qpid.wcf.demo.HelloService">
- <host>
- <baseAddresses>
- <!-- Use SOAP over AMQP -->
- <add baseAddress="soap.amqp:///" />
- </baseAddresses>
- </host>
-
- <endpoint
- address="Hello"
- <!-- We use a Qpid Binding, see below def -->
- binding="customBinding"
- bindingConfiguration="QpidBinding"
- <!-- The service contract -->
- contract="org.apache.qpid.wcf.demo.IHelloContract"/>
- </service>
- </services>
-
- <bindings>
- <customBinding>
- <!-- cf def of the qpid binding -->
- <binding name="QpidBinding">
- <textMessageEncoding />
- <!-- specify the host and port number of the broker -->
- <QpidTransport
- host="192.168.1.14"
- port="5673" />
- </binding>
- </customBinding>
- </bindings>
-
- <extensions>
- <bindingElementExtensions>
- <!-- use Qpid binding element: org.apache.qpid.wcf.model.QpidTransportElement -->
- <add
- name="QpidTransport"
- type="org.apache.qpid.wcf.model.QpidTransportElement, qpidWCFModel"/>
- </bindingElementExtensions>
- </extensions>
-
- </system.serviceModel>
-</configuration>
-
-
- Endpoints and bindings can also be set within the service code:
-
-
-/* set HostName, portNumber and MyService accordingly */
-Binding binding = new QpidBinding("HostName", portNumber);
-ServiceHost service = new ServiceHost(typeof(MyService), new Uri("soap.amqp:///"));
-service.AddServiceEndpoint(typeof(IBooking), binding, "MyService");
-service.Open();
-....
-
-
-
-
diff --git a/qpid/doc/book/src/old/schemas.xml b/qpid/doc/book/src/old/schemas.xml
deleted file mode 100644
index 6102e65f07..0000000000
--- a/qpid/doc/book/src/old/schemas.xml
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/programming/Makefile b/qpid/doc/book/src/programming/Makefile
deleted file mode 100644
index 0266a0f54d..0000000000
--- a/qpid/doc/book/src/programming/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-include ../Makefile.inc
diff --git a/qpid/doc/book/src/programming/Message-Groups-Guide.xml b/qpid/doc/book/src/programming/Message-Groups-Guide.xml
deleted file mode 100644
index 0ec6982bac..0000000000
--- a/qpid/doc/book/src/programming/Message-Groups-Guide.xml
+++ /dev/null
@@ -1,163 +0,0 @@
-
-
-
-
- Using Message Groups
-
- This section describes how messaging applications can use the Message Group feature
- provided by the Broker.
-
-
- The content of this section assumes the reader is familiar with the Message Group
- feature as described in the AMQP Messaging Broker user's guide. Please read the
- message grouping section in the Broker user's guide before using the
- examples given in this section.
-
-
- Creating Message Group Queues
-
- The following examples show how to create a message group queue that enforces
- ordered group consumption across multiple consumers.
-
-
- Message Group Queue Creation - Python
-
-sender = connection.session().sender("msg-group-q;" +
- " {create:always, delete:receiver," +
- " node: {x-declare: {arguments:" +
- " {'qpid.group_header_key':'THE-GROUP'," +
- " 'qpid.shared_msg_group':1}}}}")
-
-
-
- Message Group Queue Creation - C++
-
-std::string addr("msg-group-q; "
- " {create:always, delete:receiver,"
- " node: {x-declare: {arguments:"
- " {qpid.group_header_key:'THE-GROUP',"
- " qpid.shared_msg_group:1}}}}");
-Sender sender = session.createSender(addr);
-
-
-
- Message Group Queue Creation - Java
-
-Session s = c.createSession(false, Session.CLIENT_ACKNOWLEDGE);
-String addr = "msg-group-q; {create:always, delete:receiver," +
- " node: {x-declare: {arguments:" +
- " {'qpid.group_header_key':'THE-GROUP'," +
- " 'qpid.shared_msg_group':1}}}}";
-Destination d = (Destination) new AMQAnyDestination(addr);
-MessageProducer sender = s.createProducer(d);
-
-
-
- The example code uses the x-declare map to specify the message group configuration
- that should be used for the queue. See the AMQP Messaging Broker user's guide
- for a detailed description of these arguments. Note that the
- qpid.group_header_key's value MUST be a string type if using the C++ broker.
-
-
-
- Sending Grouped Messages
-
- When sending grouped messages, the client must add a message property containing the
- group identifier to the outgoing message. If using the C++ broker, the group identifier
- must be a string type. The key used for the property must exactly match the value passed in the
- 'qpid.group_header_key' configuration argument.
-
-
- Sending Grouped Messages - Python
-
-group = "A"
-m = Message(content="some data", properties={"THE-GROUP": group})
-sender.send(m)
-
-group = "B"
-m = Message(content="some other group's data", properties={"THE-GROUP": group})
-sender.send(m)
-
-group = "A"
-m = Message(content="more data for group 'A'", properties={"THE-GROUP": group})
-sender.send(m)
-
-
-
- Sending Grouped Messages - C++
-
-
-const std::string groupKey("THE-GROUP");
-{
- Message msg("some data");
- msg.getProperties()[groupKey] = std::string("A");
- sender.send(msg);
-}
-{
- Message msg("some other group's data");
- msg.getProperties()[groupKey] = std::string("B");
- sender.send(msg);
-}
-{
- Message msg("more data for group 'A'");
- msg.getProperties()[groupKey] = std::string("A");
- sender.send(msg);
-}
-
-
-
- Sending Grouped Messages - Java
-
-String groupKey = "THE-GROUP";
-
-TextMessage tmsg1 = s.createTextMessage("some data");
-tmsg1.setStringProperty(groupKey, "A");
-sender.send(tmsg1);
-
-TextMessage tmsg2 = s.createTextMessage("some other group's data");
-tmsg2.setStringProperty(groupKey, "B");
-sender.send(tmsg2);
-
-TextMessage tmsg3 = s.createTextMessage("more data for group 'A'");
-tmsg3.setStringProperty(groupKey, "A");
-sender.send(tmsg3);
-
-
-
- The examples above send two groups worth of messages to the queue created in the
- previous example. Two messages belong to group "A", and one belongs to group
- "B". Note that it is not necessary to complete sending one group's messages before
- starting another. Also note that there is no need to indicate to the broker when a
- new group is created or an existing group retired - the broker tracks group state
- automatically.
-
-
-
- Receiving Grouped Messages
-
- Since the broker enforces group policy when delivering messages, no special actions
- are necessary for receiving grouped messages from the broker. However, applications
- must adhere to the rules for message group consumption as described in the AMQP
- Messaging Broker user's guide.
-
-
-
diff --git a/qpid/doc/book/src/programming/Programming-In-Apache-Qpid.xml b/qpid/doc/book/src/programming/Programming-In-Apache-Qpid.xml
deleted file mode 100644
index 8bd9225fb2..0000000000
--- a/qpid/doc/book/src/programming/Programming-In-Apache-Qpid.xml
+++ /dev/null
@@ -1,6594 +0,0 @@
-
-
-
-
-
-
- Programming in Apache Qpid
- Cross-Platform AMQP Messaging in Java JMS, .NET, C++, and Python
-
-
- Introduction
-
- Apache Qpid is a reliable, asynchronous messaging system that
- supports the AMQP messaging protocol in several common programming
- languages. Qpid is supported on most common platforms.
-
-
-
-
-
- On the Java platform, Qpid uses the
- established Java JMS
- API.
-
-
-
-
- For Python, C++, and .NET, Qpid defines its own messaging API, the
- Qpid Messaging API, which is
- conceptually similar in each.
-
-
- On the .NET platform, Qpid also provides a WCF binding.
-
-
-
-
- Ruby will also use the Qpid Messaging API, which will soon
- be implemented. (Ruby currently uses an API that is closely
- tied to the AMQP version).
-
-
-
-
-
-
-
- Using the Qpid Messaging API
-
- The Qpid Messaging API is quite simple, consisting of only a
- handful of core classes.
-
-
-
-
-
-
- A message consists of a standard set
- of fields (e.g. subject,
- reply-to), an application-defined set of
- properties, and message content (the main body of the
- message).
-
-
-
-
-
- A connection represents a network
- connection to a remote endpoint.
-
-
-
-
-
- A session provides a sequentially
- ordered context for sending and receiving
- messages. A session is obtained from a
- connection.
-
-
-
-
-
- A sender sends messages to a target
- using the sender.send method. A sender is
- obtained from a session for a given target address.
-
-
-
-
-
- A receiver receives messages from a
- source using the receiver.fetch method.
- A receiver is obtained from a session for a given source
- address.
-
-
-
-
-
-
- The following sections show how to use these classes in a
- simple messaging program.
-
-
-
- A Simple Messaging Program in C++
-
- The following C++ program shows how to create a connection,
- create a session, send messages using a sender, and receive
- messages using a receiver.
-
-
- "Hello world!" in C++
-
- #include
- #include
- #include
- #include
-
- #include ]]>
-
- using namespace qpid::messaging;
-
- int main(int argc, char** argv) {
- std::string broker = argc > 1 ? argv[1] : "localhost:5672";
- std::string address = argc > 2 ? argv[2] : "amq.topic";
- std::string connectionOptions = argc > 3 ? argv[3] : "";
-
- Connection connection(broker, connectionOptions);
- try {
- connection.open();
- Session session = connection.createSession();
-
- Receiver receiver = session.createReceiver(address);
- Sender sender = session.createSender(address);
-
- sender.send(Message("Hello world!"));
-
- Message message = receiver.fetch(Duration::SECOND * 1);
-
- session.acknowledge();
-
- connection.close();
- return 0;
- } catch(const std::exception& error) {
-
- connection.close();
- return 1;
- }
- }
-
-
-
- Establishes the connection with the messaging broker.
-
-
- Creates a session object on which messages will be sent and received.
-
-
- Creates a receiver that receives messages from the given address.
-
-
- Creates a sender that sends to the given address.
-
-
- Receives the next message. The duration is optional, if omitted, will wait indefinitely for the next message.
-
-
- Acknowledges receipt of all fetched messages on the
- session. This informs the broker that the messages were
- transferred and processed by the client successfully.
-
-
- Closes the connection, all sessions managed by the connection, and all senders and receivers managed by each session.
-
-
-
-
-
-
-
-
- A Simple Messaging Program in Python
-
- The following Python program shows how to create a
- connection, create a session, send messages using a sender, and
- receive messages using a receiver.
-
-
- "Hello world!" in Python
-
-
- connection = Connection(broker)
-
- try:
- connection.open()
- session = connection.session()
-
- sender = session.sender(address)
- receiver = session.receiver(address)
-
- sender.send(Message("Hello world!"));
-
- message = receiver.fetch(timeout=1)
- print message.content
- session.acknowledge()
-
- except MessagingError,m:
- print m
- finally:
- connection.close()
-
-
-
-
- Establishes the connection with the messaging broker.
-
-
- Creates a session object on which messages will be sent and received.
-
-
- Creates a receiver that receives messages from the given address.
-
-
- Creates a sender that sends to the given address.
-
-
- Receives the next message. The duration is optional, if omitted, will wait indefinitely for the next message.
-
-
- Acknowledges receipt of all fetched messages on
- the session. This informs the broker that the messages were
- transfered and processed by the client successfully.
-
-
- Closes the connection, all sessions managed by the connection, and all senders and receivers managed by each session.
-
-
-
-
-
-
-
-
-
-
-
- A Simple Messaging Program in .NET C#
-
- The following .NET C#
-
-
- The .NET binding for the Qpid C++ Messaging API
- applies to all .NET Framework managed code languages. C# was chosen
- for illustration purposes only.
-
-
- program shows how to create a connection,
- create a session, send messages using a sender, and receive
- messages using a receiver.
-
-
-
- "Hello world!" in .NET C#
-
- using System;
- using Org.Apache.Qpid.Messaging;
-
- namespace Org.Apache.Qpid.Messaging {
- class Program {
- static void Main(string[] args) {
- String broker = args.Length > 0 ? args[0] : "localhost:5672";
- String address = args.Length > 1 ? args[1] : "amq.topic";
-
- Connection connection = null;
- try {
- connection = new Connection(broker);
- connection.Open();
- Session session = connection.CreateSession();
-
- Receiver receiver = session.CreateReceiver(address);
- Sender sender = session.CreateSender(address);
-
- sender.Send(new Message("Hello world!"));
-
- Message message = new Message();
- message = receiver.Fetch(DurationConstants.SECOND * 1);
- Console.WriteLine("{0}", message.GetContent());
- session.Acknowledge();
-
- connection.Close();
- } catch (Exception e) {
- Console.WriteLine("Exception {0}.", e);
- if (null != connection)
- connection.Close();
- }
- }
- }
- }
-
-
-
-
-
- Permits use of Org.Apache.Qpid.Messaging types and methods without explicit namespace qualification. Any .NET project must have a project reference to the assembly file Org.Apache.Qpid.Messaging.dll in order to obtain the definitions of the .NET Binding for Qpid Messaging namespace.
-
-
- Establishes the connection with the messaging broker.
-
-
- Creates a session object on which messages will be sent and received.
-
-
- Creates a receiver that receives messages from the given address.
-
-
- Creates a sender that sends to the given address.
-
-
- Receives the next message. The duration is optional, if omitted, will wait indefinitely for the next message.
-
-
- Acknowledges receipt of all fetched messages on the
- session. This informs the broker that the messages were
- transfered and processed by the client successfully.
-
-
- Closes the connection, all sessions managed by the connection, and all senders and receivers managed by each session.
-
-
-
-
-
-
-
-
-
-
-
-
-
- Addresses
-
- An address is the name of a message
- target or message source.
-
- In the programs we have just seen, we used
- amq.topic as the default address if none is
- passed in. This is the name of a standard exchange that always
- exists on an AMQP 0-10 messaging broker.
-
- The methods that create senders and receivers require an
- address. The details of sending to a particular target or
- receiving from a particular source are then handled by the
- sender or receiver. A different target or source can be used
- simply by using a different address.
-
-
- An address resolves to a node. The
- Qpid Messaging API recognises two kinds of nodes,
- queues and topics
-
- The terms queue and
- topic here were chosen to align with
- their meaning in JMS. These two addressing 'patterns',
- queue and topic, are sometimes refered as point-to-point
- and publish-subscribe. AMQP 0-10 has an exchange type
- called a topic exchange. When the term
- topic occurs alone, it refers to a
- Messaging API topic, not the topic
- exchange..
-
- A queue stores each message until it has been received and
- acknowledged, and only one receiver can receive a given message
-
- There are exceptions to this rule; for instance,
- a receiver can use browse mode, which leaves
- messages on the queue for other receivers to
- read..
-
- A topic immediately delivers a message to all eligible
- receivers; if there are no eligible receivers, it discards the
- message. In the AMQP 0-10 implementation of the API,
-
- The AMQP 0-10 implementation is the only one
- that currently exists.
-
- queues map to AMQP queues, and topics map to AMQP exchanges.
-
- In AMQP 0-10, messages are sent to
- exchanges, and read from queues. The Messaging API also
- allows a sender to send messages to a queue; internally,
- Qpid implements this by sending the message to the default
- exchange, with the name of the queue as the routing key. The
- Messaging API also allows a receiver to receive messages
- from a topic; internally, Qpid implements this by setting up
- a private subscription queue for the receiver and binding
- the subscription queue to the exchange that corresponds to
- the topic.
-
-
- In the rest of this tutorial, we present many examples
- using two programs that take an address as a command line
- parameter. spout sends messages to the
- target address, drain receives messages from
- the source address. The source code is available in C++, Python, and
- .NET C# and can be found in the examples directory for each
- language. These programs can use any address string as a source
- or a destination, and have many command line options to
- configure behavior—use the -h option
- for documentation on these options.
-
- Currently, the C++, Python, and .NET C#
- implementations of drain and
- spout have slightly different
- options. This tutorial uses the C++ implementation. The
- options will be reconciled in the near
- future.
-
-
- The examples in this tutorial also use the
- qpid-config utility to configure AMQP 0-10
- queues and exchanges on a Qpid broker.
-
-
-
-
- Queues
-
- Create a queue with qpid-config, send a message using
- spout, and read it using drain:
-
-
- $ qpid-config add queue hello-world
- $ ./spout hello-world
- $ ./drain hello-world
-
- Message(properties={spout-id:c877e622-d57b-4df2-bf3e-6014c68da0ea:0}, content='')
-
-
- The queue stored the message sent by spout and delivered
- it to drain when requested.
-
- Once the message has been delivered and and acknowledged
- by drain, it is no longer available on the queue. If we run
- drain one more time, no messages will be retrieved.
-
-
- $ ./drain hello-world
- $
-
-
-
-
-
- Topics
-
- This example is similar to the previous example, but it
- uses a topic instead of a queue.
-
- First, use qpid-config to remove the queue
- and create an exchange with the same name:
-
-
- $ qpid-config del queue hello-world
- $ qpid-config add exchange topic hello-world
-
-
- Now run drain and spout the same way we did in the previous example:
-
-
- $ ./spout hello-world
- $ ./drain hello-world
- $
-
-
- Topics deliver messages immediately to any interested
- receiver, and do not store messages. Because there were no
- receivers at the time spout sent the
- message, it was simply discarded. When we ran
- drain, there were no messages to
- receive.
-
- Now let's run drain first, using the
- -t option to specify a timeout in seconds.
- While drain is waiting for messages,
- run spout in another window.
-
- First Window:
-
-
- $ ./drain -t 30 hello-word
-
-
-
- Second Window:
-
-
- $ ./spout hello-word
-
-
- Once spout has sent a message, return
- to the first window to see the output from
- drain:
-
-
- Message(properties={spout-id:7da2d27d-93e6-4803-8a61-536d87b8d93f:0}, content='')
-
-
- You can run drain in several separate
- windows; each creates a subscription for the exchange, and
- each receives all messages sent to the exchange.
-
-
-
-
- Address Strings
-
- So far, our examples have used address strings that
- contain only the name of a node. An address
- string can also contain a
- subject and
- options.
-
- The syntax for an address string is:
-
- [ / ] [ ; ]
- options ::= { : , ... }
- ]]>
-
- Addresses, subjects, and keys are strings. Values can
- be numbers, strings (with optional single or double quotes),
- maps, or lists. A complete BNF for address strings appears in
- .
-
-
- So far, the address strings in this tutorial have only
- used simple names. The following sections show how to use
- subjects and options.
-
-
-
-
- Subjects
-
-
- Every message has a property called
- subject, which is analogous to the
- subject on an email message. If no subject is specified, the
- message's subject is null. For convenience, address strings
- also allow a subject. If a sender's address contains a
- subject, it is used as the default subject for the messages
- it sends.
-
- If a receiver's address contains a subject, it is used to
- select only messages that match the subject—the matching
- algorithm depends on the message source.
-
-
-
- In AMQP 0-10, each exchange type has its own matching
- algorithm. This is discussed in
- .
-
-
-
-
- Currently, a receiver bound to a queue ignores subjects,
- receiving messages from the queue without filtering. Support
- for subject filtering on queues will be implemented soon.
-
-
-
-
-
- Using subjects
-
- In this example we show how subjects affect message
- flow.
-
- First, let's use qpid-config to create a topic exchange.
-
-
- $ qpid-config add exchange topic news-service
-
-
- Now we use drain to receive messages from news-service that match the subject sports.
- First Window:
-
- $ ./drain -t 30 news-service/sports
-
-
- In a second window, let's send messages to news-service using two different subjects:
-
- Second Window:
-
- $ ./spout news-service/sports
- $ ./spout news-service/news
-
-
- Now look at the first window, the message with the
- subject sports has been received, but not
- the message with the subject news:
-
-
- Message(properties={qpid.subject:sports, spout-id:9441674e-a157-4780-a78e-f7ccea998291:0}, content='')
-
-
- If you run drain in multiple
- windows using the same subject, all instances of
- drain receive the messages for that
- subject.
-
-
-
- The AMQP exchange type we are using here,
- amq.topic, can also do more sophisticated
- matching.
-
- A sender's subject can contain multiple words separated by a
- . delimiter. For instance, in a news
- application, the sender might use subjects like
- usa.news, usa.weather,
- europe.news, or
- europe.weather.
-
- The receiver's subject can include wildcard characters—
- # matches one or more words in the message's
- subject, * matches a single word.
-
- For instance, if the subject in the source address is
- *.news, it matches messages with the
- subject europe.news or
- usa.news; if it is
- europe.#, it matches messages with subjects
- like europe.news or
- europe.pseudo.news.
-
-
- Subjects with multi-word keys
-
- This example uses drain and spout to demonstrate the
- use of subjects with two-word keys.
-
- Let's use drain with the subject
- *.news to listen for messages in which
- the second word of the key is
- news.
-
- First Window:
-
-
- $ ./drain -t 30 news-service/*.news
-
-
- Now let's send messages using several different
- two-word keys:
-
- Second Window:
-
-
- $ ./spout news-service/usa.news
- $ ./spout news-service/usa.sports
- $ ./spout news-service/europe.sports
- $ ./spout news-service/europe.news
-
-
- In the first window, the messages with
- news in the second word of the key have
- been received:
-
-
- Message(properties={qpid.subject:usa.news, spout-id:73fc8058-5af6-407c-9166-b49a9076097a:0}, content='')
- Message(properties={qpid.subject:europe.news, spout-id:f72815aa-7be4-4944-99fd-c64c9747a876:0}, content='')
-
-
-
- Next, let's use drain with the
- subject #.news to match any sequence of
- words that ends with news.
-
- First Window:
-
-
- $ ./drain -t 30 news-service/#.news
-
-
- In the second window, let's send messages using a
- variety of different multi-word keys:
-
- Second Window:
-
-
- $ ./spout news-service/news
- $ ./spout news-service/sports
- $ ./spout news-service/usa.news
- $ ./spout news-service/usa.sports
- $ ./spout news-service/usa.faux.news
- $ ./spout news-service/usa.faux.sports
-
-
- In the first window, messages with
- news in the last word of the key have been
- received:
-
-
- Message(properties={qpid.subject:news, spout-id:cbd42b0f-c87b-4088-8206-26d7627c9640:0}, content='')
- Message(properties={qpid.subject:usa.news, spout-id:234a78d7-daeb-4826-90e1-1c6540781eac:0}, content='')
- Message(properties={qpid.subject:usa.faux.news, spout-id:6029430a-cfcb-4700-8e9b-cbe4a81fca5f:0}, content='')
-
-
-
-
-
-
- Address String Options
-
-
- The options in an address string can contain additional
- information for the senders or receivers created for it,
- including:
-
-
-
-
- Policies for assertions about the node to which an address
- refers.
-
-
- For instance, in the address string my-queue;
- {assert: always, node:{ type: queue }}, the node
- named my-queue must be a queue; if not,
- the address does not resolve to a node, and an exception
- is raised.
-
-
-
-
- Policies for automatically creating or deleting the node to which an address refers.
-
-
- For instance, in the address string xoxox ; {create: always},
- the queue xoxox is created, if it does
- not exist, before the address is resolved.
-
-
-
-
- Extension points that can be used for sender/receiver configuration.
-
-
- For instance, if the address for a receiver is
- my-queue; {mode: browse}, the receiver
- works in browse mode, leaving messages
- on the queue so other receivers can receive them.
-
-
-
-
- Extension points providing more direct control over the underlying protocol.
-
-
- For instance, the x-bindings property
- allows greater control over the AMQP 0-10 binding process
- when an address is resolved.
-
-
-
-
-
-
- Let's use some examples to show how these different kinds of
- address string options affect the behavior of senders and
- receives.
-
-
-
- assert
-
- In this section, we use the assert option
- to ensure that the address resolves to a node of the required
- type.
-
-
-
-
- Assertions on Nodes
-
- Let's use qpid-config to create a
- queue and a topic.
-
-
- $ qpid-config add queue my-queue
- $ qpid-config add exchange topic my-topic
-
-
-
- We can now use the address specified to drain to assert that it is
- of a particular type:
-
-
-
- $ ./drain 'my-queue; {assert: always, node:{ type: queue }}'
- $ ./drain 'my-queue; {assert: always, node:{ type: topic }}'
- 2010-04-20 17:30:46 warning Exception received from broker: not-found: not-found: Exchange not found: my-queue (../../src/qpid/broker/ExchangeRegistry.cpp:92) [caused by 2 \x07:\x01]
- Exchange my-queue does not exist
-
-
-
- The first attempt passed without error as my-queue is indeed a
- queue. The second attempt however failed; my-queue is not a
- topic.
-
-
-
- We can do the same thing for my-topic:
-
-
-
- $ ./drain 'my-topic; {assert: always, node:{ type: topic }}'
- $ ./drain 'my-topic; {assert: always, node:{ type: queue }}'
- 2010-04-20 17:31:01 warning Exception received from broker: not-found: not-found: Queue not found: my-topic (../../src/qpid/broker/SessionAdapter.cpp:754) [caused by 1 \x08:\x01]
- Queue my-topic does not exist
-
-
-
- Now let's use the create option to
- create the queue xoxox if it does not already
- exist:
-
-
-
-
- create
-
- In previous examples, we created the queue before
- listening for messages on it. Using create:
- always, the queue is automatically created if it
- does not exist.
-
-
- Creating a Queue Automatically
-
- First Window:
- $ ./drain -t 30 "xoxox ; {create: always}"
-
-
- Now we can send messages to this queue:
-
- Second Window:
- $ ./spout "xoxox ; {create: always}"
-
- Returning to the first window, we see that drain has received this message:
-
- Message(properties={spout-id:1a1a3842-1a8b-4f88-8940-b4096e615a7d:0}, content='')
-
- The details of the node thus created can be controlled by further options within the node. See for details.
-
-
-
- browse
- Some options specify message transfer semantics; for
- instance, they may state whether messages should be consumed or
- read in browsing mode, or specify reliability
- characteristics. The following example uses the
- browse option to receive messages without
- removing them from a queue.
-
-
- Browsing a Queue
-
- Let's use the browse mode to receive messages without
- removing them from the queue. First we send three messages to the
- queue:
-
-
- $ ./spout my-queue --content one
- $ ./spout my-queue --content two
- $ ./spout my-queue --content three
-
-
- Now we use drain to get those messages, using the browse option:
-
- $ ./drain 'my-queue; {mode: browse}'
- Message(properties={spout-id:fbb93f30-0e82-4b6d-8c1d-be60eb132530:0}, content='one')
- Message(properties={spout-id:ab9e7c31-19b0-4455-8976-34abe83edc5f:0}, content='two')
- Message(properties={spout-id:ea75d64d-ea37-47f9-96a9-d38e01c97925:0}, content='three')
-
-
- We can confirm the messages are still on the queue by repeating the drain:
-
- $ ./drain 'my-queue; {mode: browse}'
- Message(properties={spout-id:fbb93f30-0e82-4b6d-8c1d-be60eb132530:0}, content='one')
- Message(properties={spout-id:ab9e7c31-19b0-4455-8976-34abe83edc5f:0}, content='two')
- Message(properties={spout-id:ea75d64d-ea37-47f9-96a9-d38e01c97925:0}, content='three')
-
-
-
-
-
- x-bindings
-
- Greater control over the AMQP 0-10 binding process can
- be achieved by including an x-bindings
- option in an address string.
-
- For instance, the XML Exchange is an AMQP 0-10 custom exchange
- provided by the Apache Qpid C++ broker. It allows messages to
- be filtered using XQuery; queries can address either message
- properties or XML content in the body of the message. The
- xquery is specified in the arguments field of the AMQP 0-10
- command. When using the messaging API an xquery can be
- specified in and address that resolves to an XML exchange by
- using the x-bindings property.
-
-
- An instance of the XML Exchange must be added before it
- can be used:
-
-
- $ qpid-config add exchange xml xml
-
-
- When using the XML Exchange, a receiver provides an
- XQuery as an x-binding argument. If the query contains a
- context item (a path starting with .), then it
- is applied to the content of the message, which must be
- well-formed XML. For instance, ./weather is
- a valid XQuery, which matches any message in which the root
- element is named weather. Here is an
- address string that contains this query:
-
-
-
- When using longer queries with drain,
- it is often useful to place the query in a file, and use
- cat in the command line. We do this in the
- following example.
-
-
- Using the XML Exchange
-
- This example uses an x-binding that contains queries, which filter based on the content of XML messages. Here is an XQuery that we will use in this example:
-
-
- 50
- and $w/temperature_f - $w/dewpoint > 5
- and $w/wind_speed_mph > 7
- and $w/wind_speed_mph < 20 ]]>
-
-
- We can specify this query in an x-binding to listen to messages that meet the criteria specified by the query:
-
- First Window:
-
-
- $ ./drain -f "xml; {link:{x-bindings:[{key:'weather',
- arguments:{xquery:\"$(cat rdu.xquery )\"}}]}}"
-
-
- In another window, let's create an XML message that meets the criteria in the query, and place it in the file rdu.xml:
-
-
-
- Raleigh-Durham International Airport (KRDU)
- 16
- 70
- 35
-
- ]]>
-
- Now let's use spout to send this message to the XML exchange:
-
- Second Window:
-
- spout --content "$(cat rdu.xml)" xml/weather
-
-
- Returning to the first window, we see that the message has been received:
-
-
- Raleigh-Durham International Airport (KRDU)
- 16
- 40
- 35
- ') ]]>
-
-
-
-
-
-
-
-
-
- Address String Options - Reference
-
-
- Address String Options
-
-
-
-
-
-
- option
- value
- semantics
-
-
-
-
-
- assert
-
-
- one of: always, never, sender or receiver
-
-
- Asserts that the properties specified in the node option
- match whatever the address resolves to. If they do not,
- resolution fails and an exception is raised.
-
-
-
-
-
- create
-
-
- one of: always, never, sender or receiver
-
-
- Creates the node to which an address refers if it does
- not exist. No error is raised if the node does
- exist. The details of the node may be specified in the
- node option.
-
-
-
-
- delete
-
-
- one of: always, never, sender or receiver
-
-
- Delete the node when the sender or receiver is closed.
-
-
-
-
- node
-
-
- A nested map containing the entries shown in .
-
-
- Specifies properties of the node to which the address
- refers. These are used in conjunction with the assert or
- create options.
-
-
-
-
- link
-
-
- A nested map containing the entries shown in .
-
-
- Used to control the establishment of a conceptual link
- from the client application to or from the target/source
- address.
-
-
-
-
- mode
-
-
- one of: browse, consume
-
-
- This option is only of relevance for source addresses
- that resolve to a queue. If browse is specified the
- messages delivered to the receiver are left on the queue
- rather than being removed. If consume is specified the
- normal behaviour applies; messages are removed from the
- queue once the client acknowledges their receipt.
-
-
-
-
-
-
-
-
- Node Properties
-
-
-
-
-
-
- property
- value
- semantics
-
-
-
-
-
- type
-
-
- topic, queue
-
-
- Indicates the type of the node.
-
-
-
-
- durable
-
-
- True, False
-
-
- Indicates whether the node survives a loss of
- volatile storage e.g. if the broker is restarted.
-
-
-
-
- x-declare
-
-
- A nested map whose values correspond to the valid fields
- on an AMQP 0-10 queue-declare or exchange-declare
- command.
-
-
- These values are used to fine tune the creation or
- assertion process. Note however that they are protocol
- specific.
-
-
-
-
- x-bindings
-
-
- A nested list in which each binding is represented by
- a map. The entries of the map for a binding contain
- the fields that describe an AMQP 0-10 binding. Here is
- the format for x-bindings:
-
- ,
- queue: ,
- key: ,
- arguments: {
- : ,
- ...,
- : }
- },
- ...
- ]
- ]]>
-
-
- In conjunction with the create option, each of these
- bindings is established as the address is resolved. In
- conjunction with the assert option, the existence of
- each of these bindings is verified during
- resolution. Again, these are protocol specific.
-
-
-
-
-
-
-
- Link Properties
-
-
-
-
-
-
- option
- value
- semantics
-
-
-
-
-
- reliability
-
-
- one of: unreliable, at-least-once, at-most-once, exactly-once
-
-
- Reliability indicates the level of reliability that
- the sender or receiver. unreliable
- and at-most-once are currently
- treated as synonyms, and allow messages to be lost if
- a broker crashes or the connection to a broker is
- lost. at-least-once guarantees that
- a message is not lost, but duplicates may be
- received. exactly-once guarantees
- that a message is not lost, and is delivered precisely
- once. Currently only unreliable
- and at-least-once are supported.
- If at-most-once is requested,
- unreliable will be used and for durable messages on
- durable queues there is the possibility that messages
- will be redelivered; if exactly-once is requested,
- at-least-once will be used and the application needs to
- be able to deal with duplicates.
-
-
-
-
- durable
-
-
- True, False
-
-
- Indicates whether the link survives a loss of
- volatile storage e.g. if the broker is restarted.
-
-
-
-
- x-declare
-
-
- A nested map whose values correspond to the valid fields
- of an AMQP 0-10 queue-declare command.
-
-
- These values can be used to customise the subscription
- queue in the case of receiving from an exchange. Note
- however that they are protocol specific.
-
-
-
-
- x-subscribe
-
-
- A nested map whose values correspond to the valid fields
- of an AMQP 0-10 message-subscribe command.
-
-
- These values can be used to customise the subscription.
-
-
-
-
- x-bindings
-
-
- A nested list each of whose entries is a map that may
- contain fields (queue, exchange, key and arguments)
- describing an AMQP 0-10 binding.
-
-
- These bindings are established during resolution
- independent of the create option. They are considered
- logically part of the linking process rather than of
- node creation.
-
-
-
-
-
-
-
-
-
-
- Address String Grammar
-
- This section provides a formal grammar for address strings.
-
-
- Tokens
- The following regular expressions define the tokens used
- to parse address strings:
-
-
-
- Grammar
- The formal grammar for addresses is given below:
-
-
-
-
-
-
- Address String Options
- The address string options map supports the following parameters:
-
-
- [ / ] ; {
- create: always | sender | receiver | never,
- delete: always | sender | receiver | never,
- assert: always | sender | receiver | never,
- mode: browse | consume,
- node: {
- type: queue | topic,
- durable: True | False,
- x-declare: { ... ... },
- x-bindings: [, ... ]
- },
- link: {
- name: ,
- durable: True | False,
- reliability: unreliable | at-most-once | at-least-once | exactly-once,
- x-declare: { ... ... },
- x-bindings: [, ... ],
- x-subscribe: { ... ... }
- }
- }
- ]]>
-
-
-
- Create, Delete, and Assert Policies
- The create, delete, and assert policies specify who should
- perfom the associated action:
- always: the action is performed by any messaging client
- sender: the action is only performed by a sender
- receiver: the action is only performed by a receiver
- never: the action is never performed (this is the default)
-
-
-
- Node-Type
- The node-type is one of:
- topic: in the AMQP 0-10
- mapping, a topic node defaults to the topic exchange, x-declare
- may be used to specify other exchange types
- queue: this is the default node-type
-
-
-
-
-
-
-
- Sender Capacity and Replay
-
- The send method of a sender has an optional second parameter
- that controls whether the send call is synchronous or not. A
- synchronous send call will block until the broker has confirmed
- receipt of the message. An asynchronous send call will return
- before the broker confirms receipt of the message, allowing for
- example further send calls to be made without waiting for a
- roundtrip to the broker for each message. This is desirable where
- increased throughput is important.
-
- The sender maintains a list of sent messages whose receipt
- has yet to be confirmed by the broker. The maximum number of such
- messages that it will hold is defined by the capacity of the
- sender, which can be set by the application. If an application
- tries to send with a sender whose capacity is already fully used
- up, the send call will block waiting for capacity regardless of
- the value of the sync flag.
-
- The sender can be queried for the available space (i.e. the
- unused capacity), and for the current count of unsettled messages
- (i.e. those held in the replay list pending confirmation by the
- server). When the unsettled count is zero, all messages on that
- sender have been successfully sent.
-
- If the connection fails and is transparently reconnected
- (see for details on how to control
- this feature), the unsettled messages for each sender over that
- connection will be re-transmitted. This provides a transparent
- level of reliability. This feature can be controlled through the
- link's reliability as defined in the address (see
- ). At present only
- at-least-once guarantees are offered.
-
-
-
- Receiver Capacity (Prefetch)
-
- By default, a receiver requests the next message from the
- server in response to each fetch call, resulting in messages being
- sent to the receiver one at a time. As in the case of sending, it
- is often desirable to avoid this roundtrip for each message. This
- can be achieved by allowing the receiver
- to prefetch messages in anticipation of
- fetch calls being made. The receiver needs to be able to store
- these prefetched messages, the number it can hold is controlled by
- the receivers capacity.
-
-
-
-
- Acknowledging Received Messages
-
- Applications that receive messages should acknowledge their
- receipt by calling the session's acknowledge method. As in the
- case of sending messages, acknowledged transfer of messages to
- receivers provides at-least-once reliability, which means that the
- loss of the connection or a client crash does not result in lost
- messages; durable messages are not lost even if the broker is
- restarted.
-
- Some cases may not require this however and the reliability can be
- controlled through a link property in the address options (see
- ).
-
- The acknowledge call acknowledges all messages received on
- the session (i.e. all message that have been returned from a fetch
- call on a receiver created on that session).
-
- The acknowledge call also support an optional parameter
- controlling whether the call is synchronous or not. A synchronous
- acknowledge will block until the server has confirmed that it has
- received the acknowledgement. In the asynchronous case, when the
- call returns there is not yet any guarantee that the server has
- received and processed the acknowledgement. The session may be
- queried for the number of unsettled acknowledgements; when that
- count is zero all acknowledgements made for received messages have
- been successful.
-
-
-
-
-
- Receiving Messages from Multiple Sources
-
- A receiver can only read from one source, but many
- programs need to be able to read messages from many sources. In
- the Qpid Messaging API, a program can ask a session for
- the next receiver; that is, the receiver that is
- responsible for the next available message. The following
- examples show how this is done in C++, Python, and .NET C#.
-
-
- Note that to use this pattern you must enable prefetching
- for each receiver of interest so that the broker will send
- messages before a fetch call is made. See
- for more on this.
-
-
- Receiving Messages from Multiple Sources
-
- C++:
-
-
-
- Python:
-
-
- .NET C#:
-
-
-
-
-
-
- Transactions
-
- Sometimes it is useful to be able to group messages
- transfers - sent and/or received - on a session into atomic
- grouping. This can be done be creating the session as
- transactional. On a transactional session sent messages only
- become available at the target address on commit. Likewise any
- received and acknowledged messages are only discarded at their
- source on commit
-
- Note that this currently is only true for
- messages received using a reliable mode
- e.g. at-least-once. Messages sent by a broker to a receiver in
- unreliable receiver will be discarded immediately regardless of
- transctionality.
-
- .
-
-
- Transactions
- C++:
-
-
- .NET C#:
-
-
-
- Connection connection = new Connection(broker);
- Session session = connection.CreateTransactionalSession();
- ...
- if (smellsOk())
- session.Commit();
- else
- session.Rollback();
-
-
-
-
-
-
-
- Connections
-
-
- Messaging connections are created by specifying a broker or a list of brokers, and
- an optional set of connection options. The constructor prototypes for Connections
- are:
-
-
-
-
-
- Messaging connection URLs specify only the network host address(es). Connection
- options are specified separately as an options string or map. This is different
- from JMS Connection URLs that combine the network address and connection properties
- in a single string.
-
-
-
- Connection URLs
-
- Connection URLs describe the broker or set of brokers to which the connection
- is to attach. The format of the Connection URL is defined by AMQP 0.10
- Domain:connection.amqp-host-url.
-
-
-
- port = number ]]>
-
-
- Examples of Messaging Connection URLs
-
-
-
-
-
-
-
- Connection Options
-
-
- Aspects of the connections behaviour can be controlled through
- specifying connection options. For example, connections can be
- configured to automatically reconnect if the connection to a
- broker is lost.
-
-
-
- Specifying Connection Options in C++, Python, and .NET
-
- In C++, these options can be set using Connection::setOption() or by passing in a set of options to the constructor. The options can be passed in as a map or in string form:
-
-
- or
-
-
-
- In Python, these options can be set as attributes of the connection or using named arguments in
- the Connection constructor:
-
-
-
- or
-
-
-
- In .NET, these options can be set using Connection.SetOption() or by passing in a set of options to the constructor. The options can be passed in as a map or in string form:
-
-
-
- Connection connection= new Connection("localhost:5672", "{reconnect: true}");
- try {
- connection.Open();
- !!! SNIP !!!
-
-
- or
-
-
-
- Connection connection = new Connection("localhost:5672");
- connection.SetOption("reconnect", true);
- try {
- connection.Open();
- !!! SNIP !!!
-
-
- See the reference documentation for details in each language.
-
-
- The following table lists the supported connection options.
-
-
- Connection Options
-
-
-
-
-
-
- option name
- value type
- semantics
-
-
-
-
-
-
- username
-
-
- string
-
-
- The username to use when authenticating to the broker.
-
-
-
-
- password
-
-
- string
-
-
- The password to use when authenticating to the broker.
-
-
-
-
- sasl_mechanisms
-
-
- string
-
-
- The specific SASL mechanisms to use with the python
- client when authenticating to the broker. The value
- is a space separated list.
-
-
-
-
-
-
- reconnect
-
-
- boolean
-
-
- Transparently reconnect if the connection is lost.
-
-
-
-
- reconnect_timeout
-
-
- integer
-
-
- Total number of seconds to continue reconnection attempts before giving up and raising an exception.
-
-
-
-
- reconnect_limit
-
-
- integer
-
-
- Maximum number of reconnection attempts before giving up and raising an exception.
-
-
-
-
- reconnect_interval_min
-
-
- integer representing time in seconds
-
-
- Minimum number of seconds between reconnection attempts. The first reconnection attempt is made immediately; if that fails, the first reconnection delay is set to the value of reconnect_interval_min; if that attempt fails, the reconnect interval increases exponentially until a reconnection attempt succeeds or reconnect_interval_max is reached.
-
-
-
-
- reconnect_interval_max
-
-
- integer representing time in seconds
-
-
- Maximum reconnect interval.
-
-
-
-
- reconnect_interval
-
-
- integer representing time in seconds
-
-
- Sets both reconnection_interval_min and reconnection_interval_max to the same value.
-
-
-
-
-
- heartbeat
-
-
- integer representing time in seconds
-
-
- Requests that heartbeats be sent every N seconds. If two
- successive heartbeats are missed the connection is
- considered to be lost.
-
-
-
-
- transport
-
-
- string
-
-
- Sets the underlying transport protocol used. The default option is 'tcp'. To enable ssl, set to 'ssl'. The C++ client additionally supports 'rdma'.
-
-
-
-
- tcp-nodelay
-
-
- boolean
-
-
- Set tcp no-delay, i.e. disable Nagle algorithm. [C++ only]
-
-
-
-
- protocol
-
-
- string
-
-
- Sets the application protocol used. The default option is 'amqp0-10'. To enable AMQP 1.0, set to 'amqp1.0'.
-
-
-
-
-
-
-
-
-
-
- Maps and Lists in Message Content
-
- Many messaging applications need to exchange data across
- languages and platforms, using the native datatypes of each
- programming language.
-
- The Qpid Messaging API supports map and list in message content.
-
- Unlike JMS, there is not a specific message type for
- map messages.
-
-
-
- Note that the Qpid JMS client supports MapMessages whose values can be nested maps or lists. This is not standard JMS behaviour.
-
-
- Specific language support for map and list objects are shown in the following table.
-
-
- Map and List Representation in Supported Languages
-
-
-
- Language
- map
- list
-
-
-
-
- Python
- dict
- list
-
-
- C++
- Variant::Map
- Variant::List
-
-
- Java
- MapMessage
-
-
-
- .NET
- Dictionary<string, object>
- Collection<object>
-
-
-
-
-
- In all languages, messages are encoded using AMQP's portable datatypes.
-
-
-
- Because of the differences in type systems among
- languages, the simplest way to provide portable messages is to
- rely on maps, lists, strings, 64 bit signed integers, and
- doubles for messages that need to be exchanged across languages
- and platforms.
-
-
-
- Qpid Maps and Lists in Python
-
- In Python, Qpid supports the dict and list types directly in message content. The following code shows how to send these structures in a message:
-
-
- Sending Qpid Maps and Lists in Python
-
-
-
-
- The following table shows the datatypes that can be sent in a Python map message,
- and the corresponding datatypes that will be received by clients in Java or C++.
-
-
-
-
-
-
-
-
-
-
- Qpid Maps and Lists in C++
-
-
- In C++, Qpid defines the the
- Variant::Map and
- Variant::List types, which can be
- encoded into message content. The following code shows how to
- send these structures in a message:
-
-
- Sending Qpid Maps and Lists in C++
-
-
-
- The following table shows the datatypes that can be sent
- in a C++ map message, and the corresponding datatypes that
- will be received by clients in Java and Python.
-
-
-
-
-
- Qpid Maps and Lists in .NET
-
-
-
- The .NET binding for the Qpid Messaging API binds .NET managed data types
- to C++ Variant data types. The following code shows how to
- send Map and List structures in a message:
-
-
-
-
- Sending Qpid Maps and Lists in .NET C#
- content = new Dictionary();
- Dictionary subMap = new Dictionary();
- Collection colors = new Collection();
-
- // add simple types
- content["id"] = 987654321;
- content["name"] = "Widget";
- content["percent"] = 0.99;
-
- // add nested amqp/map
- subMap["name"] = "Smith";
- subMap["number"] = 354;
- content["nestedMap"] = subMap;
-
- // add an amqp/list
- colors.Add("red");
- colors.Add("green");
- colors.Add("white");
- content["colorsList"] = colors;
-
- // add one of each supported amqp data type
- bool mybool = true;
- content["mybool"] = mybool;
-
- byte mybyte = 4;
- content["mybyte"] = mybyte;
-
- UInt16 myUInt16 = 5;
- content["myUInt16"] = myUInt16;
-
- UInt32 myUInt32 = 6;
- content["myUInt32"] = myUInt32;
-
- UInt64 myUInt64 = 7;
- content["myUInt64"] = myUInt64;
-
- char mychar = 'h';
- content["mychar"] = mychar;
-
- Int16 myInt16 = 9;
- content["myInt16"] = myInt16;
-
- Int32 myInt32 = 10;
- content["myInt32"] = myInt32;
-
- Int64 myInt64 = 11;
- content["myInt64"] = myInt64;
-
- Single mySingle = (Single)12.12;
- content["mySingle"] = mySingle;
-
- Double myDouble = 13.13;
- content["myDouble"] = myDouble;
-
- Guid myGuid = new Guid("000102030405060708090a0b0c0d0e0f");
- content["myGuid"] = myGuid;
-
- Message message = new Message(content);
- Send(message, true);
- ]]>
-
-
-
- The following table shows the mapping between datatypes in .NET and C++.
-
-
-
- Datatype Mapping between C++ and .NET binding
-
-
-
- C++ Datatype
- → .NET binding
-
-
-
- voidnullptr
- boolbool
- uint8byte
- uint16UInt16
- uint32UInt32
- uint64UInt64
- uint8char
- int16Int16
- int32Int32
- int64Int64
- floatSingle
- doubleDouble
- stringstring
-
- Strings are currently interpreted only with UTF-8 encoding.
-
- qpid::types::UuidGuid
- Variant::Map]]>
-
- Variant::List]]>
-
-
-
-
-
-
-
-
-
-
-
-
- The Request / Response Pattern
- Request / Response applications use the reply-to property,
- described in , to allow a server
- to respond to the client that sent a message. A server sets up a
- service queue, with a name known to clients. A client creates a
- private queue for the server's response, creates a message for a
- request, sets the request's reply-to property to the address of
- the client's response queue, and sends the request to the
- service queue. The server sends the response to the address
- specified in the request's reply-to property.
-
-
- Request / Response Applications in C++
-
- This example shows the C++ code for a client and server
- that use the request / response pattern.
-
- The server creates a service queue and waits for a
- message to arrive. If it receives a message, it sends a
- message back to the sender.
-
-
-
- The client creates a sender for the service queue, and
- also creates a response queue that is deleted when the
- client closes the receiver for the response queue. In the C++
- client, if the address starts with the character
- #, it is given a unique name.
-
- " << response.getContent() << std::endl;
- ]]>
-
- The client sends the string ping to
- the server. The server sends the response
- pong back to the same client, using the
- replyTo property.
-
-
-
-
-
-
-
- Performance Tips
-
-
-
- Consider prefetching messages for receivers (see
- ). This helps eliminate roundtrips
- and increases throughput. Prefetch is disabled by default,
- and enabling it is the most effective means of improving
- throughput of received messages.
-
-
- Send messages asynchronously. Again, this helps
- eliminate roundtrips and increases throughput. The C++ and
- .NET clients send asynchronously by default, however the
- python client defaults to synchronous sends.
-
-
- Acknowledge messages in batches (see
- ). Rather than
- acknowledging each message individually, consider issuing
- acknowledgements after n messages and/or after a particular
- duration has elapsed.
-
-
- Tune the sender capacity (see
- ). If the capacity is too low the
- sender may block waiting for the broker to confirm receipt
- of messages, before it can free up more capacity.
-
-
- If you are setting a reply-to address on messages
- being sent by the c++ client, make sure the address type is
- set to either queue or topic as appropriate. This avoids the
- client having to determine which type of node is being
- refered to, which is required when hanling reply-to in AMQP
- 0-10.
-
-
- For latency sensitive applications, setting tcp-nodelay
- on qpidd and on client connections can help reduce the
- latency.
-
-
-
-
-
- Cluster Failover
-
- The messaging broker can be run in clustering mode, which provides high reliability through replicating state between brokers in the cluster. If one broker in a cluster fails, clients can choose another broker in the cluster and continue their work. Each broker in the cluster also advertises the addresses of all known brokers
-
- This is done via the amq.failover exchange in AMQP 0-10
-
- . A client can use this information to dynamically keep the list of reconnection urls up to date.
-
- In C++, the FailoverUpdates class provides this functionality:
-
-
- Tracking cluster membership
-
- In C++:
-
-
- ...
- Connection connection("localhost:5672");
- connection.setOption("reconnect", true);
- try {
- connection.open();
- std::auto_ptr updates(new FailoverUpdates(connection));
- ]]>
-
-
- In python:
-
-
-
-
- In .NET C#:
-
-
-
- using Org.Apache.Qpid.Messaging;
- ...
- connection = new Connection("localhost:5672");
- connection.SetOption("reconnect", true);
- try {
- connection.Open();
- FailoverUpdates failover = new FailoverUpdates(connection);
-
-
-
-
-
-
-
-
-
-
- Logging
-
- To simplify debugging, Qpid provides a logging facility
- that prints out messaging events.
-
-
- Logging in C++
-
- The Qpidd broker and C++ clients can both use environment variables to enable logging. Linux and Windows systems use the same named environment variables and values.
-
- Use QPID_LOG_ENABLE to set the level of logging you are interested in (trace, debug, info, notice, warning, error, or critical):
-
-
-
- export QPID_LOG_ENABLE="warning+"
-
-
- The Qpidd broker and C++ clients use QPID_LOG_OUTPUT to determine where logging output should be sent. This is either a file name or the special values stderr, stdout, or syslog:
-
-
-
- export QPID_LOG_TO_FILE="/tmp/myclient.out"
-
-
-
- From a Windows command prompt, use the following command format to set the environment variables:
-
-
-
- set QPID_LOG_ENABLE=warning+
- set QPID_LOG_TO_FILE=D:\tmp\myclient.out
-
-
-
-
- Logging in Python
-
- The Python client library supports logging using the standard Python logging module. The easiest way to do logging is to use the basicConfig(), which reports all warnings and errors:
-
-
- from logging import basicConfig
- basicConfig()
-
-
- Qpidd also provides a convenience method that makes it easy to specify the level of logging desired. For instance, the following code enables logging at the DEBUG level:
-
-
- from qpid.log import enable, DEBUG
- enable("qpid.messaging.io", DEBUG)
-
-
- For more information on Python logging, see http://docs.python.org/lib/node425.html. For more information on Qpid logging, use $ pydoc qpid.log.
-
-
-
-
-
-
-
- The AMQP 0-10 mapping
-
-
- This section describes the AMQP 0-10 mapping for the Qpid
- Messaging API.
-
-
- The interaction with the broker triggered by creating a sender
- or receiver depends on what the specified address resolves
- to. Where the node type is not specified in the address, the
- client queries the broker to determine whether it refers to a
- queue or an exchange.
-
-
- When sending to a queue, the queue's name is set as the
- routing key and the message is transfered to the default (or
- nameless) exchange. When sending to an exchange, the message
- is transfered to that exchange and the routing key is set to
- the message subject if one is specified. A default subject may
- be specified in the target address. The subject may also be
- set on each message individually to override the default if
- required. In each case any specified subject is also added as
- a qpid.subject entry in the application-headers field of the
- message-properties.
-
-
- When receiving from a queue, any subject in the source address
- is currently ignored. The client sends a message-subscribe
- request for the queue in question. The accept-mode is
- determined by the reliability option in the link properties;
- for unreliable links the accept-mode is none, for reliable
- links it is explicit. The default for a queue is reliable. The
- acquire-mode is determined by the value of the mode option. If
- the mode is set to browse the acquire mode is not-acquired,
- otherwise it is set to pre-acquired. The exclusive and
- arguments fields in the message-subscribe command can be
- controlled using the x-subscribe map.
-
-
- When receiving from an exchange, the client creates a
- subscription queue and binds that to the exchange. The
- subscription queue's arguments can be specified using the
- x-declare map within the link properties. The reliability
- option determines most of the other parameters. If the
- reliability is set to unreliable then an auto-deleted,
- exclusive queue is used meaning that if the client or
- connection fails messages may be lost. For exactly-once the
- queue is not set to be auto-deleted. The durability of the
- subscription queue is determined by the durable option in the
- link properties. The binding process depends on the type of
- the exchange the source address resolves to.
-
-
-
-
-
- For a topic exchange, if no subject is specified and no
- x-bindings are defined for the link, the subscription
- queue is bound using a wildcard matching any routing key
- (thus satisfying the expectation that any message sent to
- that address will be received from it). If a subject is
- specified in the source address however, it is used for
- the binding key (this means that the subject in the source
- address may be a binding pattern including wildcards).
-
-
-
-
- For a fanout exchange the binding key is irrelevant to
- matching. A receiver created from a source address that
- resolves to a fanout exchange receives all messages
- sent to that exchange regardless of any subject the source
- address may contain. An x-bindings element in the link
- properties should be used if there is any need to set the
- arguments to the bind.
-
-
-
-
- For a direct exchange, the subject is used as the binding
- key. If no subject is specified an empty string is used as
- the binding key.
-
-
-
-
- For a headers exchange, if no subject is specified the
- binding arguments simply contain an x-match entry and no
- other entries, causing all messages to match. If a subject
- is specified then the binding arguments contain an x-match
- entry set to all and an entry for qpid.subject whose value
- is the subject in the source address (this means the
- subject in the source address must match the message
- subject exactly). For more control the x-bindings element
- in the link properties must be used.
-
-
-
-
- For the XML exchange,Note that the XML
- exchange is not a standard AMQP exchange type. It is a
- Qpid extension and is currently only supported by the C++
- broker. if a subject is specified it is
- used as the binding key and an XQuery is defined that
- matches any message with that value for
- qpid.subject. Again this means that only messages whose
- subject exactly match that specified in the source address
- are received. If no subject is specified then the empty
- string is used as the binding key with an xquery that will
- match any message (this means that only messages with an
- empty string as the routing key will be received). For more
- control the x-bindings element in the link properties must
- be used. A source address that resolves to the XML
- exchange must contain either a subject or an x-bindings
- element in the link properties as there is no way at
- present to receive any message regardless of routing key.
-
-
-
-
-
- If an x-bindings list is present in the link options a binding
- is created for each element within that list. Each element is
- a nested map that may contain values named queue, exchange,
- key or arguments. If the queue value is absent the queue name
- the address resolves to is implied. If the exchange value is
- absent the exchange name the address resolves to is implied.
-
-
- The following table shows how Qpid Messaging API message
- properties are mapped to AMQP 0-10 message properties and
- delivery properties. In this table msg
- refers to the Message class defined in the Qpid Messaging API,
- mp refers to an AMQP 0-10
- message-properties struct, and
- dp refers to an AMQP 0-10
- delivery-properties struct.
-
-
- Mapping to AMQP 0-10 Message Properties
-
-
-
-
-
-
- Python API
- C++ API
-
-
- The .NET Binding for C++ Messaging provides all the
- message and delivery properties described in the C++ API.
- See .
-
-
-
- AMQP 0-10 PropertyIn these entries, mp refers to an AMQP message property, and dp refers to an AMQP delivery property.
-
-
-
-
- msg.idmsg.{get,set}MessageId()mp.message_id
-
-
- msg.subjectmsg.{get,set}Subject()mp.application_headers["qpid.subject"]
-
-
- msg.user_idmsg.{get,set}UserId()mp.user_id
-
-
- msg.reply_tomsg.{get,set}ReplyTo()mp.reply_toThe reply_to is converted from the protocol representation into an address.
-
-
- msg.correlation_idmsg.{get,set}CorrelationId()mp.correlation_id
-
-
- msg.durablemsg.{get,set}Durable()dp.delivery_mode == delivery_mode.persistentNote that msg.durable is a boolean, not an enum.
-
-
- msg.prioritymsg.{get,set}Priority()dp.priority
-
-
- msg.ttlmsg.{get,set}Ttl()dp.ttl
-
-
- msg.redeliveredmsg.{get,set}Redelivered()dp.redelivered
-
- msg.propertiesmsg.getProperties()/msg.setProperty()mp.application_headers
-
-
- msg.content_typemsg.{get,set}ContentType()mp.content_type
-
-
-
-
-
-
- 0-10 Message Property Keys
-
- The QPID Messaging API also recognises special message property keys and
- automatically provides a mapping to their corresponding AMQP 0-10 definitions.
-
-
-
-
- When sending a message, if the properties contain an entry for
- x-amqp-0-10.app-id, its value will be used to set the
- message-properties.app-id property in the outgoing
- message. Likewise, if an incoming message has
- message-properties.app-id set, its value can be accessed
- via the x-amqp-0-10.app-id message property key.
-
-
-
-
- When sending a message, if the properties contain an entry for
- x-amqp-0-10.content-encoding, its value will be used to
- set the message-properties.content-encoding property in
- the outgoing message. Likewise, if an incoming message has
- message-properties.content-encoding set, its value can be
- accessed via the x-amqp-0-10.content-encoding message
- property key.
-
-
-
-
- The routing key (delivery-properties.routing-key) in an
- incoming messages can be accessed via the
- x-amqp-0-10.routing-key message property.
-
-
-
-
- If the timestamp delivery property is set in an incoming message
- (delivery-properties.timestamp), the timestamp value will
- be made available via the x-amqp-0-10.timestamp message
- property.
-
-
- This special property is currently not supported by the Qpid JMS client.
-
-
-
-
-
-
- Accessing the AMQP 0-10 Message Timestamp in Python
-
- The following code fragment checks for and extracts the message timestamp from
- a received message.
-
-
- try:
- msg = receiver.fetch(timeout=1)
- if "x-amqp-0-10.timestamp" in msg.properties:
- print("Timestamp=%s" % str(msg.properties["x-amqp-0-10.timestamp"]))
- except Empty:
- pass
-
-
-
- Accessing the AMQP 0-10 Message Timestamp in C++
-
- The same example, except in C++.
-
-
- messaging::Message msg;
- if (receiver.fetch(msg, messaging::Duration::SECOND*1)) {
- if (msg.getProperties().find("x-amqp-0-10.timestamp") != msg.getProperties().end()) {
-
- }
- }
-
-
-
-
-
-
-
-
-
-
-
- Using the Qpid JMS client
-
- A Simple Messaging Program in Java JMS
-
- The following program shows how to send and receive a
- message using the Qpid JMS client. JMS programs typically use
- JNDI to obtain connection factory and destination objects which
- the application needs. In this way the configuration is kept
- separate from the application code itself.
-
- In this example, we create a JNDI context using a
- properties file, use the context to lookup a connection factory,
- create and start a connection, create a session, and lookup a
- destination from the JNDI context. Then we create a producer and
- a consumer, send a message with the producer and receive it with
- the consumer. This code should be straightforward for anyone
- familiar with Java JMS.
-
-
- "Hello world!" in Java
-
- package org.apache.qpid.example.jmsexample.hello;
-
- import javax.jms.*;
- import javax.naming.Context;
- import javax.naming.InitialContext;
- import java.util.Properties;
-
- public class Hello {
-
- public Hello() {
- }
-
- public static void main(String[] args) {
- Hello producer = new Hello();
- producer.runTest();
- }
-
- private void runTest() {
- try {
- Properties properties = new Properties();
- properties.load(this.getClass().getResourceAsStream("hello.properties"));
- Context context = new InitialContext(properties);
-
- ConnectionFactory connectionFactory
- = (ConnectionFactory) context.lookup("qpidConnectionfactory");
- Connection connection = connectionFactory.createConnection();
- connection.start();
-
- Session session=connection.createSession(false,Session.AUTO_ACKNOWLEDGE);
- Destination destination = (Destination) context.lookup("topicExchange");
-
- MessageProducer messageProducer = session.createProducer(destination);
- MessageConsumer messageConsumer = session.createConsumer(destination);
-
- TextMessage message = session.createTextMessage("Hello world!");
- messageProducer.send(message);
-
- message = (TextMessage)messageConsumer.receive();
- System.out.println(message.getText());
-
- connection.close();
- context.close();
- }
- catch (Exception exp) {
- exp.printStackTrace();
- }
- }
- }
-
-
-
-
-
- Loads the JNDI properties file, which specifies connection properties, queues, topics, and addressing options. See for details.
-
-
- Creates the JNDI initial context.
-
-
- Creates a JMS connection factory for Qpid.
-
-
- Creates a JMS connection.
-
-
- Activates the connection.
-
-
- Creates a session. This session is not transactional (transactions='false'), and messages are automatically acknowledged.
-
-
- Creates a destination for the topic exchange, so senders and receivers can use it.
-
-
- Creates a producer that sends messages to the topic exchange.
-
-
- Creates a consumer that reads messages from the topic exchange.
-
-
- Reads the next available message.
-
-
- Closes the connection, all sessions managed by the connection, and all senders and receivers managed by each session.
-
-
- Closes the JNDI context.
-
-
-
- The contents of the hello.properties file are shown below.
-
-
- JNDI Properties File for "Hello world!" example
-
- java.naming.factory.initial
- = org.apache.qpid.jndi.PropertiesFileInitialContextFactory
-
- # connectionfactory.[jndiname] = [ConnectionURL]
- connectionfactory.qpidConnectionfactory
- = amqp://guest:guest@clientid/test?brokerlist='tcp://localhost:5672'
- # destination.[jndiname] = [address_string]
- destination.topicExchange = amq.topic
-
-
-
-
-
- Defines a connection factory from which connections
- can be created. The syntax of a ConnectionURL is given in
- .
-
-
- Defines a destination for which MessageProducers
- and/or MessageConsumers can be created to send and receive
- messages. The value for the destination in the properties
- file is an address string as described in
- . In the JMS
- implementation MessageProducers are analogous to senders in
- the Qpid Message API, and MessageConsumers are analogous to
- receivers.
-
-
-
-
-
-
- Apache Qpid JNDI Properties for AMQP Messaging
-
-
-
- Apache Qpid defines JNDI properties that can be used to specify JMS Connections and Destinations. Here is a typical JNDI properties file:
-
-
-
- JNDI Properties File
-
-
-
- The following sections describe the JNDI properties that Qpid uses.
-
-
-
- JNDI Properties for Apache Qpid
-
- Apache Qpid supports the properties shown in the following table:
-
-
- JNDI Properties supported by Apache Qpid
-
-
-
-
- Property
-
-
- Purpose
-
-
-
-
-
-
- connectionfactory.<jndiname>
-
-
-
- The Connection URL that the connection factory uses to perform connections.
-
-
-
-
-
- queue.<jndiname>
-
-
-
- A JMS queue, which is implemented as an amq.direct exchange in Apache Qpid.
-
-
-
-
-
- topic.<jndiname>
-
-
-
- A JMS topic, which is implemented as an amq.topic exchange in Apache Qpid.
-
-
-
-
-
- destination.<jndiname>
-
-
-
- Can be used for defining all amq destinations,
- queues, topics and header matching, using an
- address string.
-
- Binding URLs, which were used in
- earlier versions of the Qpid Java JMS client, can
- still be used instead of address
- strings.
-
-
-
-
-
-
-
-
-
- Connection URLs
-
- In JNDI properties, a Connection URL specifies properties for a connection. The format for a Connection URL is:
-
-
- amqp://[<user>:<pass>@][<clientid>]<virtualhost>[?<option>='<value>'[&<option>='<value>']]
-
-
- For instance, the following Connection URL specifies a user name, a password, a client ID, a virtual host ("test"), a broker list with a single broker, and a TCP host with the host name localhost using port 5672:
-
-
- amqp://username:password@clientid/test?brokerlist='tcp://localhost:5672'
-
-
- Apache Qpid supports the following properties in Connection URLs:
-
-
- Connection URL Properties
-
-
-
-
- Option
-
-
- Type
-
-
- Description
-
-
-
-
-
-
- brokerlist
-
-
- see below
-
-
- List of one or more broker addresses.
-
-
-
-
- maxprefetch
-
-
- integer
-
-
-
- The maximum number of pre-fetched messages per consumer. If not specified, default value of 500 is used.
-
-
- Note: You can also set the default per-consumer prefetch value on a client-wide basis by configuring the client using Java system properties.
-
-
-
-
-
- sync_publish
-
-
- {'persistent' | 'all'}
-
-
- A sync command is sent after every persistent message to guarantee that it has been received; if the value is 'persistent', this is done only for persistent messages.
-
-
-
-
- sync_ack
-
-
- Boolean
-
-
- A sync command is sent after every acknowledgement to guarantee that it has been received.
-
-
-
-
- use_legacy_map_msg_format
-
-
- Boolean
-
-
- If you are using JMS Map messages and deploying a new client with any JMS client older than 0.8 release, you must set this to true to ensure the older clients can understand the map message encoding.
-
-
-
-
- failover
-
-
- {'singlebroker' | 'roundrobin' | 'failover_exchange' | 'nofailover' | '<class>'}
-
-
-
- This option controls failover behaviour. The method singlebroker uses only the first broker in the list,
- roundrobin will try each broker given in the broker list until a connection is established,
- failover_exchange connects to the initial broker given in the broker URL and will receive membership updates
- via the failover exchange. nofailover disables all retry and failover logic. Any other value is interpreted as a
- classname which must implement the org.apache.qpid.jms.failover.FailoverMethod interface.
-
-
- The broker list options retries and connectdelay (described below) determine the number of times a
- connection to a broker will be retried and the the length of time to wait between successive connection attempts before moving on to
- the next broker in the list. The failover option cyclecount controls the number of times to loop through the list of
- available brokers before finally giving up.
-
-
- Defaults to roundrobin if the brokerlist contains multiple brokers, or singlebroker otherwise.
-
-
-
-
-
- ssl
-
-
- boolean
-
-
-
- If ssl='true', use SSL for all broker connections. Overrides any per-broker settings in the brokerlist (see below) entries. If not specified, the brokerlist entry for each given broker is used to determine whether SSL is used.
-
-
- Introduced in version 0.22.
-
-
-
-
-
-
-
- Broker lists are specified using a URL in this format:
-
-
- brokerlist=<transport>://<host>[:<port>](?<param>='<value>')(&<param>='<value>')*
-
- For instance, this is a typical broker list:
-
-
- brokerlist='tcp://localhost:5672'
-
-
-
- A broker list can contain more than one broker address; if so, the connection is made to the first broker in the list that is available. In general, it is better to use the failover exchange when using multiple brokers, since it allows applications to fail over if a broker goes down.
-
-
-
- Broker Lists
- A broker list can specify properties to be used when connecting to the broker, such as security options. This broker list specifies options for a Kerberos connection using GSSAPI:
-
-
- This broker list specifies SSL options:
-
-
-
-
- This broker list specifies two brokers using the connectdelay and retries broker options. It also illustrates the failover connection URL
- property.
-
-
-
-
-
- The following broker list options are supported.
-
-
- Broker List Options
-
-
-
-
- Option
-
-
- Type
-
-
- Description
-
-
-
-
-
-
- heartbeat
-
-
- integer
-
-
- Frequency of heartbeat messages (in seconds). A value of 0 disables heartbeating. For compatibility
- with old client configuration, option idle_timeout (in milliseconds) is also supported.
-
-
-
-
- sasl_mechs
-
-
- --
-
-
- For secure applications, we suggest CRAM-MD5,
- DIGEST-MD5, or GSSAPI. The ANONYMOUS method is not
- secure. The PLAIN method is secure only when used
- together with SSL. For Kerberos, sasl_mechs must be
- set to GSSAPI, sasl_protocol must be set to the
- principal for the qpidd broker, e.g. qpidd/, and
- sasl_server must be set to the host for the SASL
- server, e.g. sasl.com. SASL External is supported
- using SSL certification, e.g.
- ssl='true'&sasl_mechs='EXTERNAL'
-
-
-
-
- sasl_encryption
-
-
- Boolean
-
-
- If sasl_encryption='true', the JMS client attempts to negotiate a security layer with the broker using GSSAPI to encrypt the connection. Note that for this to happen, GSSAPI must be selected as the sasl_mech.
-
-
-
-
- sasl_protocol
-
-
- --
-
-
- Used only for
- Kerberos. sasl_protocol must be
- set to the principal for the qpidd broker,
- e.g. qpidd/
-
-
-
-
- sasl_server
-
-
- --
-
-
- For Kerberos, sasl_mechs must be set to GSSAPI,
- sasl_server must be set to the host for the SASL
- server, e.g. sasl.com.
-
-
-
-
- trust_store
-
-
- --
-
-
- path to trust store
-
-
-
-
- trust_store_password
-
-
- --
-
-
- Trust store password
-
-
-
-
- key_store
-
-
- --
-
-
- path to key store
-
-
-
-
- key_store_password
-
-
- --
-
-
- key store password
-
-
-
-
- ssl
-
-
- Boolean
-
-
- If ssl='true', the JMS client will encrypt the connection to this broker using SSL.
-
- This can also be set/overridden for all brokers using the Connection URL options.
-
-
-
-
- ssl_verify_hostname
-
-
- Boolean
-
-
- When using SSL you can enable hostname verification
- by using ssl_verify_hostname='true' in the broker
- URL.
-
-
-
-
- ssl_cert_alias
-
-
- --
-
-
- If multiple certificates are present in the keystore, the alias will be used to extract the correct certificate.
-
-
-
-
- retries
-
-
- integer
-
-
- The number of times to retry connection to each broker in the broker list. Defaults to 1.
-
-
-
-
- connectdelay
-
-
- integer
-
-
- Length of time (in milliseconds) to wait before attempting to reconnect. Defaults to 0.
-
-
-
-
- connecttimeout
-
-
- integer
-
-
- Length of time (in milliseconds) to wait for the socket connection to succeed. A value of 0 represents an infinite timeout, i.e. the connection attempt will block until established or an error occurs. Defaults to 30000.
-
-
-
-
- tcp_nodelay
-
-
- Boolean
-
-
- If tcp_nodelay='true', TCP packet
- batching is disabled. Defaults to true since Qpid 0.14.
-
-
-
-
-
-
-
-
-
- Java JMS Message Properties
-
- The following table shows how Qpid Messaging API message
- properties are mapped to AMQP 0-10 message properties and
- delivery properties. In this table msg
- refers to the Message class defined in the Qpid Messaging API,
- mp refers to an AMQP 0-10
- message-properties struct, and
- dp refers to an AMQP 0-10
- delivery-properties struct.
-
-
- Java JMS Mapping to AMQP 0-10 Message Properties
-
-
-
- Java JMS Message Property
- AMQP 0-10 PropertyIn these entries, mp refers to an AMQP message property, and dp refers to an AMQP delivery property.
-
-
-
-
-
- JMSMessageIDmp.message_id
-
-
- qpid.subjectThis is a custom JMS property, set automatically by the Java JMS client implementation.mp.application_headers["qpid.subject"]
-
-
- JMSXUserIDmp.user_id
-
-
- JMSReplyTomp.reply_toThe reply_to is converted from the protocol representation into an address.
-
-
- JMSCorrelationIDmp.correlation_id
-
-
- JMSDeliveryModedp.delivery_mode
-
-
- JMSPrioritydp.priority
-
-
- JMSExpirationdp.ttlJMSExpiration = dp.ttl + currentTime
-
-
- JMSRedelivereddp.redelivered
-
-
- JMS Propertiesmp.application_headers
-
-
- JMSTypemp.content_type
-
-
-
-
-
-
-
-
- JMS MapMessage Types
-
- Qpid supports the Java JMS MapMessage interface, which provides support for maps in messages. The following code shows how to send a MapMessage in Java JMS.
-
-
- Sending a Java JMS MapMessage
- colors = new ArrayList();
- colors.add("red");
- colors.add("green");
- colors.add("white");
- m.setObject("colours", colors);
-
- Map dimensions = new HashMap();
- dimensions.put("length",10.2);
- dimensions.put("width",5.1);
- dimensions.put("depth",2.0);
- m.setObject("dimensions",dimensions);
-
- List> parts = new ArrayList>();
- parts.add(Arrays.asList(new Integer[] {1,2,5}));
- parts.add(Arrays.asList(new Integer[] {8,2,5}));
- m.setObject("parts", parts);
-
- Map specs = new HashMap();
- specs.put("colours", colors);
- specs.put("dimensions", dimensions);
- specs.put("parts", parts);
- m.setObject("specs",specs);
-
- producer.send(m);
- ]]>
-
-
- The following table shows the datatypes that can be sent in a MapMessage, and the corresponding datatypes that will be received by clients in Python or C++.
-
-
- Java Datatypes in Maps
-
-
-
- Java Datatype
- → Python
- → C++
-
-
-
- booleanboolbool
- shortint | longint16
- intint | longint32
- longint | longint64
- floatfloatfloat
- doublefloatdouble
- java.lang.Stringunicodestd::string
- java.util.UUIDuuidqpid::types::Uuid
- java.util.MapIn Qpid, maps can nest. This goes beyond the functionality required by the JMS specification.dictVariant::Map
- java.util.ListlistVariant::List
-
-
-
-
-
-
-
- JMS Client Logging
- The JMS Client logging is handled using the Simple Logging Facade for Java (SLF4J). As the name implies, slf4j is a facade that delegates to other logging systems like log4j or JDK 1.4 logging. For more information on how to configure slf4j for specific logging systems, please consult the slf4j documentation.
-
- When using the log4j binding, please set the log level for org.apache.qpid explicitly. Otherwise log4j will default to DEBUG which will degrade performance considerably due to excessive logging. The recommended logging level for production is WARN.
-
- The following example shows the logging properties used to configure client logging for slf4j using the log4j binding. These properties can be placed in a log4j.properties file and placed in the CLASSPATH, or they can be set explicitly using the -Dlog4j.configuration property.
-
-
- log4j Logging Properties
-
-
-
-
-
-
-
- Configuring the JMS Client
-
- The Qpid JMS Client allows several configuration options to customize it's behaviour at different levels of granualarity.
-
-
-
-
- JVM level using JVM arguments : Configuration that affects all connections, sessions, consumers and producers created within that JVM.
-
- Ex. -Dmax_prefetch=1000 property specifies the message credits to use.
-
-
-
-
- Connection level using Connection/Broker properties : Affects the respective connection and sessions, consumers and produces created by that connection.
-
- Ex. amqp://guest:guest@test/test?max_prefetch='1000'
- &brokerlist='tcp://localhost:5672'
- property specifies the message credits to use. This overrides any value specified via the JVM argument max_prefetch.
- Please refer to the section for a complete list of all properties and how to use them.
-
-
-
-
- Destination level using Addressing options : Affects the producer(s) and consumer(s) created using the respective destination.
-
- Ex. my-queue; {create: always, link:{capacity: 10}}, where capacity option specifies the message credits to use. This overrides any connection level configuration.
- Please refer to the section for a complete understanding of addressing and it's various options.
-
-
-
- Some of these config options are available at all three levels (Ex. max_prefetch), while others are available only at JVM or connection level.
-
-
- Qpid JVM Arguments
-
-
- Config Options For Connection Behaviour
-
-
-
- Property Name
- Type
- Default Value
- Description
-
-
-
-
- qpid.amqp.version
- string
- 0-10
- Sets the AMQP version to be used - currently supports one of {0-8,0-9,0-91,0-10}.The client will begin negotiation at the specified version and only negotiate downwards if the Broker does not support the specified version.
-
-
- qpid.heartbeat
- int
- When using the 0-10 protocol, the default is 120 (secs)When using protocols 0-8...0-91, the default is the broker-supplied value.
- Frequency of heartbeat messages (in seconds). A value of 0 disables heartbeating. Two consective misssed heartbeats will result in the connection timing out.This can also be set per connection using the Connection URL options.For compatibility with old client configuration, the synonym amqj.heartbeat.delay is supported.
-
-
- ignore_setclientID
- boolean
- false
- If a client ID is specified in the connection URL it's used or else an ID is generated. If an ID is specified after it's been set Qpid will throw an exception. Setting this property to 'true' will disable that check and allow you to set a client ID of your choice later on.
-
-
-
-
-
-
-
- Config Options For Session Behaviour
-
-
-
- Property Name
- Type
- Default Value
- Description
-
-
-
-
- qpid.session.command_limit
- int
- 65536
- Limits the # of unacked commands
-
-
-
- qpid.session.byte_limit
- int
- 1048576
- Limits the # of unacked commands in terms of bytes
-
-
-
- qpid.use_legacy_map_message
- boolean
- false
- If set will use the old map message encoding. By default the Map messages are encoded using the 0-10 map encoding.This can also be set per connection using the Connection URL options.
-
-
-
- qpid.jms.daemon.dispatcher
- boolean
- false
- Controls whether the Session dispatcher thread is a daemon thread or not. If this system property is set to true then the Session dispatcher threads will be created as daemon threads. This setting is introduced in version 0.16.
-
-
-
-
-
-
- Config Options For Consumer Behaviour
-
-
-
- Property Name
- Type
- Default Value
- Description
-
-
-
-
- max_prefetch
- int
- 500
- Maximum number of pre-fetched messages per consumer. This can also be defaulted for consumers created on a particular connection using the Connection URL options, or per destination (see the capacity option under link properties in addressing)
-
-
-
- qpid.session.max_ack_delay
- long
- 1000 (ms)
- Timer interval to flush message acks in buffer when using AUTO_ACK and DUPS_OK.When using the above ack modes, message acks are batched and sent if one of the following conditions are met (which ever happens first).
-
- When the ack timer fires.
- if un_acked_msg_count > max_prefetch/2.
-
-
- The ack timer can be disabled by setting it to 0.
-
-
-
-
- sync_ack
- boolean
- false
- If set, each message will be acknowledged synchronously. When using AUTO_ACK mode, you need to set this to "true", in order to get the correct behaviour as described by the JMS spec.This is set to false by default for performance reasons, therefore by default AUTO_ACK behaves similar to DUPS_OK.This can also be set per connection using the Connection URL options.
-
-
-
-
-
-
- Config Options For Producer Behaviour
-
-
-
- Property Name
- Type
- Default Value
- Description
-
-
-
-
- sync_publish
- string
- "" (disabled)
- If one of {persistent|all} is set then persistent messages or all messages will be sent synchronously.This can also be set per connection using the Connection URL options.
-
-
-
-
-
-
- Config Options For Threading
-
-
-
- Property Name
- Type
- Default Value
- Description
-
-
-
-
- qpid.thread_factory
- string
- org.apache.qpid.thread.DefaultThreadFactory
- Specifies the thread factory to use.If using a real time JVM, you need to set the above property to org.apache.qpid.thread.RealtimeThreadFactory.
-
-
-
- qpid.rt_thread_priority
- int
- 20
- Specifies the priority (1-99) for Real time threads created by the real time thread factory.
-
-
-
-
-
-
- Config Options For I/O
-
-
-
- Property Name
- Type
- Default Value
- Description
-
-
-
-
- qpid.transport
- string
- org.apache.qpid.transport.network.io.IoNetworkTransport
- The transport implementation to be used.A user could specify an alternative transport mechanism that implements the interface org.apache.qpid.transport.network.OutgoingNetworkTransport.
-
-
- qpid.sync_op_timeout
- long
- 60000
- The length of time (in milliseconds) to wait for a synchronous operation to complete.For compatibility with older clients, the synonym amqj.default_syncwrite_timeout is supported.
-
-
- qpid.tcp_nodelay
- boolean
- true
-
- Sets the TCP_NODELAY property of the underlying socket. The default was changed to true as of Qpid 0.14.
- This can also be set per connection using the Connection URL options.
- For compatibility with older clients, the synonym amqj.tcp_nodelay is supported.
-
-
-
- qpid.send_buffer_size
- integer
- 65535
-
- Sets the SO_SNDBUF property of the underlying socket. Added in Qpid 0.16.
- For compatibility with older clients, the synonym amqj.sendBufferSize is supported.
-
-
-
- qpid.receive_buffer_size
- integer
- 65535
-
- Sets the SO_RCVBUF property of the underlying socket. Added in Qpid 0.16.
- For compatibility with older clients, the synonym amqj.receiveBufferSize is supported.
-
-
-
- qpid.failover_method_timeout
- long
- 60000
-
- During failover, this is the timeout for each attempt to try to re-establish the connection.
- If a reconnection attempt exceeds the timeout, the entire failover process is aborted.
- It is only applicable for AMQP 0-8/0-9/0-9-1 clients.
-
-
-
-
-
-
-
- Config Options For Security
-
-
-
- Property Name
- Type
- Default Value
- Description
-
-
-
-
- qpid.sasl_mechs
- string
- PLAIN
- The SASL mechanism to be used. More than one could be specified as a comma separated list.We currently support the following mechanisms {PLAIN | GSSAPI | EXTERNAL}.This can also be set per connection using the Connection URL options.
-
-
-
- qpid.sasl_protocol
- string
- AMQP
- When using GSSAPI as the SASL mechanism, sasl_protocol must be set to the principal for the qpidd broker, e.g. qpidd.This can also be set per connection using the Connection URL options.
-
-
-
- qpid.sasl_server_name
- string
- localhost
- When using GSSAPI as the SASL mechanism, sasl_server must be set to the host for the SASL server, e.g. example.com.This can also be set per connection using the Connection URL options.
-
-
-
-
-
-
- Config Options For Security - Standard JVM properties needed when using GSSAPI as the SASL mechanism.Please refer to the Java security documentation for a complete understanding of the above properties.
-
-
-
- Property Name
- Type
- Default Value
- Description
-
-
-
-
- javax.security.auth.useSubjectCredsOnly
- boolean
- true
- If set to 'false', forces the SASL GASSPI client to obtain the kerberos credentials explicitly instead of obtaining from the "subject" that owns the current thread.
-
-
-
- java.security.auth.login.config
- string
-
- Specifies the jass configuration file.Ex-Djava.security.auth.login.config=myjas.conf
- Here is the sample myjas.conf JASS configuration file:
-
-
-
-
-
-
- Config Options For Security - Using SSL for securing connections or using EXTERNAL as the SASL mechanism.
-
-
-
- Property Name
- Type
- Default Value
- Description
-
-
-
-
- qpid.ssl_timeout
- long
- 60000
- Timeout value used by the Java SSL engine when waiting on operations.
-
-
-
- qpid.ssl.KeyManagerFactory.algorithm
- string
- -
-
- The key manager factory algorithm name. If not set, defaults to the value returned from the Java runtime call KeyManagerFactory.getDefaultAlgorithm()
- For compatibility with older clients, the synonym qpid.ssl.keyStoreCertType is supported.
-
-
-
-
- qpid.ssl.TrustManagerFactory.algorithm
- string
- -
-
- The trust manager factory algorithm name. If not set, defaults to the value returned from the Java runtime call TrustManagerFactory.getDefaultAlgorithm()
- For compatibility with older clients, the synonym qpid.ssl.trustStoreCertType is supported.
-
-
-
-
-
-
-
- Config Options For Security - Standard JVM properties needed when Using SSL for securing connections or using EXTERNAL as the SASL mechanism.Qpid allows you to have per connection key and trust stores if required. If specified per connection, the JVM arguments are ignored.
-
-
-
- Property Name
- Type
- Default Value
- Description
-
-
-
-
- javax.net.ssl.keyStore
- string
- jvm default
- Specifies the key store path.This can also be set per connection using the Connection URL options.
-
-
-
- javax.net.ssl.keyStorePassword
- string
- jvm default
- Specifies the key store password.This can also be set per connection using the Connection URL options.
-
-
-
- javax.net.ssl.trustStore
- string
- jvm default
- Specifies the trust store path.This can also be set per connection using the Connection URL options.
-
-
-
- javax.net.ssl.trustStorePassword
- string
- jvm default
- Specifies the trust store password.This can also be set per connection using the Connection URL options.
-
-
-
-
-
-
-
-
-
-
- Using the Qpid WCF client
-
- XML and Binary Bindings
-
- The Qpid WCF client provides two bindings, each with support for
- Windows .NET transactions.
-
- The AmqpBinding is suitable for communication between two WCF
- applications. By default it uses the WCF binary .NET XML encoder
- (BinaryMessageEncodingBindingElement) for efficient message
- transmission, but it can also use the text and Message Transmission
- Optimization Mechanism (MTOM) encoders. Here is a traditional service
- model sample program using the AmqpBinding. It assumes that the queue
- "hello_service_node" has been created and configured on the AMQP
- broker.
-
-
- Traditional service model "Hello world!" example
-
-
- channelFactory =
- new ChannelFactory(amqpBinding, clientEndpoint);
- IHelloService clientProxy = channelFactory.CreateChannel();
-
- clientProxy.SayHello("Greetings from WCF client");
-
- // wait for service to process the greeting
- while (HelloService.GreetingCount == 0)
- {
- Thread.Sleep(100);
- }
- channelFactory.Close();
- serviceHost.Close();
- }
- catch (Exception e)
- {
- Console.WriteLine("Exception: {0}", e);
- }
- }
- }
- }
- ]]>
-
-
- The second binding, AmqpBinaryBinding, is suitable for WCF
- applications that need to inter-operate with non-WCF clients or that
- wish to have direct access to the raw wire representation of the
- message body. It relies on a custom encoder to read and write raw
- (binary) content which operates similarly to the ByteStream encoder
- (introduced in .NET 4.0). The encoder presents an abstract XML
- infoset view of the raw message content on input. On output, the
- encoder does the reverse and peels away the XML infoset layer exposing
- the raw content to the wire representation of the message body. The
- application must do the inverse of what the encoder does to allow the
- XML infoset wrapper to cancel properly. This is demonstrated in the
- following sample code (using the channel programming model) which
- directly manipulates or provides callbacks to the WCF message readers
- and writers when the content is consumed. In contrast to the
- AmqpBinding sample where the simple greeting is encapsulated in a
- compressed SOAP envelope, the wire representation of the message
- contains the raw content and is identical and fully interoperable with
- the Qpid C++ "Hello world!" example.
-
-
- Binary "Hello world!" example using the channel model
- 0)
- {
- broker = args[0];
- }
-
- if (args.Length > 1)
- {
- port = int.Parse(args[1]);
- }
-
- if (args.Length > 2)
- {
- target = args[2];
- }
-
- if (args.Length > 3)
- {
- source = args[3];
- }
-
- AmqpBinaryBinding binding = new AmqpBinaryBinding();
- binding.BrokerHost = broker;
- binding.BrokerPort = port;
-
- IChannelFactory receiverFactory = binding.BuildChannelFactory();
- receiverFactory.Open();
- IInputChannel receiver = receiverFactory.CreateChannel(new EndpointAddress("amqp:" + source));
- receiver.Open();
-
- IChannelFactory senderFactory = binding.BuildChannelFactory();
- senderFactory.Open();
- IOutputChannel sender = senderFactory.CreateChannel(new EndpointAddress("amqp:" + target));
- sender.Open();
-
- sender.Send(Message.CreateMessage(MessageVersion.None, "", new HelloWorldBinaryBodyWriter()));
-
- Message message = receiver.Receive();
- XmlDictionaryReader reader = message.GetReaderAtBodyContents();
- while (!reader.HasValue)
- {
- reader.Read();
- }
-
- byte[] binaryContent = reader.ReadContentAsBase64();
- string text = Encoding.UTF8.GetString(binaryContent);
-
- Console.WriteLine(text);
-
- senderFactory.Close();
- receiverFactory.Close();
- }
- }
-
- public class HelloWorldBinaryBodyWriter : BodyWriter
- {
- public HelloWorldBinaryBodyWriter() : base (true) {}
-
- protected override void OnWriteBodyContents(XmlDictionaryWriter writer)
- {
- byte[] binaryContent = Encoding.UTF8.GetBytes("Hello world!");
-
- // wrap the content:
- writer.WriteStartElement("Binary");
- writer.WriteBase64(binaryContent, 0, binaryContent.Length);
- }
- }
- }
- ]]>
-
-
- Bindings define ChannelFactories and ChannelListeners associated with
- an AMQP Broker. WCF will frequently automatically create and manage
- the life cycle of a these and the resulting IChannel objects used in
- message transfer. The binding parameters that can be set are:
-
-
- WCF Binding Parameters
-
-
-
-
-
-
- Parameter
- Default
- Description
-
-
-
-
-
- BrokerHost
-
-
- localhost
-
-
- The broker's server name. Currently the WCF channel
- only supports connections with a single broker.
- Failover to multiple brokers will be provided in the
- future.
-
-
-
-
-
- BrokerPort
-
-
- 5672
-
-
- The port the broker is listening on.
-
-
-
-
-
- PrefetchLimit
-
-
- 0
-
-
- The number of messages to prefetch from the amqp
- broker before the application actually consumes them.
- Increasing this number can dramatically increase the
- read performance in some circumstances.
-
-
-
-
-
- Shared
-
-
- false
-
-
- Indicates if separate channels to the same broker can
- share an underlying AMQP tcp connection (provided they
- also share the same authentication credentials).
-
-
-
-
-
- TransferMode
-
-
- buffered
-
-
- Indicates whether the channel's encoder uses the WCF
- BufferManager cache to temporarily store message
- content during the encoding/decoding phase. For small
- to medium sized SOAP based messages, buffered is
- usually the preferred choice. For binary messages,
- streamed TransferMode is the more efficient mode.
-
-
-
-
-
-
-
-
- Endpoints
-
- In Qpid 0.6 the WCF Endpoints map to simple AMQP 0-10
- exchanges (IOutputChannel) or AMQP 0-10 queues (IInputChannel).
- The format for an IOutputChannel is
-
-
-
- and for an IInputChannel is
-
-
-
- The routing key is in fact a default value associated with
- the particular channel. Outgoing messages can always have their
- routing key uniquely set.
-
- If the respective queue or exchange doesn't exist, an exception
- is thrown when opening the channel. Queues and exchanges can be
- created and configured using qpid-config.
-
-
-
-
- Message Headers
-
- AMQP specific message headers can be set on or retrieved
- from the ServiceModel.Channels.Message using the AmqpProperties
- type.
-
- For example, on output:
-
-
-
- On input the headers can be accessed from the Message or extracted
- from the operation context
-
-
-
-
-
-
- Security
-
- To engage TLS/SSL:
-
-
-
- Currently the WCF client only provides SASL PLAIN (i.e. username and
- password) authentication. To provide a username and password, you can
- set the DefaultAmqpCredential value in the binding. This value can be
- overridden or set for a binding's channel factories and listeners,
- either by setting the ClientCredentials as a binding parameter, or by
- using an AmqpCredential as a binding parameter. The search order for
- credentials is the AmqpCredential binding parameter, followed by the
- ClientCredentials (unless IgnoreEndpointClientCredentials has been
- set), and finally defaulting to the DefaultAmqpCredential of the
- binding itself. Here is a sample using ClientCredentials:
-
- (bindingParameters);
-]]>
-
-
-
-
- Transactions
-
- The WCF channel provides a transaction resource manager
- module and a recovery module that together provide distributed
- transaction support with one-phase optimization. Some
- configuration is required on Windows machines to enable
- transaction support (see your installation notes or top level
- ReadMe.txt file for instructions). Once properly configured,
- the Qpid WCF channel acts as any other System.Transactions aware
- resource, capable of participating in explicit or implicit
- transactions.
-
- Server code:
-
-
-
- Because this operation involves two transaction resources, the
- database and the AMQP message broker, this operates as a full two
- phase commit transaction managed by the Distributed Transaction
- Coordinator service. If the transaction proceeds without error,
- both ExactlyOnceReceived is incremented in the database and the AMQP
- message is consumed from the broker. Otherwise, ExactlyOnceReceived is
- unchanged and AMQP message is returned to its queue on the broker.
-
- For the client code a few changes are made to the non-transacted
- example. For "exactly once" semantics, we set the AMQP "Durable"
- message property and enclose the transacted activities in a
- TransactionScope:
-
- channelFactory =
-new ChannelFactory(amqpBinding, clientEndpoint);
-IHelloService clientProxy = channelFactory.CreateChannel();
-
-using (TransactionScope ts = new TransactionScope())
-{
- AmqpProperties amqpProperties = new AmqpProperties();
- clientProxy.SayHello("Greetings from WCF client");
- // increment ExactlyOnceSent counter on DB
- ts.Complete();
-}
-]]>
-
-
-
-
-
- The .NET Binding for the C++ Messaging Client
-
- The .NET Binding for the C++ Qpid Messaging Client is a library that gives
- any .NET program access to Qpid C++ Messaging objects and methods.
-
-
- .NET Binding for the C++ Messaging Client Component Architecture
-
-
-
-
-This diagram illustrates the code and library components of the binding
-and the hierarchical relationships between them.
-
-
- .NET Binding for the C++ Messaging Client Component Architecture
-
-
-
- Component Name
- Component Function
-
-
-
-
- QPID Messaging C++ Libraries
- The QPID Messaging C++ core run time system
-
-
- Unmanaged C++ Example Source Programs
- Ordinary C++ programs that illustrate using qpid/cpp Messaging directly
- in a native Windows environment.
-
-
- .NET Messaging Binding Library
- The .NET Messaging Binding library provides interoprability between
- managed .NET programs and the unmanaged, native Qpid Messaging C++ core
- run time system. .NET programs create a Reference to this library thereby
- exposing all of the native C++ Messaging functionality to programs
- written in any .NET language.
-
-
- .NET Messaging Managed Callback Library
- An extension of the .NET Messaging Binding Library that provides message
- callbacks in a managed .NET environment.
-
-
- Managed C# .NET Example Source Programs
- Various C# example programs that illustrate using .NET Binding for C++ Messaging in the .NET environment.
-
-
-
-
-
-
-
- .NET Binding for the C++ Messaging Client Examples
-
- This chapter describes the various sample programs that
- are available to illustrate common Qpid Messaging usage.
-
-
- Example : Client - Server
-
-
-
-
-
- Example Name
- Example Description
-
-
-
-
- csharp.example.server
- Creates a Receiver and listens for messages.
- Upon message reception the message content is converted to upper case
- and forwarded to the received message's ReplyTo address.
-
-
- csharp.example.client
- Sends a series of messages to the Server and prints the original message
- content and the received message content.
-
-
-
-
-
-
- Example : Map Sender – Map Receiver
-
-
-
-
-
- Example Name
- Example Description
-
-
-
-
- csharp.map.receiver
- Creates a Receiver and listens for a map message.
- Upon message reception the message is decoded and displayed on the console.
-
-
- csharp.map.sender
- Creates a map message and sends it to map.receiver.
- The map message contains values for every supported .NET Messaging
- Binding data type.
-
-
-
-
-
-
- Example : Spout - Drain
-
-
-
-
-
- Example Name
- Example Description
-
-
-
-
- csharp.example.spout
- Spout is a more complex example of code that generates a series of messages
- and sends them to peer program Drain. Flexible command line arguments allow
- the user to specify a variety of message and program options.
-
-
- csharp.example.drain
- Drain is a more complex example of code that receives a series of messages
- and displays their contents on the console.
-
-
-
-
-
-
- Example : Map Callback Sender – Map Callback Receiver
-
-
-
-
-
- Example Name
- Example Description
-
-
-
-
- csharp.map.callback.receiver
- Creates a Receiver and listens for a map message.
- Upon message reception the message is decoded and displayed on the console.
- This example illustrates the use of the C# managed code callback mechanism
- provided by .NET Messaging Binding Managed Callback Library.
-
-
- csharp.map.callback.sender
- Creates a map message and sends it to map_receiver.
- The map message contains values for every supported .NET Messaging
- Binding data type.
-
-
-
-
-
-
- Example - Declare Queues
-
-
-
-
-
- Example Name
- Example Description
-
-
-
-
- csharp.example.declare_queues
- A program to illustrate creating objects on a broker.
- This program creates a queue used by spout and drain.
-
-
-
-
-
-
- Example: Direct Sender - Direct Receiver
-
-
-
-
-
- Example Name
- Example Description
-
-
-
-
- csharp.direct.receiver
- Creates a Receiver and listens for a messages.
- Upon message reception the message is decoded and displayed on the console.
-
-
- csharp.direct.sender
- Creates a series of messages and sends them to csharp.direct.receiver.
-
-
-
-
-
-
- Example: Hello World
-
-
-
-
-
- Example Name
- Example Description
-
-
-
-
- csharp.example.helloworld
- A program to send a message and to receive the same message.
-
-
-
-
-
-
-
-
- .NET Binding Class Mapping to Underlying C++ Messaging API
-
- This chapter describes the specific mappings between
- classes in the .NET Binding and the underlying C++ Messaging
- API.
-
-
- .NET Binding for the C++ Messaging API Class: Address
-
- .NET Binding for the C++ Messaging API Class: Address
-
-
-
-
-
- .NET Binding Class: Address
-
-
- Language
- Syntax
-
-
-
-
- C++
- class Address
-
-
- .NET
- public ref class Address
-
-
- Constructor
-
-
- C++
- Address();
-
-
- .NET
- public Address();
-
-
- Constructor
-
-
- C++
- Address(const std::string& address);
-
-
- .NET
- public Address(string address);
-
-
- Constructor
-
-
- C++
- Address(const std::string& name, const std::string& subject, const qpid::types::Variant::Map& options, const std::string& type = "");
-
-
- .NET
- public Address(string name, string subject, Dictionary<string, object> options);
-
-
- .NET
- public Address(string name, string subject, Dictionary<string, object> options, string type);
-
-
- Copy constructor
-
-
- C++
- Address(const Address& address);
-
-
- .NET
- public Address(Address address);
-
-
- Destructor
-
-
- C++
- ~Address();
-
-
- .NET
- ~Address();
-
-
- Finalizer
-
-
- C++
- n/a
-
-
- .NET
- !Address();
-
-
- Copy assignment operator
-
-
- C++
- Address& operator=(const Address&);
-
-
- .NET
- public Address op_Assign(Address rhs);
-
-
- Property: Name
-
-
- C++
- const std::string& getName() const;
-
-
- C++
- void setName(const std::string&);
-
-
- .NET
- public string Name { get; set; }
-
-
- Property: Subject
-
-
- C++
- const std::string& getSubject() const;
-
-
- C++
- void setSubject(const std::string&);
-
-
- .NET
- public string Subject { get; set; }
-
-
- Property: Options
-
-
- C++
- const qpid::types::Variant::Map& getOptions() const;
-
-
- C++
- qpid::types::Variant::Map& getOptions();
-
-
- C++
- void setOptions(const qpid::types::Variant::Map&);
-
-
- .NET
- public Dictionary<string, object> Options { get; set; }
-
-
- Property: Type
-
-
- C++
- std::string getType() const;
-
-
- C++
- void setType(const std::string&);
-
-
- .NET
- public string Type { get; set; }
-
-
- Miscellaneous
-
-
- C++
- std::string str() const;
-
-
- .NET
- public string ToStr();
-
-
- Miscellaneous
-
-
- C++
- operator bool() const;
-
-
- .NET
- n/a
-
-
- Miscellaneous
-
-
- C++
- bool operator !() const;
-
-
- .NET
- n/a
-
-
-
-
-
-
- .NET Binding for the C++ Messaging API Class: Connection
-
- .NET Binding for the C++ Messaging API Class: Connection
-
-
-
-
-
- .NET Binding Class: Connection
-
-
- Language
- Syntax
-
-
-
-
- C++
- class Connection : public qpid::messaging::Handle<ConnectionImpl>
-
-
- .NET
- public ref class Connection
-
-
- Constructor
-
-
- C++
- Connection(ConnectionImpl* impl);
-
-
- .NET
- n/a
-
-
- Constructor
-
-
- C++
- Connection();
-
-
- .NET
- n/a
-
-
- Constructor
-
-
- C++
- Connection(const std::string& url, const qpid::types::Variant::Map& options = qpid::types::Variant::Map());
-
-
- .NET
- public Connection(string url);
-
-
- .NET
- public Connection(string url, Dictionary<string, object> options);
-
-
- Constructor
-
-
- C++
- Connection(const std::string& url, const std::string& options);
-
-
- .NET
- public Connection(string url, string options);
-
-
- Copy Constructor
-
-
- C++
- Connection(const Connection&);
-
-
- .NET
- public Connection(Connection connection);
-
-
- Destructor
-
-
- C++
- ~Connection();
-
-
- .NET
- ~Connection();
-
-
- Finalizer
-
-
- C++
- n/a
-
-
- .NET
- !Connection();
-
-
- Copy assignment operator
-
-
- C++
- Connection& operator=(const Connection&);
-
-
- .NET
- public Connection op_Assign(Connection rhs);
-
-
- Method: SetOption
-
-
- C++
- void setOption(const std::string& name, const qpid::types::Variant& value);
-
-
- .NET
- public void SetOption(string name, object value);
-
-
- Method: open
-
-
- C++
- void open();
-
-
- .NET
- public void Open();
-
-
- Property: isOpen
-
-
- C++
- bool isOpen();
-
-
- .NET
- public bool IsOpen { get; }
-
-
- Method: close
-
-
- C++
- void close();
-
-
- .NET
- public void Close();
-
-
- Method: createTransactionalSession
-
-
- C++
- Session createTransactionalSession(const std::string& name = std::string());
-
-
- .NET
- public Session CreateTransactionalSession();
-
-
- .NET
- public Session CreateTransactionalSession(string name);
-
-
- Method: createSession
-
-
- C++
- Session createSession(const std::string& name = std::string());
-
-
- .NET
- public Session CreateSession();
-
-
- .NET
- public Session CreateSession(string name);
-
-
- Method: getSession
-
-
- C++
- Session getSession(const std::string& name) const;
-
-
- .NET
- public Session GetSession(string name);
-
-
- Property: AuthenticatedUsername
-
-
- C++
- std::string getAuthenticatedUsername();
-
-
- .NET
- public string GetAuthenticatedUsername();
-
-
-
-
-
-
- .NET Binding for the C++ Messaging API Class: Duration
-
- .NET Binding for the C++ Messaging API Class: Duration
-
-
-
-
-
- .NET Binding Class: Duration
-
-
- Language
- Syntax
-
-
-
-
- C++
- class Duration
-
-
- .NET
- public ref class Duration
-
-
- Constructor
-
-
- C++
- explicit Duration(uint64_t milliseconds);
-
-
- .NET
- public Duration(ulong mS);
-
-
- Copy constructor
-
-
- C++
- n/a
-
-
- .NET
- public Duration(Duration rhs);
-
-
- Destructor
-
-
- C++
- default
-
-
- .NET
- default
-
-
- Finalizer
-
-
- C++
- n/a
-
-
- .NET
- default
-
-
- Property: Milliseconds
-
-
- C++
- uint64_t getMilliseconds() const;
-
-
- .NET
- public ulong Milliseconds { get; }
-
-
- Operator: *
-
-
- C++
- Duration operator*(const Duration& duration, uint64_t multiplier);
-
-
- .NET
- public static Duration operator *(Duration dur, ulong multiplier);
-
-
- .NET
- public static Duration Multiply(Duration dur, ulong multiplier);
-
-
- C++
- Duration operator*(uint64_t multiplier, const Duration& duration);
-
-
- .NET
- public static Duration operator *(ulong multiplier, Duration dur);
-
-
- .NET
- public static Duration Multiply(ulong multiplier, Duration dur);
-
-
- Constants
-
-
- C++
- static const Duration FOREVER;
-
-
- C++
- static const Duration IMMEDIATE;
-
-
- C++
- static const Duration SECOND;
-
-
- C++
- static const Duration MINUTE;
-
-
- .NET
- public sealed class DurationConstants
-
-
- .NET
- public static Duration FORVER;
-
-
- .NET
- public static Duration IMMEDIATE;
-
-
- .NET
- public static Duration MINUTE;
-
-
- .NET
- public static Duration SECOND;
-
-
-
-
-
-
- .NET Binding for the C++ Messaging API Class: FailoverUpdates
-
- .NET Binding for the C++ Messaging API Class: FailoverUpdates
-
-
-
-
-
- .NET Binding Class: FailoverUpdates
-
-
- Language
- Syntax
-
-
-
-
- C++
- class FailoverUpdates
-
-
- .NET
- public ref class FailoverUpdates
-
-
- Constructor
-
-
- C++
- FailoverUpdates(Connection& connection);
-
-
- .NET
- public FailoverUpdates(Connection connection);
-
-
- Destructor
-
-
- C++
- ~FailoverUpdates();
-
-
- .NET
- ~FailoverUpdates();
-
-
- Finalizer
-
-
- C++
- n/a
-
-
- .NET
- !FailoverUpdates();
-
-
-
-
-
-
- .NET Binding for the C++ Messaging API Class: Message
-
-
-
- .NET Binding for the C++ Messaging API Class: Receiver
-
- .NET Binding for the C++ Messaging API Class: Receiver
-
-
-
-
-
- .NET Binding Class: Receiver
-
-
- Language
- Syntax
-
-
-
-
- C++
- class Receiver
-
-
- .NET
- public ref class Receiver
-
-
- Constructor
-
-
- .NET
- Constructed object is returned by Session.CreateReceiver
-
-
- Copy constructor
-
-
- C++
- Receiver(const Receiver&);
-
-
- .NET
- public Receiver(Receiver receiver);
-
-
- Destructor
-
-
- C++
- ~Receiver();
-
-
- .NET
- ~Receiver();
-
-
- Finalizer
-
-
- C++
- n/a
-
-
- .NET
- !Receiver()
-
-
- Copy assignment operator
-
-
- C++
- Receiver& operator=(const Receiver&);
-
-
- .NET
- public Receiver op_Assign(Receiver rhs);
-
-
- Method: Get
-
-
- C++
- bool get(Message& message, Duration timeout=Duration::FOREVER);
-
-
- .NET
- public bool Get(Message mmsgp);
-
-
- .NET
- public bool Get(Message mmsgp, Duration durationp);
-
-
- Method: Get
-
-
- C++
- Message get(Duration timeout=Duration::FOREVER);
-
-
- .NET
- public Message Get();
-
-
- .NET
- public Message Get(Duration durationp);
-
-
- Method: Fetch
-
-
- C++
- bool fetch(Message& message, Duration timeout=Duration::FOREVER);
-
-
- .NET
- public bool Fetch(Message mmsgp);
-
-
- .NET
- public bool Fetch(Message mmsgp, Duration duration);
-
-
- Method: Fetch
-
-
- C++
- Message fetch(Duration timeout=Duration::FOREVER);
-
-
- .NET
- public Message Fetch();
-
-
- .NET
- public Message Fetch(Duration durationp);
-
-
- Property: Capacity
-
-
- C++
- void setCapacity(uint32_t);
-
-
- C++
- uint32_t getCapacity();
-
-
- .NET
- public uint Capacity { get; set; }
-
-
- Property: Available
-
-
- C++
- uint32_t getAvailable();
-
-
- .NET
- public uint Available { get; }
-
-
- Property: Unsettled
-
-
- C++
- uint32_t getUnsettled();
-
-
- .NET
- public uint Unsettled { get; }
-
-
- Method: Close
-
-
- C++
- void close();
-
-
- .NET
- public void Close();
-
-
- Property: IsClosed
-
-
- C++
- bool isClosed() const;
-
-
- .NET
- public bool IsClosed { get; }
-
-
- Property: Name
-
-
- C++
- const std::string& getName() const;
-
-
- .NET
- public string Name { get; }
-
-
- Property: Session
-
-
- C++
- Session getSession() const;
-
-
- .NET
- public Session Session { get; }
-
-
-
-
-
-
- .NET Binding for the C++ Messaging API Class: Sender
-
- .NET Binding for the C++ Messaging API Class: Sender
-
-
-
-
-
- .NET Binding Class: Sender
-
-
- Language
- Syntax
-
-
-
-
- C++
- class Sender
-
-
- .NET
- public ref class Sender
-
-
- Constructor
-
-
- .NET
- Constructed object is returned by Session.CreateSender
-
-
- Copy constructor
-
-
- C++
- Sender(const Sender&);
-
-
- .NET
- public Sender(Sender sender);
-
-
- Destructor
-
-
- C++
- ~Sender();
-
-
- .NET
- ~Sender();
-
-
- Finalizer
-
-
- C++
- n/a
-
-
- .NET
- !Sender()
-
-
- Copy assignment operator
-
-
- C++
- Sender& operator=(const Sender&);
-
-
- .NET
- public Sender op_Assign(Sender rhs);
-
-
- Method: Send
-
-
- C++
- void send(const Message& message, bool sync=false);
-
-
- .NET
- public void Send(Message mmsgp);
-
-
- .NET
- public void Send(Message mmsgp, bool sync);
-
-
- Method: Close
-
-
- C++
- void close();
-
-
- .NET
- public void Close();
-
-
- Property: Capacity
-
-
- C++
- void setCapacity(uint32_t);
-
-
- C++
- uint32_t getCapacity();
-
-
- .NET
- public uint Capacity { get; set; }
-
-
- Property: Available
-
-
- C++
- uint32_t getAvailable();
-
-
- .NET
- public uint Available { get; }
-
-
- Property: Unsettled
-
-
- C++
- uint32_t getUnsettled();
-
-
- .NET
- public uint Unsettled { get; }
-
-
- Property: Name
-
-
- C++
- const std::string& getName() const;
-
-
- .NET
- public string Name { get; }
-
-
- Property: Session
-
-
- C++
- Session getSession() const;
-
-
- .NET
- public Session Session { get; }
-
-
-
-
-
-
- .NET Binding for the C++ Messaging API Class: Session
-
- .NET Binding for the C++ Messaging API Class: Session
-
-
-
-
-
- .NET Binding Class: Session
-
-
- Language
- Syntax
-
-
-
-
- C++
- class Session
-
-
- .NET
- public ref class Session
-
-
- Constructor
-
-
- .NET
- Constructed object is returned by Connection.CreateSession
-
-
- Copy constructor
-
-
- C++
- Session(const Session&);
-
-
- .NET
- public Session(Session session);
-
-
- Destructor
-
-
- C++
- ~Session();
-
-
- .NET
- ~Session();
-
-
- Finalizer
-
-
- C++
- n/a
-
-
- .NET
- !Session()
-
-
- Copy assignment operator
-
-
- C++
- Session& operator=(const Session&);
-
-
- .NET
- public Session op_Assign(Session rhs);
-
-
- Method: Close
-
-
- C++
- void close();
-
-
- .NET
- public void Close();
-
-
- Method: Commit
-
-
- C++
- void commit();
-
-
- .NET
- public void Commit();
-
-
- Method: Rollback
-
-
- C++
- void rollback();
-
-
- .NET
- public void Rollback();
-
-
- Method: Acknowledge
-
-
- C++
- void acknowledge(bool sync=false);
-
-
- C++
- void acknowledge(Message&, bool sync=false);
-
-
- .NET
- public void Acknowledge();
-
-
- .NET
- public void Acknowledge(bool sync);
-
-
- .NET
- public void Acknowledge(Message __p1);
-
-
- .NET
- public void Acknowledge(Message __p1, bool __p2);
-
-
- Method: Reject
-
-
- C++
- void reject(Message&);
-
-
- .NET
- public void Reject(Message __p1);
-
-
- Method: Release
-
-
- C++
- void release(Message&);
-
-
- .NET
- public void Release(Message __p1);
-
-
- Method: Sync
-
-
- C++
- void sync(bool block=true);
-
-
- .NET
- public void Sync();
-
-
- .NET
- public void Sync(bool block);
-
-
- Property: Receivable
-
-
- C++
- uint32_t getReceivable();
-
-
- .NET
- public uint Receivable { get; }
-
-
- Property: UnsettledAcks
-
-
- C++
- uint32_t getUnsettledAcks();
-
-
- .NET
- public uint UnsetledAcks { get; }
-
-
- Method: NextReceiver
-
-
- C++
- bool nextReceiver(Receiver&, Duration timeout=Duration::FOREVER);
-
-
- .NET
- public bool NextReceiver(Receiver rcvr);
-
-
- .NET
- public bool NextReceiver(Receiver rcvr, Duration timeout);
-
-
- Method: NextReceiver
-
-
- C++
- Receiver nextReceiver(Duration timeout=Duration::FOREVER);
-
-
- .NET
- public Receiver NextReceiver();
-
-
- .NET
- public Receiver NextReceiver(Duration timeout);
-
-
- Method: CreateSender
-
-
- C++
- Sender createSender(const Address& address);
-
-
- .NET
- public Sender CreateSender(Address address);
-
-
- Method: CreateSender
-
-
- C++
- Sender createSender(const std::string& address);
-
-
- .NET
- public Sender CreateSender(string address);
-
-
- Method: CreateReceiver
-
-
- C++
- Receiver createReceiver(const Address& address);
-
-
- .NET
- public Receiver CreateReceiver(Address address);
-
-
- Method: CreateReceiver
-
-
- C++
- Receiver createReceiver(const std::string& address);
-
-
- .NET
- public Receiver CreateReceiver(string address);
-
-
- Method: GetSender
-
-
- C++
- Sender getSender(const std::string& name) const;
-
-
- .NET
- public Sender GetSender(string name);
-
-
- Method: GetReceiver
-
-
- C++
- Receiver getReceiver(const std::string& name) const;
-
-
- .NET
- public Receiver GetReceiver(string name);
-
-
- Property: Connection
-
-
- C++
- Connection getConnection() const;
-
-
- .NET
- public Connection Connection { get; }
-
-
- Property: HasError
-
-
- C++
- bool hasError();
-
-
- .NET
- public bool HasError { get; }
-
-
- Method: CheckError
-
-
- C++
- void checkError();
-
-
- .NET
- public void CheckError();
-
-
-
-
-
-
- .NET Binding Class: SessionReceiver
-
- The SessionReceiver class provides a convenient callback
- mechanism for Messages received by all Receivers on a given
- Session.
-
-
-
-
-
-
- To use this class a client program includes references to both
- Org.Apache.Qpid.Messaging and Org.Apache.Qpid.Messaging.SessionReceiver.
- The calling program creates a function that implements the
- ISessionReceiver interface. This function will be called whenever
- message is received by the session. The callback process is started
- by creating a CallbackServer and will continue to run until the
- client program calls the CallbackServer.Close function.
-
-
- A complete operating example of using the SessionReceiver callback
- is contained in cpp/bindings/qpid/dotnet/examples/csharp.map.callback.receiver.
-
-
-
-
-
-
-
diff --git a/qpid/doc/book/src/qmf/QmfBook.xml b/qpid/doc/book/src/qmf/QmfBook.xml
deleted file mode 100644
index 64a6545fb5..0000000000
--- a/qpid/doc/book/src/qmf/QmfBook.xml
+++ /dev/null
@@ -1,101 +0,0 @@
-
-
-
-
-
-
- QMF - The Qpid Management Framework
- Object and Service-Oriented Management Leveraging the Capabilities of Qpid Messaging
-
-
-
-
- QMF Architecture
- Components: Agents and Consoles
-
- QMF Domains
-
- Data: Objects, Methods, Events, and Schemata
-
- Agent Discovery
-
- Data Access: Queries and Subscriptions
-
-
-
- QMF Schema Definition
- Packages, Objects, and Events
-
- Data Types
-
- Programmatic Schema Definition
-
- XML Schema Definition
-
-
-
- How to Write an Agent
-
-
- How to Write a Console
-
-
- QMF Queries
-
-
- API Reference
- C++ API
-
- Python API
-
- Ruby API
-
-
-
-
- Scale: Large QMF Networks
-
-
- Security
-
-
- The QMF Protocol
- Message Headers
-
- Addressing
-
- Message Protocol
-
- Message Body Details
-
-
-
- Using QMF Messages to Manage the Qpid Broker
-
-
-
diff --git a/qpid/doc/book/src/qmf/QmfIntroduction.xml b/qpid/doc/book/src/qmf/QmfIntroduction.xml
deleted file mode 100644
index db7b8949a5..0000000000
--- a/qpid/doc/book/src/qmf/QmfIntroduction.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
-
-Introduction
-
-
-QMF enhances Qpid Messaging by providing a layer of functionality that makes it easy to implement common management patterns
-using messaging as the basis for communication. QMF consists of three primary parts:
-
-
-
-
-A protocol definition defines conventions for the use of message addresses, message headers, and structured message bodies.
-
-
-
-A core QMF engine provides a C++ API and an implementation of a set of protocol handlers for QMF message communication.
-
-
-
-Bindings are provided that wrap the C++ API for use in other languages such as Python, Ruby, and .NET.
-
-
-
-
diff --git a/qpid/doc/book/xsl/html-custom.xsl b/qpid/doc/book/xsl/html-custom.xsl
deleted file mode 100644
index dbfbcc44c7..0000000000
--- a/qpid/doc/book/xsl/html-custom.xsl
+++ /dev/null
@@ -1,188 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/qpid/doc/dev-readme/QPID-Component-README.odg b/qpid/doc/dev-readme/QPID-Component-README.odg
deleted file mode 100644
index 217a6d68d8..0000000000
Binary files a/qpid/doc/dev-readme/QPID-Component-README.odg and /dev/null differ
diff --git a/qpid/doc/dev-readme/QPID-Component-README.pdf b/qpid/doc/dev-readme/QPID-Component-README.pdf
deleted file mode 100644
index 3012372889..0000000000
Binary files a/qpid/doc/dev-readme/QPID-Component-README.pdf and /dev/null differ
diff --git a/qpid/doc/dev-readme/README.txt b/qpid/doc/dev-readme/README.txt
deleted file mode 100644
index 65a8626e53..0000000000
--- a/qpid/doc/dev-readme/README.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-This directory holds documents of interest to developers.
-
-The documents are descriptions of how Qpid is organized at the source code
-level and not of how Qpid works as a delivered product. They provide
-supporting graphics and illustrations for top-level README.txt files
-located elsewhere in the source tree.
diff --git a/qpid/doc/website/README.txt b/qpid/doc/website/README.txt
deleted file mode 100644
index dcb3b423e5..0000000000
--- a/qpid/doc/website/README.txt
+++ /dev/null
@@ -1,10 +0,0 @@
-To edit the website, check out the /site repo area:
-
- svn co https://svn.apache.org/repos/asf/qpid/site
-
-The HTML files for the site reside in the docs directory, where a README
-can be found to describe the process of adding new content.
-
-It is no longer necessary to generate the main website pages, the live files
-are now edited directly, and are deployed to the web server after check in.
-
diff --git a/qpid/etc/LICENSE b/qpid/etc/LICENSE
deleted file mode 100644
index bc46b77047..0000000000
--- a/qpid/etc/LICENSE
+++ /dev/null
@@ -1,206 +0,0 @@
-=========================================================================
-== Apache License ==
-=========================================================================
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
diff --git a/qpid/etc/NOTICE b/qpid/etc/NOTICE
deleted file mode 100644
index 05f39ba176..0000000000
--- a/qpid/etc/NOTICE
+++ /dev/null
@@ -1,8 +0,0 @@
-// ------------------------------------------------------------------
-// NOTICE file corresponding to the section 4d of The Apache License,
-// Version 2.0, in this case for Qpid bin scripts
-// ------------------------------------------------------------------
-
-Apache Qpid
-Copyright 2006-2008 Apache Software Foundation
-
diff --git a/qpid/etc/svn-auto-props b/qpid/etc/svn-auto-props
deleted file mode 100644
index 35f1d10998..0000000000
--- a/qpid/etc/svn-auto-props
+++ /dev/null
@@ -1,77 +0,0 @@
-#
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-#
-### Section for configuring miscelleneous Subversion options.
-[miscellany]
-### Set enable-auto-props to 'yes' to enable automatic properties
-### for 'svn add' and 'svn import', it defaults to 'no'.
-### Automatic properties are defined in the section 'auto-props'.
-enable-auto-props = yes
-
-### Section for configuring automatic properties.
-### The format of the entries is:
-### file-name-pattern = propname[=value][;propname[=value]...]
-### The file-name-pattern can contain wildcards (such as '*' and
-### '?'). All entries which match will be applied to the file.
-### Note that auto-props functionality must be enabled, which
-### is typically done by setting the 'enable-auto-props' option.
-[auto-props]
-*.java = svn:eol-style=native;svn:keywords=Rev Date
-*.xml = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date
-*.xsl = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date
-*.xsd = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date
-*.xjb = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date
-*.wsdl = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date
-*.properties = svn:mime-type=text/plain;svn:eol-style=native;svn:keywords=Rev Date
-.checkstyle = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date
-.pmd = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date
-.ruleset = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date
-*.c = svn:eol-style=native;svn:keywords=Rev Date
-*.cpp = svn:eol-style=native;svn:keywords=Rev Date
-*.h = svn:eol-style=native;svn:keywords=Rev Date
-*.dsp = svn:eol-style=CRLF
-*.dsw = svn:eol-style=CRLF
-*.sh = svn:eol-style=native;svn:executable
-*.bat = svn:eol-style=native
-*.pl = svn:eol-style=native
-*.py = svn:eol-style=native
-*.cmd = svn:eol-style=native
-*.txt = svn:eol-style=native;svn:mime-type=text/plain
-*.cat = svn:eol-style=native;svn:mime-type=text/plain
-*.htm* = svn:eol-style=native;svn:mime-type=text/html;svn:keywords=Rev Date
-ChangeLog = svn:eol-style=native;svn:mime-type=text/plain
-README* = svn:eol-style=native;svn:mime-type=text/plain
-LICENSE* = svn:eol-style=native;svn:mime-type=text/plain
-NOTICE* = svn:eol-style=native;svn:mime-type=text/plain
-TODO* = svn:eol-style=native;svn:mime-type=text/plain
-KEYS* = svn:eol-style=native;svn:mime-type=text/plain
-INSTALL* = svn:eol-style=native;svn:mime-type=text/plain
-WHATSNEW* = svn:eol-style=native;svn:mime-type=text/plain
-NEWS* = svn:eol-style=native;svn:mime-type=text/plain
-COPYING = svn:eol-style=native;svn:mime-type=text/plain
-*.png = svn:mime-type=image/png
-*.jpg = svn:mime-type=image/jpeg
-*.gif = svn:mime-type=image/gif
-Makefile = svn:eol-style=native
-*.css = svn:eol-style=native
-*.js = svn:eol-style=native
-*.jsx = svn:eol-style=native
-*.py = svn:eol-style=native
-*.rb = svn:eol-style=native
diff --git a/qpid/extras/dispatch/README b/qpid/extras/dispatch/README
deleted file mode 100644
index 24cba9ed6e..0000000000
--- a/qpid/extras/dispatch/README
+++ /dev/null
@@ -1,4 +0,0 @@
-The Qpid Dispatch source tree has been moved to a new location. It can now be found in:
-
- http://svn.apache.org/repos/asf/qpid/dispatch/trunk
-
diff --git a/qpid/packaging/windows/INSTALL_NOTES.html b/qpid/packaging/windows/INSTALL_NOTES.html
deleted file mode 100644
index 03ac200685..0000000000
--- a/qpid/packaging/windows/INSTALL_NOTES.html
+++ /dev/null
@@ -1,100 +0,0 @@
-
-
-Apache Qpid C++ 0.35 Installation Notes
-
-
-
Apache Qpid C++ 0.35 Installation Notes
-
-
Thank you for installing Apache Qpid version 0.35 for Windows.
-If the requisite features were installed, you can now run a broker,
-use the example programs, and design your own messaging programs while
-reading the Qpid C++ API reference documentation.
-
-
Running a Message Broker
-
-In AMQP, programs that send and receive messages are clients. The agents
-that route and queue messages to and from clients are brokers. In order to
-use any Qpid-based messaging program there must be at least one broker
-running which the client(s) can communicate with. The broker need not execute
-on the same system as the client, but it must be reachable using TCP/IP.
-
-
The broker executable is installed in the bin subdirectory
-of your Qpid installation directory. The broker program is
-qpidd.exe. The installation procedure adds the Qpid bin
-directory to the PATH environment variable, so the simplest way to experiment
-with the broker is to open a command prompt window and execute the broker:
-
-qpidd
-
-A small amount of information will be displayed to let you know the broker
-is running and listening for client connections.
-
To stop the broker, you can simply type ^C in the
-command prompt window where the broker is running.
-
-
For a full list of options for the broker, you can use the
---help option.
-
-
Using the Example Programs
-
-
If you installed the example programs, a new environment variable was
-set. QPID_ROOT refers to the Qpid installation directory. The
-Visual Studio project files located in the examples area refer to
-QPID_ROOT to locate both header files and library files.
-
-
The example programs are located in the examples subdirectory
-of the Qpid installation directory. There are a number of examples, each with
-its own subdirectory under examples. You can use the examples to
-
-
Study to learn Qpid programming techniques you may want to use
-
Build and run to observe and test Qpid features
-
-Each example's directory contains source code and Visual Studio 2008 project
-files you can use to build the examples.
-
-
Reading the C++ API Reference Documentation
-
The C++ API reference documentation is HTML and can be viewed using
-your web browser. It is located in the docs\api\html subdirectory
-of the installation directory, but there is also a shortcut to the
-documentation in Start > All Programs > Apache Qpid > Qpid C++ Reference
-Documentation. Selecting that menu item will launch the documentation's
-main page in your default web browser.
-
-
Complete Source Code is Available
-
If you wish to view Qpid's source code, please visit
-
-http://qpid.apache.org/download.html. The source components used to build
-this installed kit are "C++ broker & client" and "C# (.NET, WCF) WCF
-channel (C++ Broker Compatible)."
-
-
Notes
-
Please read the following sections for important notes regarding this
-release.
-
-
CLFS-Based Broker Persistence Module
-
This release includes a second persistence module. The broker can use this
-module to facilitate durable queues, exchanges, bindings, configuration, and
-messages. The new persistence module, like the SQL-based store introduced in
-Qpid 0.6, uses SQL Server Express (or SQL Server) 2005 or newer. However, it
-also used Common Log File System (CLFS) to store message and transaction-related
-information. CLFS and, thus, the new store, is available on Windows Vista and
-Server 2005 and newer.
-The persistence module is a Qpid broker plugin. It is not loaded by
-default; therefore, to gain support for durable items the persistence plugin
-must be loaded into the broker. This can be done using the
---load-module option to load the needed plugins. For example:
-
-The --load-module option can also take a full path. The option
-can also be included in the broker configuration file. A sample is located
-in the conf\qpidd.conf file under the installation directory.
-
-