This document guides you on how to install Sandesha2/C with Axis2/C, and run the server and client samples on Linux and Microsoft Windows operating systems.
This release comes in two forms, source and binary. This document covers both forms.
Please send your feedback to the developer mailing list: c-dev@axis.apache.org (Subscription details are available on the Sandesha2 site.) Please remember to prefix the subject with [Axis2].
This can be done using binary or source distributions. (Download the two distributions)
This version of Sandesha2/C depends on Axis2/C 1.1.0 Download Axis2/C from and install.
./configure --prefix=<axis2c_deploy_path> --enable-static=no --with-axis2=<axis2c_include_path>
This will install the Sandesha2/C as a module in Axis2/C in <axis2c_deploy_path>/modules folder. The module folder contains the Sandesha2/C libraries and the module.xml file.
Sandesha2/C binary distribution for Linux has the following folder structure.
Sandesha2 | + - modules/sandesha2 (sandesha2 module library and module.xml file) + - docs + - config (Contain sample module.xml and axis2.xml files) | + - samples | + - source files of samples in folders + - services (Contain sample service) | + - include ( header files) + - bin (database scripts) + - bin/samples ( sample executables)
To deploy Sandesha2/C in Axis2/C running environment copy the modules/sandesha2 into <axis2c_deploy_path>/modules folder. Do the necessary changes to the <axis2c_deploy_path>/axis2.xml to run Sandesha2/C(Refer to the sample config/axis2.xml for help).
This too can be done using binary or source distributions. (Download the two distributions.)
Sandesha2/C binary distribution will have following directory structure.
Sandesha2 | + - Sandesha2 (sandesha2 module dll and module.xml file) | + - samples | + - bin | + - source files of samples in folders | + - include ( header files)
Now you should be able to run the samples.
#define SANDESHA2_DEFAULT_STORAGE_MGR "persistent" as #define SANDESHA2_DEFAULT_STORAGE_MGR "inmemory".
Or you can change the following entry in the module.xml file.
<parameter name="StorageManager" locked="false">inmemory<parameter>
<parameter name="StorageManager" locked="false">persistent<parameter>
If you want to use persistent storage with MySQL then add the option --with-mysql=<MySQL include file path> to the configure options above. It is assumed that libmysqlclient.so is in /usr/lib folder. It is recommended to use MySQL database for any serious use. It is not included as as the default database because of licensing issues. To run samples in persistent/mysql mode run sandesha2c/config/mysql_schema.sh and sandesha2c/config/init_mysql.sh to create the database schema. The database parameters for MySQL should be included in module.xml. The defaults for server, user and password are localhost, g,g.