summaryrefslogtreecommitdiffstats
path: root/samples/server/session
diff options
context:
space:
mode:
authorGravatar damitha2010-08-03 09:53:20 +0000
committerGravatar damitha2010-08-03 09:53:20 +0000
commitdff8f7f1a06425da86215020b37609c3ee9d5e62 (patch)
tree94b0a17fa192f76237d8fe0daa670e1ddbce7790 /samples/server/session
parenta05da7dad68d03ef8399c901d32bcbe3ac77a606 (diff)
downloadaxis2c-dff8f7f1a06425da86215020b37609c3ee9d5e62.tar.gz
axis2c-dff8f7f1a06425da86215020b37609c3ee9d5e62.tar.bz2
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@981798 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'samples/server/session')
-rw-r--r--samples/server/session/README28
1 files changed, 28 insertions, 0 deletions
diff --git a/samples/server/session/README b/samples/server/session/README
new file mode 100644
index 0000000..a9f59c1
--- /dev/null
+++ b/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 | |
++-------+--------------+------+-----+---------+-------+