Http://qpid.apache.org/index.html
My operating environment Windows 7x64
1. Install and run C ++ broker Windows Installer
1) download C ++ broker Windows Installer
Http://www.apache.org/dist/qpid/0.5-windows/qpidc-0.5.msi
2) create a directory: C: \ temp \
3) console running:
"C: \ Program Files (x86) \ apache \ qpidc-0.5 \ bin \ qpidbroker.exe" -- auth no -- Data-Dir C: \ temp \ qpidd. Data
Option -- auth no authentication
Compile ClientSource codeAnd Test
Check out source code
Https://svn.apache.org/repos/asf/qpid/trunk/qpid
2. c ++ client sample
Full build requires too many packages, so only the C ++ sample project is built.
1) install boost 1.40
Http://www.boostpro.com/download/boost_1_40_setup.exe
Installation and selection
A. Vs 9 support
B. All running Databases
C. Select package: thread, program option, and date time.
2) set the C ++ working directory of
Include: C: \ Program Files (x86) \ apache \ qpidc-0.5 \ include
Lib: C: \ Program Files (x86) \ apache \ qpidc-0.5 \ bin
3) open \ qpid \ CPP \ examples. sln from.
4) delete the file in project options: C ++-> General-> additional include directory.
5) Build
* GMF-Agent build fails, but other projects are normal and can be tested
3. Java client
1) install JDK 6.0 Update 17
(2) install Apache-ant-1.7.1.
3) log on to \ qpid \ Java from the console and run
Ant
4. C # Client
1) install JDK 6.0 Update 17
(2) install Apache-ant-1.7.1.
3) log on to \ qpid \ DOTNET \ qpid. Common \ from the console and run
Ant
4) Modify (the three files under the source code that I got contain invalid characters)
\ Qpid \ DOTNET \ testclient. csproj
\ Qpid \ DOTNET \ topiclistener. csproj
\ Qpid \ DOTNET \ topicpublisher. csproj
<Project defaulttargets = "build"
5) open \ qpid \ DOTNET \ qpid. net. sln from vs, build
5. C # client example
1) install JDK 6.0 Update 17
(2) install Apache-ant-1.7.1.
3) log on to \ qpid \ DOTNET \ Client-010 \ gentools \ from the console \
4) Modify build. xml and jython-version.jar to jython-2.5.0.jar
5) Ant
6) open \ qpid \ DOTNET \ Client-010 \ Client. sln, build
6. Python
Trunk code is too busy to run.
I started to use python3.1, but failed (the difference is too big with version 2.6. The helper who upgraded Python didn't consider being compatible with the previous version)
Later I switched to Python 2.6, but failed again (it seems that the file access permission is incorrect, but no solution was found)
Finally, replace the source code with version 0.5. The following describes the steps.
1) install Python 2.6.4
2) set the environment variable pythonpath = % pythonpath %; <project> \ qpid-0.5 \ Python \;
3) modify \ qpid-0.5 \ Python \ qpid \ connection. py to disable SSL check
Line 58-61 is,
Def sslwrap (sock ):
# If isinstance (sock, socket. ssltype ):
# Return sslwrapper (sock)
# Else:
Return sock
4) modify \ qpid-0.5 \ Python \ qpid \ delegates. py to disable OS. getppid () call
The line 149 is
"Qpid. client_ppid": 0}
5) Run exampe code