axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billblo...@apache.org
Subject [axis-axis2-c-core] 13/23:
Date Sat, 04 Apr 2020 15:07:21 GMT
This is an automated email from the ASF dual-hosted git repository.

billblough pushed a commit to branch 1.7.x
in repository https://gitbox.apache.org/repos/asf/axis-axis2-c-core.git

commit 422211afdf057bd75357b73da393a4671c1646d3
Author: Damitha N.M. Kumarage <damitha@apache.org>
AuthorDate: Tue Aug 3 10:00:10 2010 +0000
---
 1.7.0/c/samples/server/session/README | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/1.7.0/c/samples/server/session/README b/1.7.0/c/samples/server/session/README
new file mode 100644
index 0000000..a9f59c1
--- /dev/null
+++ b/1.7.0/c/samples/server/session/README
@@ -0,0 +1,28 @@
+Before you run session client you need to deploy the session service running on Axis2/C Apache
module.
+
+You need to build apache with mod-dbd enabled. I have the following configuration for Apache
build.
+./configure --prefix=/usr/local/apache2 --enable-ssl --enable-setenvif --with-included-apr
--with-mpm=prefork --enable-ssl --enable-setenvif --enable-dbd --enable-mods-shared="mod_log_config
mod_status mod-mime mod-dir" 
+
+Then you need to add the following into to httpd.conf
+---------------------------------------------------------------------------
+DBDriver mysql
+DBDParams "dbname=axis2c user=<username> pass=<password>"
+
+DBDMin  4
+DBDKeep 8
+DBDMax  20
+DBDExptime 300
+DBDPrepareSQL "SELECT value FROM session WHERE id = %s" retrieve_session
+DBDPrepareSQL "INSERT INTO session(id, value) VALUES(%s,%s)" insert_session
+
+---------------------------------------------------------------------------
+
+You need to create a mysql table called session with following schema.
+
+mysql> desc session;
++-------+--------------+------+-----+---------+-------+
+| Field | Type         | Null | Key | Default | Extra |
++-------+--------------+------+-----+---------+-------+
+| id    | varchar(128) | YES  |     | NULL    |       | 
+| value | varchar(512) | YES  |     | NULL    |       | 
++-------+--------------+------+-----+---------+-------+


Mime
View raw message