incubator-airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sma...@apache.org
Subject svn commit: r1103180 [21/23] - in /incubator/airavata/donations/ogce-donation: ./ modules/ modules/utils/ modules/utils/schemas/ modules/utils/schemas/gfac-schema-utils/ modules/utils/schemas/gfac-schema-utils/generated/ modules/utils/schemas/gfac-sche...
Date Sat, 14 May 2011 18:35:02 GMT
Added: incubator/airavata/donations/ogce-donation/modules/ws-messaging/docs/user-guide.html
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/ws-messaging/docs/user-guide.html?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/ws-messaging/docs/user-guide.html (added)
+++ incubator/airavata/donations/ogce-donation/modules/ws-messaging/docs/user-guide.html Sat May 14 18:34:50 2011
@@ -0,0 +1,1252 @@
+<html>
+
+<head>
+<title>OGCE WSMG Messenger</title>
+<style>
+<!--
+ /* Font Definitions */
+ @font-face
+	{font-family:"Cambria Math";
+	panose-1:2 4 5 3 5 4 6 3 2 4;}
+@font-face
+	{font-family:Cambria;
+	panose-1:2 4 5 3 5 4 6 3 2 4;}
+@font-face
+	{font-family:Calibri;
+	panose-1:2 15 5 2 2 2 4 3 2 4;}
+@font-face
+	{font-family:Tahoma;
+	panose-1:2 11 6 4 3 5 4 4 2 4;}
+@font-face
+	{font-family:"Liberation Serif";}
+@font-face
+	{font-family:Monospace;}
+@font-face
+	{font-family:"Liberation Sans";}
+@font-face
+	{font-family:"DejaVu Sans";}
+@font-face
+	{font-family:"Lohit Hindi";}
+@font-face
+	{font-family:"\@DejaVu Sans";}
+@font-face
+	{font-family:"\@Lohit Hindi";}
+@font-face
+	{font-family:"\@Monospace";}
+@font-face
+	{font-family:"\@Liberation Serif";}
+@font-face
+	{font-family:"\@Liberation Sans";}
+ /* Style Definitions */
+ p.MsoNormal, li.MsoNormal, div.MsoNormal
+	{margin-top:0in;
+	margin-right:0in;
+	margin-bottom:10.0pt;
+	margin-left:0in;
+	line-height:115%;
+	font-size:11.0pt;
+	font-family:"Calibri","sans-serif";}
+h1
+	{margin-top:24.0pt;
+	margin-right:0in;
+	margin-bottom:0in;
+	margin-left:.3in;
+	margin-bottom:.0001pt;
+	text-indent:-.3in;
+	line-height:115%;
+	page-break-after:avoid;
+	font-size:14.0pt;
+	font-family:"Cambria","serif";
+	color:#365F91;}
+h2
+	{margin-top:10.0pt;
+	margin-right:0in;
+	margin-bottom:0in;
+	margin-left:.4in;
+	margin-bottom:.0001pt;
+	text-indent:-.4in;
+	line-height:115%;
+	page-break-after:avoid;
+	font-size:13.0pt;
+	font-family:"Cambria","serif";
+	color:#4F81BD;}
+h3
+	{margin-top:12.0pt;
+	margin-right:0in;
+	margin-bottom:3.0pt;
+	margin-left:.5in;
+	text-indent:-.5in;
+	line-height:115%;
+	page-break-after:avoid;
+	font-size:13.0pt;
+	font-family:"Cambria","serif";}
+p.MsoHeader, li.MsoHeader, div.MsoHeader
+	{margin-top:0in;
+	margin-right:0in;
+	margin-bottom:10.0pt;
+	margin-left:0in;
+	line-height:115%;
+	font-size:11.0pt;
+	font-family:"Calibri","sans-serif";}
+p.MsoFooter, li.MsoFooter, div.MsoFooter
+	{margin-top:0in;
+	margin-right:0in;
+	margin-bottom:10.0pt;
+	margin-left:0in;
+	line-height:115%;
+	font-size:11.0pt;
+	font-family:"Calibri","sans-serif";}
+p.MsoCaption, li.MsoCaption, div.MsoCaption
+	{margin-top:6.0pt;
+	margin-right:0in;
+	margin-bottom:6.0pt;
+	margin-left:0in;
+	line-height:115%;
+	font-size:12.0pt;
+	font-family:"Calibri","sans-serif";
+	font-style:italic;}
+p.MsoList, li.MsoList, div.MsoList
+	{margin-top:0in;
+	margin-right:0in;
+	margin-bottom:6.0pt;
+	margin-left:0in;
+	line-height:115%;
+	font-size:11.0pt;
+	font-family:"Calibri","sans-serif";}
+p.MsoBodyText, li.MsoBodyText, div.MsoBodyText
+	{margin-top:0in;
+	margin-right:0in;
+	margin-bottom:6.0pt;
+	margin-left:0in;
+	line-height:115%;
+	font-size:11.0pt;
+	font-family:"Calibri","sans-serif";}
+p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
+	{margin:0in;
+	margin-bottom:.0001pt;
+	font-size:8.0pt;
+	font-family:"Tahoma","sans-serif";}
+p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing
+	{margin:0in;
+	margin-bottom:.0001pt;
+	font-size:11.0pt;
+	font-family:"Calibri","sans-serif";}
+p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
+	{margin-top:0in;
+	margin-right:0in;
+	margin-bottom:10.0pt;
+	margin-left:.5in;
+	line-height:115%;
+	font-size:11.0pt;
+	font-family:"Calibri","sans-serif";}
+span.Absatz-Standardschriftart
+	{mso-style-name:Absatz-Standardschriftart;}
+span.Heading1Char
+	{mso-style-name:"Heading 1 Char";
+	font-family:"Cambria","serif";
+	color:#365F91;
+	font-weight:bold;}
+span.Heading2Char
+	{mso-style-name:"Heading 2 Char";
+	font-family:"Cambria","serif";
+	color:#4F81BD;
+	font-weight:bold;}
+span.Heading3Char
+	{mso-style-name:"Heading 3 Char";
+	font-family:"Cambria","serif";
+	font-weight:bold;}
+span.HeaderChar
+	{mso-style-name:"Header Char";}
+span.FooterChar
+	{mso-style-name:"Footer Char";}
+span.BalloonTextChar
+	{mso-style-name:"Balloon Text Char";
+	font-family:"Tahoma","sans-serif";}
+span.NumberingSymbols
+	{mso-style-name:"Numbering Symbols";}
+p.Heading, li.Heading, div.Heading
+	{mso-style-name:Heading;
+	margin-top:12.0pt;
+	margin-right:0in;
+	margin-bottom:6.0pt;
+	margin-left:0in;
+	line-height:115%;
+	page-break-after:avoid;
+	font-size:14.0pt;
+	font-family:"Liberation Sans","sans-serif";}
+p.Index, li.Index, div.Index
+	{mso-style-name:Index;
+	margin-top:0in;
+	margin-right:0in;
+	margin-bottom:10.0pt;
+	margin-left:0in;
+	line-height:115%;
+	font-size:11.0pt;
+	font-family:"Calibri","sans-serif";}
+p.TableContents, li.TableContents, div.TableContents
+	{mso-style-name:"Table Contents";
+	margin:0in;
+	margin-bottom:.0001pt;
+	font-size:12.0pt;
+	font-family:"Liberation Serif","serif";}
+p.TableHeading, li.TableHeading, div.TableHeading
+	{mso-style-name:"Table Heading";
+	margin:0in;
+	margin-bottom:.0001pt;
+	text-align:center;
+	font-size:12.0pt;
+	font-family:"Liberation Serif","serif";
+	font-weight:bold;}
+ /* Page Definitions */
+ @page Section1
+	{size:595.3pt 841.9pt;
+	margin:1.0in 1.0in 1.0in 1.0in;}
+div.Section1
+	{page:Section1;}
+ /* List Definitions */
+ ol
+	{margin-bottom:0in;}
+ul
+	{margin-bottom:0in;}
+-->
+</style>
+
+</head>
+
+<body lang=EN-US>
+
+<div class=Section1>
+
+<h1><span style='font-family:"Cambria Math","serif"'>OGCE -WSMG Messenger</span></h1>
+
+<p class=MsoNormal><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<p class=MsoNormal><span style='font-family:"Cambria Math","serif"'>                                OGCE
+WS-Messenger is a “publish-subscribe” based message broker implemented on top
+of Apache Axis2 web services stack. It implements latest WS-eventing and
+WS-Notifications specifications. </span></p>
+
+<p class=MsoNormal><span style='font-family:"Cambria Math","serif"'>                Project
+comprised of  following modules:</span></p>
+
+<p class=MsoNoSpacing style='margin-left:.5in;text-indent:-.25in'><span
+style='font-family:"Cambria Math","serif"'>1.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+</span></span><span style='font-family:"Cambria Math","serif"'>broker</span></p>
+
+<p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>-
+Implementation of publish subscribe mechanism on top of axis2</span></p>
+
+<p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>  </span></p>
+
+<p class=MsoNoSpacing style='margin-left:.5in;text-indent:-.25in'><span
+style='font-family:"Cambria Math","serif"'>2.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+</span></span><span style='font-family:"Cambria Math","serif"'>messenger</span></p>
+
+<p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>- Used
+to run message delivery component of the broker separately.</span></p>
+
+<p class=MsoNoSpacing style='margin-left:.5in;text-indent:-.25in'><span
+style='font-family:"Cambria Math","serif"'>3.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+</span></span><span style='font-family:"Cambria Math","serif"'>message box</span></p>
+
+<p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>- Pull
+based extension for broker. Particularly useful if users are behind a firewall</span></p>
+
+<p class=MsoNoSpacing style='margin-left:.5in;text-indent:-.25in'><span
+style='font-family:"Cambria Math","serif"'>4.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+</span></span><span style='font-family:"Cambria Math","serif"'>workflow-tracking</span></p>
+
+<p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>- API to
+track scientific workflows</span></p>
+
+<p class=MsoNormal style='margin-left:.25in'><b><span style='font-family:"Cambria Math","serif"'>                  </span></b></p>
+
+<h2><span style='font-family:"Cambria Math","serif"'>SVN location: </span></h2>
+
+<p class=MsoListParagraph align=center style='text-align:center'><span
+style='font-family:"Cambria Math","serif"'>https://ogce.svn.sourceforge.net/svnroot/ogce/incubator/OGCE-WS-Messenger/trunk</span></p>
+
+<h2><span style='font-family:"Cambria Math","serif"'>Build WS-Messenger:</span></h2>
+
+<p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<p class=MsoNormal>Prerequisites:</p>
+
+<p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>1. Java
+1.5</span></p>
+
+<p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>2.
+Maven  (tested on  v 2.2.0)</span></p>
+
+<p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>3. Ant
+(tested on 1.7.1)</span></p>
+
+<p class=MsoNormal style='margin-left:.25in'><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>Steps:</span></p>
+
+<p class=MsoListParagraph style='margin-bottom:0in;margin-bottom:.0001pt;
+text-indent:-.25in;line-height:normal'><span style='font-family:"Cambria Math","serif"'>1.<span
+style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span
+style='font-family:"Cambria Math","serif"'>Check out the code from SVN</span></p>
+
+<p class=MsoListParagraph style='margin-bottom:0in;margin-bottom:.0001pt;
+text-indent:-.25in;line-height:normal'><span style='font-family:"Cambria Math","serif"'>2.<span
+style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span
+style='font-family:"Cambria Math","serif"'>Copy axis2 libraries
+(AXIS2_HOME/libs/*) to following folder:</span></p>
+
+<p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<p class=MsoNoSpacing align=center style='text-align:center'><span
+style='font-family:"Cambria Math","serif"'>&lt;PROJECT_DIR&gt;/messenger/axis2_dependencies</span></p>
+
+<p class=MsoNormal><span style='font-family:"Cambria Math","serif"'>(These
+libraries will be bundled along with messenger servlet)</span></p>
+
+<p class=MsoListParagraph style='margin-bottom:0in;margin-bottom:.0001pt;
+text-indent:-.25in;line-height:normal'><span style='font-family:"Cambria Math","serif"'>3.<span
+style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span
+style='font-family:"Cambria Math","serif"'>Go to project folder and type:</span></p>
+
+<p class=MsoNormal align=center style='text-align:center'><b><span
+style='font-family:"Cambria Math","serif"'>mvn clean install -Dmaven.test.skip=true</span></b></p>
+
+<p class=MsoNormal style='text-indent:34.15pt'><span style='font-family:"Cambria Math","serif"'>(-Dmaven.test.skip=true
+will skip testing phase)</span></p>
+
+<p class=MsoNormal style='text-indent:34.15pt'><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<p class=MsoNormal style='text-indent:34.15pt'><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<p class=MsoNormal style='text-indent:34.15pt'><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<p class=MsoListParagraph style='text-indent:-.25in'><span style='font-family:
+"Cambria Math","serif"'>4.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+</span></span><span style='font-family:"Cambria Math","serif"'>Executable are
+located at:</span></p>
+
+<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0
+ style='margin-left:2.75pt;border-collapse:collapse'>
+ <tr>
+  <td width=332 valign=top style='width:249.25pt;border:solid black 1.0pt;
+  border-right:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents align=center style='text-align:center;layout-grid-mode:
+  char'><span style='font-family:"Cambria Math","serif"'>Executable</span></p>
+  </td>
+  <td width=333 valign=top style='width:249.75pt;border:solid black 1.0pt;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents align=center style='text-align:center;layout-grid-mode:
+  char'><span style='font-family:"Cambria Math","serif"'>Location</span></p>
+  </td>
+ </tr>
+ <tr style='height:38.65pt'>
+  <td width=332 valign=top style='width:249.25pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt;height:38.65pt'>
+  <p class=MsoNoSpacing style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>broker-&lt;version&gt;.jar </span></p>
+  <p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+  <p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>(should
+  be used to write client code)</span></p>
+  </td>
+  <td width=333 valign=top style='width:249.75pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt;height:38.65pt'>
+  <p class=MsoNoSpacing style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>&lt;PROJECT_DIR&gt;/broker/target</span></p>
+  </td>
+ </tr>
+ <tr>
+  <td width=332 valign=top style='width:249.25pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=MsoNoSpacing style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>broker-&lt;version&gt;.aar </span></p>
+  <p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+  <p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>(should
+  be used run messenger)</span></p>
+  </td>
+  <td width=333 valign=top style='width:249.75pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=MsoNoSpacing style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>&lt;PROJECT_DIR&gt;/broker/target</span></p>
+  </td>
+ </tr>
+ <tr>
+  <td width=332 valign=top style='width:249.25pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=MsoNoSpacing style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>messenger-&lt;version&gt;.war</span></p>
+  <p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+  <p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>(if
+  message delivery has to decoupled from broker  deploy this in a servlet
+  container)</span></p>
+  </td>
+  <td width=333 valign=top style='width:249.75pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=MsoNoSpacing style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>&lt;PROJECT_DIR&gt;/messenger/target/</span></p>
+  </td>
+ </tr>
+ <tr>
+  <td width=332 valign=top style='width:249.25pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=MsoNoSpacing style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>Database scripts </span></p>
+  <p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+  <p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>(Contains
+  a scripts to create mysql tables needed for ws-messenger)</span></p>
+  </td>
+  <td width=333 valign=top style='width:249.75pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=MsoNoSpacing style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>&lt;PROJECT_DIR&gt;/broker/src/main/resources/database_scripts</span></p>
+  </td>
+ </tr>
+ <tr>
+  <td width=332 valign=top style='width:249.25pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=MsoNoSpacing style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>wsmg.broker.properties.sample</span></p>
+  <p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+  <p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>(sample
+  configuration file for running broker or messenger servlet)</span></p>
+  </td>
+  <td width=333 valign=top style='width:249.75pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=MsoNoSpacing style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif";color:black'>&lt;PROJECT_DIR&gt;/broker/src/main/resources</span></p>
+  </td>
+ </tr>
+ <tr>
+  <td width=332 valign=top style='width:249.25pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=MsoNoSpacing style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>msgbox-&lt;version&gt;.aar</span></p>
+  <p class=MsoNoSpacing style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>&nbsp;</span></p>
+  <p class=MsoNoSpacing style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>(should be used run message box)</span></p>
+  </td>
+  <td width=333 valign=top style='width:249.75pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif";color:black'>&lt;PROJECT_DIR&gt;/msgbox/target</span></p>
+  </td>
+ </tr>
+ <tr>
+  <td width=332 valign=top style='width:249.25pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=MsoNoSpacing style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>msgbox-&lt;version&gt;.jar</span></p>
+  <p class=MsoNoSpacing style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>&nbsp;</span></p>
+  <p class=MsoNoSpacing style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>(should be used write client code)</span></p>
+  </td>
+  <td width=333 valign=top style='width:249.75pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif";color:black'>&lt;PROJECT_DIR&gt;/msgbox/target</span></p>
+  </td>
+ </tr>
+ <tr>
+  <td width=332 valign=top style='width:249.25pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=MsoNoSpacing style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>workflow-tracking-&lt;version&gt;.jar</span></p>
+  <p class=MsoNoSpacing style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>&nbsp;</span></p>
+  <p class=MsoNoSpacing style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>(should be used to track work flows)</span></p>
+  </td>
+  <td width=333 valign=top style='width:249.75pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif";color:black'>&lt;PROJECT_DIR&gt;/workflow-tracking/target</span></p>
+  </td>
+ </tr>
+</table>
+
+<p class=MsoNormal>&nbsp;</p>
+
+<h2><span style='font-family:"Cambria Math","serif"'>Assemble WS-Messenger binary
+distribution:</span></h2>
+
+<p class=MsoNormal><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<ol style='margin-top:0in' start=1 type=1>
+ <li class=MsoNormal><span style='font-family:"Cambria Math","serif"'>Go to
+     &lt;PROJECT_DIR&gt;/ant</span></li>
+</ol>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Cambria Math","serif"'>This
+contains ant script (build.xml) and configuration file (build.properties) which
+assembles WS-messenger distribution.</span></p>
+
+<ol style='margin-top:0in' start=2 type=1>
+ <li class=MsoNormal><span style='font-family:"Cambria Math","serif"'>Set
+     following configurations in <b>build.properties</b></span></li>
+</ol>
+
+<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0
+ style='margin-left:2.75pt;border-collapse:collapse'>
+ <thead>
+  <tr>
+   <td width=165 valign=top style='width:123.6pt;border:solid black 1.0pt;
+   border-right:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+   <p class=TableHeading style='layout-grid-mode:char'><span style='font-family:
+   "Cambria Math","serif"'>Property name</span></p>
+   </td>
+   <td width=353 valign=top style='width:264.7pt;border:solid black 1.0pt;
+   border-right:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+   <p class=TableHeading style='layout-grid-mode:char'><span style='font-family:
+   "Cambria Math","serif"'>Description </span></p>
+   </td>
+   <td width=148 valign=top style='width:110.7pt;border:solid black 1.0pt;
+   padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+   <p class=TableHeading style='layout-grid-mode:char'><span style='font-family:
+   "Cambria Math","serif"'>Sample value</span></p>
+   </td>
+  </tr>
+ </thead>
+ <tr>
+  <td width=165 valign=top style='width:123.6pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif";color:black'>release.version</span></p>
+  </td>
+  <td width=353 valign=top style='width:264.7pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-size:
+  11.0pt;font-family:"Cambria Math","serif"'>Release version of the software</span></p>
+  </td>
+  <td width=148 valign=top style='width:110.7pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-size:
+  11.0pt;font-family:"Cambria Math","serif"'>1</span></p>
+  </td>
+ </tr>
+ <tr>
+  <td width=165 valign=top style='width:123.6pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif";color:black'>axis2.home.dir</span></p>
+  </td>
+  <td width=353 valign=top style='width:264.7pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-size:
+  11.0pt;font-family:"Cambria Math","serif"'>Directory where axis2 distribution
+  resides. This will be used to create standalone version of ws-messenger</span></p>
+  </td>
+  <td width=148 valign=top style='width:110.7pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif";color:black'>/Apps/axis2-1.5.1</span></p>
+  </td>
+ </tr>
+</table>
+
+<p class=MsoNormal>&nbsp;</p>
+
+<p class=MsoNormal><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<ol style='margin-top:0in' start=3 type=1>
+ <li class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:
+     normal'><span style='font-family:"Cambria Math","serif"'>Running ant
+     (default target will create a zip file)</span></li>
+</ol>
+
+<p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:
+normal'><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:
+normal'><span style='font-family:"Cambria Math","serif"'>                                Created
+distribution zip file is located at:</span></p>
+
+<p class=MsoNormal><span style='font-family:"Cambria Math","serif"'>                                                                                &lt;PROJECT_DIR&gt;/target/</span></p>
+
+<ol style='margin-top:0in' start=4 type=1>
+ <li class=MsoNormal><span style='font-family:"Cambria Math","serif"'>Run “<b>ant
+     clean</b>” to delete temporary folders</span></li>
+</ol>
+
+<h2>Configure WS-Messenger</h2>
+
+<p class=MsoNormal><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0
+ style='margin-left:2.75pt;border-collapse:collapse'>
+ <thead>
+  <tr>
+   <td width=183 valign=top style='width:137.4pt;border:solid black 1.0pt;
+   border-right:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+   <p class=TableHeading style='layout-grid-mode:char'><span style='font-family:
+   "Cambria Math","serif"'>Configuration</span></p>
+   </td>
+   <td width=260 valign=top style='width:194.95pt;border:solid black 1.0pt;
+   border-right:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+   <p class=TableHeading style='layout-grid-mode:char'><span style='font-family:
+   "Cambria Math","serif"'>Description</span></p>
+   </td>
+   <td width=222 valign=top style='width:166.65pt;border:solid black 1.0pt;
+   padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+   <p class=TableHeading style='layout-grid-mode:char'><span style='font-family:
+   "Cambria Math","serif"'>Sample Value</span></p>
+   </td>
+  </tr>
+ </thead>
+ <tr>
+  <td width=183 valign=top style='width:137.4pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-size:
+  11.0pt;font-family:"Cambria Math","serif"'>broker.jdbc.driver</span></p>
+  </td>
+  <td width=260 valign=top style='width:194.95pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-size:
+  11.0pt;font-family:"Cambria Math","serif"'>Data base driver.</span></p>
+  </td>
+  <td width=222 valign=top style='width:166.65pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-size:
+  11.0pt;font-family:"Cambria Math","serif"'>com.mysql.jdbc.Driver</span></p>
+  </td>
+ </tr>
+ <tr>
+  <td width=183 valign=top style='width:137.4pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-size:
+  11.0pt;font-family:"Cambria Math","serif"'>broker.jdbc.url</span></p>
+  </td>
+  <td width=260 valign=top style='width:194.95pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-size:
+  11.0pt;font-family:"Cambria Math","serif"'>Url string used to connect the
+  data base</span></p>
+  </td>
+  <td width=222 valign=top style='width:166.65pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-size:
+  11.0pt;font-family:"Cambria Math","serif"'>jdbc:mysql://localhost:3306/wsmg?user=wsmg&amp;password=wsmg</span></p>
+  </td>
+ </tr>
+ <tr>
+  <td width=183 valign=top style='width:137.4pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-size:
+  11.0pt;font-family:"Cambria Math","serif"'>broker.start.delivery.thread</span></p>
+  </td>
+  <td width=260 valign=top style='width:194.95pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-size:
+  11.0pt;font-family:"Cambria Math","serif"'>If set to true message delivery
+  thread will be started.</span></p>
+  <p class=TableContents><span style='font-size:11.0pt;font-family:"Cambria Math","serif"'>Applicable
+  when only running broker. </span></p>
+  <p class=TableContents><span style='font-size:11.0pt;font-family:"Cambria Math","serif"'>user
+  must set this to 'false' if he  wishes run message deliver component
+  separately ( e.g. messenger servlet)  </span></p>
+  </td>
+  <td width=222 valign=top style='width:166.65pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-size:
+  11.0pt;font-family:"Cambria Math","serif"'>true | false</span></p>
+  <p class=TableContents><span style='font-size:11.0pt;font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+  </td>
+ </tr>
+ <tr>
+  <td width=183 valign=top style='width:137.4pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>broker.socket.timeout</span></p>
+  </td>
+  <td width=260 valign=top style='width:194.95pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-size:
+  11.0pt;font-family:"Cambria Math","serif"'>Connection time out in
+  milliseconds.</span></p>
+  <p class=TableContents><span style='font-size:11.0pt;font-family:"Cambria Math","serif"'>Set
+  this to '0' if user wishes connections never to be timed out. (not
+  recommended)</span></p>
+  </td>
+  <td width=222 valign=top style='width:166.65pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>4000</span></p>
+  </td>
+ </tr>
+ <tr style='height:47.65pt'>
+  <td width=183 valign=top style='width:137.4pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt;height:47.65pt'>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>broker.storage.type</span></p>
+  </td>
+  <td width=260 valign=top style='width:194.95pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt;height:47.65pt'>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>Specifies message, subscriptions  should be stored in
+  a database or not.  </span></p>
+  </td>
+  <td width=222 valign=top style='width:166.65pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt;height:47.65pt'>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>memory | persistent</span></p>
+  </td>
+ </tr>
+ <tr style='height:47.65pt'>
+  <td width=183 valign=top style='width:137.4pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt;height:47.65pt'>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>broker.delivery.method</span></p>
+  </td>
+  <td width=260 valign=top style='width:194.95pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt;height:47.65pt'>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>Specifies what mechanism to be used deliver messages</span></p>
+  </td>
+  <td width=222 valign=top style='width:166.65pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt;height:47.65pt'>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>serial | parallel | pcrew</span></p>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>serial – single theaded delivery</span></p>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>parallel – dynamic thread pool based delivery</span></p>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>pcrew – fixed thread pool based delivery </span></p>
+  </td>
+ </tr>
+ <tr style='height:47.65pt'>
+  <td width=183 valign=top style='width:137.4pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt;height:47.65pt'>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>broker.msg.delivery.retries</span></p>
+  </td>
+  <td width=260 valign=top style='width:194.95pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt;height:47.65pt'>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>number of message delivery failures before a url
+  become black listed (default is 2)</span></p>
+  </td>
+  <td width=222 valign=top style='width:166.65pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt;height:47.65pt'>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>2</span></p>
+  </td>
+ </tr>
+ <tr style='height:47.65pt'>
+  <td width=183 valign=top style='width:137.4pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt;height:47.65pt'>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>consumer.expiration.time.gap</span></p>
+  </td>
+  <td width=260 valign=top style='width:194.95pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt;height:47.65pt'>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>time period (in seconds) a url will be kept blacklisted
+  (default is 5 seconds) </span></p>
+  </td>
+  <td width=222 valign=top style='width:166.65pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt;height:47.65pt'>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>5</span></p>
+  </td>
+ </tr>
+ <tr style='height:47.65pt'>
+  <td width=183 valign=top style='width:137.4pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt;height:47.65pt'>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>sending.batch.size</span></p>
+  </td>
+  <td width=260 valign=top style='width:194.95pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt;height:47.65pt'>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>maximum number of messages to be send to a one
+  consumer/url at time. applicable if 'broker.delivery.method' is 'pcrew'</span></p>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>(default is 10)</span></p>
+  </td>
+  <td width=222 valign=top style='width:166.65pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt;height:47.65pt'>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>10</span></p>
+  </td>
+ </tr>
+ <tr style='height:47.65pt'>
+  <td width=183 valign=top style='width:137.4pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt;height:47.65pt'>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>sending.thread.pool.size</span></p>
+  </td>
+  <td width=260 valign=top style='width:194.95pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt;height:47.65pt'>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>size of the thread pool. only applicable if
+  'broker.delivery.method' is 'pcrew'. (default is 4)</span></p>
+  </td>
+  <td width=222 valign=top style='width:166.65pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt;height:47.65pt'>
+  <p class=MsoNormal style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>4</span></p>
+  </td>
+ </tr>
+</table>
+
+<p class=MsoNormal>&nbsp;</p>
+
+<h2>Run Ws-messenger</h2>
+
+<p class=MsoNormal><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<h3>Run standalone version supplied with binary distribution:</h3>
+
+<ol style='margin-top:0in' start=1 type=1>
+ <li class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:
+     normal'><span style='font-family:"Cambria Math","serif"'>Unzip binary
+     distribution.</span></li>
+</ol>
+
+<p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:
+normal'><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<ol style='margin-top:0in' start=2 type=1>
+ <li class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:
+     normal'><span style='font-family:"Cambria Math","serif"'>Create (mysql)
+     data base tables using the script given below:</span></li>
+</ol>
+
+<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
+margin-left:.5in;margin-bottom:.0001pt;line-height:normal'><span
+style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<p class=MsoNormal align=center style='text-align:center'><b><span
+style='font-family:"Cambria Math","serif"'>&lt;extracted location&gt;/database_scripts/mysqlCreationScript.sql</span></b></p>
+
+<ol style='margin-top:0in' start=3 type=1>
+ <li class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:
+     normal'><span style='font-family:"Cambria Math","serif"'>Set configuration
+     values based provided sample file. </span></li>
+</ol>
+
+<p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:
+normal'><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:
+normal'><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><span style='font-family:"Cambria Math","serif"'>-
+Sample configuration file is located at:</span></p>
+
+<p class=MsoNoSpacing style='margin-left:.5in;text-indent:.5in'><b><span
+style='font-family:"Cambria Math","serif"'>&lt;extracted
+location&gt;/standalone-server/axis2/wsmg.broker.properties.sample</span></b></p>
+
+<p class=MsoNoSpacing align=center style='text-align:center'><b><span
+style='font-family:"Cambria Math","serif"'>&nbsp;</span></b></p>
+
+<p class=MsoNormal style='text-indent:.5in'><b><span style='font-family:"Cambria Math","serif"'>-
+</span></b><span style='font-family:"Cambria Math","serif"'>Configuration file
+should be saved as:</span></p>
+
+<p class=MsoNormal style='margin-left:.5in;text-indent:.5in'><b><span
+style='font-family:"Cambria Math","serif"'>&lt;extracted
+location&gt;/standalone-server/axis2/wsmg.broker.properties</span></b></p>
+
+<ol style='margin-top:0in' start=4 type=1>
+ <li class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:
+     normal'><span style='font-family:"Cambria Math","serif"'>Run axis2 server
+     by running the command:</span></li>
+</ol>
+
+<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
+margin-left:.5in;margin-bottom:.0001pt;line-height:normal'><span
+style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<p class=MsoNormal><b><span style='font-family:"Cambria Math","serif"'>                        </span></b><span
+style='font-family:"Cambria Math","serif"'>Linux:</span></p>
+
+<p class=MsoNormal><span style='font-family:"Cambria Math","serif"'>                                &lt;extracted
+location&gt;/standalone-server/axis2/bin/axis2server.sh     </span></p>
+
+<p class=MsoNormal><span style='font-family:"Cambria Math","serif"'>                                Windows:</span></p>
+
+<p class=MsoNormal><span style='font-family:"Cambria Math","serif"'>                                &lt;extracted
+location&gt;/standalone-server/axis2/bin/axis2server.bat</span></p>
+
+<h3>Run Ws-messenger using axis2 servlet:</h3>
+
+<p class=MsoNormal><b><span style='font-family:"Cambria Math","serif"'>            </span></b><span
+style='font-family:"Cambria Math","serif"'>(Tested on tomcat v 6.0.20 &amp;
+axis2 v1.5)</span></p>
+
+<ol style='margin-top:0in' start=1 type=1>
+ <li class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:
+     normal'><span style='font-family:"Cambria Math","serif"'>Copy broker aar
+     file to axis2 distribution accordingly.</span></li>
+ <li class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:
+     normal'><span style='font-family:"Cambria Math","serif"'>Create database
+     tables </span></li>
+ <li class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:
+     normal'><span style='font-family:"Cambria Math","serif"'>Set
+     configurations appropriately:</span></li>
+ <ol style='margin-top:0in' start=1 type=a>
+  <li class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;
+      line-height:normal'><span style='font-family:"Cambria Math","serif"'>copy
+      configuration file ( named  wsmg.broker.properties) to </span></li>
+ </ol>
+</ol>
+
+<p class=MsoNormal style='margin-left:1.0in;text-indent:.5in'><b><span
+style='font-family:"Cambria Math","serif"'>&lt;Axis-servlet&gt;/webapps/axis2/WEB-INF/classes</span></b></p>
+
+<p class=MsoNoSpacing style='margin-left:.5in;text-indent:.5in'><b><span
+style='font-family:"Cambria Math","serif"'>Note:  </span></b><span
+style='font-family:"Cambria Math","serif"'>a sample configuration file is
+located at:</span></p>
+
+<p class=MsoNoSpacing style='margin-left:1.0in'><span style='font-family:"Cambria Math","serif"'>&lt;PROJECT_DIR&gt;/broker/src/main/resources/wsmg.broker.properties.sample</span></p>
+
+<p class=MsoNormal><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<ol style='margin-top:0in' start=4 type=1>
+ <li class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:
+     normal'><span style='font-family:"Cambria Math","serif"'>Start tomcat
+     server.</span></li>
+</ol>
+
+<h3>Run message delivery component separately</h3>
+
+<p class=MsoNormal>&nbsp;</p>
+
+<p class=MsoNormal><b><span style='font-family:"Cambria Math","serif"'>Steps: </span></b></p>
+
+<ol style='margin-top:0in' start=1 type=1>
+ <li class=MsoNormal><span style='font-family:"Cambria Math","serif"'>Configure
+     and run broker using any mode previously described,  with following 
+     configuration:</span></li>
+</ol>
+
+<p class=MsoNormal align=center style='text-align:center'><b><span
+style='font-family:"Cambria Math","serif"'>broker.start.delivery.thread=false</span></b></p>
+
+<ol style='margin-top:0in' start=2 type=1>
+ <li class=MsoNormal><span style='font-family:"Cambria Math","serif"'>Deploy
+     messenger servlet.</span></li>
+ <li class=MsoNormal><span style='font-family:"Cambria Math","serif"'>Set
+     configurations appropriately.</span></li>
+</ol>
+
+<p class=MsoNormal align=center style='text-align:center;text-indent:.25in'><span
+style='font-family:"Cambria Math","serif"'>&lt;TOMECAT_HOME&gt;/webapps/messenger/WEB-INF/classes/wsmg.broker.properties</span></p>
+
+<ol style='margin-top:0in' start=4 type=1>
+ <li class=MsoNormal><span style='font-family:"Cambria Math","serif"'>Start
+     tomcat.</span></li>
+</ol>
+
+<h3>Run Samples</h3>
+
+<p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>Sample
+programs are located at:</span></p>
+
+<p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>                                &lt;Extracted
+location&gt;/client-api/samples</span></p>
+
+<p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>Prerequisites:</span></p>
+
+<p class=MsoNoSpacing style='margin-left:.5in;text-indent:.5in'><span
+style='font-family:"Cambria Math","serif"'>ant (tested on 1.7.1)</span></p>
+
+<p class=MsoNoSpacing style='margin-left:.5in;text-indent:.5in'><span
+style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<p class=MsoNoSpacing style='margin-left:.5in;text-indent:.5in'><span
+style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<p class=MsoNoSpacing style='margin-left:.5in;text-indent:.5in'><span
+style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<p class=MsoNormal><span style='font-family:"Cambria Math","serif"'>Steps:</span></p>
+
+<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
+margin-left:.75in;margin-bottom:.0001pt;text-indent:-.25in;line-height:normal'><span
+style='font-family:"Cambria Math","serif"'>1)<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;
+</span></span><span style='font-family:"Cambria Math","serif"'>Run WS-messenger
+in any mode previously described.</span></p>
+
+<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
+margin-left:.75in;margin-bottom:.0001pt;text-indent:-.25in;line-height:normal'><span
+style='font-family:"Cambria Math","serif"'>2)<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;
+</span></span><span style='font-family:"Cambria Math","serif"'>Configure
+samples  following the instructions given in README.TXT (located in every
+sample directory)</span></p>
+
+<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
+margin-left:.75in;margin-bottom:.0001pt;text-indent:-.25in;line-height:normal'><span
+style='font-family:"Cambria Math","serif"'>3)<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;
+</span></span><span style='font-family:"Cambria Math","serif"'>Run following
+command:</span></p>
+
+<p class=MsoNormal><b><span style='font-family:"Cambria Math","serif"'>                                    ant
+run</span></b></p>
+
+<h2><span style='font-family:"Cambria Math","serif"'>Run WS-Notification Viewer</span></h2>
+
+<p class=MsoNormal><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>Steps:</span></p>
+
+<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
+margin-left:.5in;margin-bottom:.0001pt;text-indent:-.25in;line-height:normal'><span
+style='font-family:"Cambria Math","serif"'>1)<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;
+</span></span><span style='font-family:"Cambria Math","serif"'>Following
+commands will run the WS-Notification Viewer.</span></p>
+
+<p class=MsoNormal><span style='font-family:"Cambria Math","serif"'>                                java
+-jar broker-&lt;version&gt;.jar  </span></p>
+
+<p class=MsoNormal style='margin-left:.5in'><b><span style='font-family:"Cambria Math","serif"'>NOTE</span></b><span
+style='font-family:"Cambria Math","serif"'>: when running the program axis2
+libraries should be specified in the class-path. Additionally <b>AXIS2_HOME</b>
+environment variable should be set accordingly. </span></p>
+
+<h1><span style='font-family:"Cambria Math","serif"'>OGCE Message Box </span></h1>
+
+<p class=MsoNormal><u><span style='font-family:"Cambria Math","serif"'><span
+ style='text-decoration:none'>&nbsp;</span></span></u></p>
+
+<h2><span style='font-family:"Cambria Math","serif"'>Build OGCE-Message Box:</span></h2>
+
+<p class=MsoNormal><b><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></b></p>
+
+<p class=MsoNormal><span style='font-family:"Cambria Math","serif"'>Message box
+is a sub module of OGCE – WS Messenger, therefore once the OGCE-Messenger is
+built message box binaries will be available at following locations: </span></p>
+
+<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0
+ style='margin-left:2.75pt;border-collapse:collapse'>
+ <tr>
+  <td width=332 valign=top style='width:249.25pt;border:solid black 1.0pt;
+  border-right:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents align=center style='text-align:center;layout-grid-mode:
+  char'><span style='font-family:"Cambria Math","serif"'>Executable</span></p>
+  </td>
+  <td width=333 valign=top style='width:249.75pt;border:solid black 1.0pt;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents align=center style='text-align:center;layout-grid-mode:
+  char'><span style='font-family:"Cambria Math","serif"'>Location</span></p>
+  </td>
+ </tr>
+ <tr>
+  <td width=332 valign=top style='width:249.25pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>msgbox-&lt;version&gt;.jar </span></p>
+  <p class=TableContents><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+  <p class=TableContents><span style='font-family:"Cambria Math","serif"'>(should
+  be used to write client code)</span></p>
+  </td>
+  <td width=333 valign=top style='width:249.75pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>&lt;PROJECT_DIR&gt;/msgbox/target</span></p>
+  </td>
+ </tr>
+ <tr>
+  <td width=332 valign=top style='width:249.25pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>msgbox-&lt;version&gt;.aar </span></p>
+  <p class=TableContents><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+  <p class=TableContents><span style='font-family:"Cambria Math","serif"'>(should
+  be used run msgbox)</span></p>
+  </td>
+  <td width=333 valign=top style='width:249.75pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-family:
+  "Cambria Math","serif"'>&lt;PROJECT_DIR&gt;/msgbox/target</span></p>
+  </td>
+ </tr>
+</table>
+
+<h2><span style='font-family:"Cambria Math","serif"'>Assemble message box
+distribution:</span></h2>
+
+<p class=MsoNoSpacing>&nbsp;</p>
+
+<p class=MsoNoSpacing><span style='font-family:"Cambria Math","serif"'>                Message
+box binaries are automatically included in distribution. </span></p>
+
+<p class=MsoNoSpacing>&nbsp;</p>
+
+<p class=MsoNormal><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<h2><span style='font-family:"Cambria Math","serif"'>Configure message box</span></h2>
+
+<p class=MsoNormal><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0
+ style='margin-left:2.75pt;border-collapse:collapse'>
+ <thead>
+  <tr>
+   <td width=183 valign=top style='width:137.4pt;border:solid black 1.0pt;
+   border-right:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+   <p class=TableHeading style='layout-grid-mode:char'><span style='font-size:
+   11.0pt;font-family:"Cambria Math","serif"'>Configuration</span></p>
+   </td>
+   <td width=260 valign=top style='width:194.95pt;border:solid black 1.0pt;
+   border-right:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+   <p class=TableHeading style='layout-grid-mode:char'><span style='font-size:
+   11.0pt;font-family:"Cambria Math","serif"'>Description</span></p>
+   </td>
+   <td width=222 valign=top style='width:166.65pt;border:solid black 1.0pt;
+   padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+   <p class=TableHeading style='layout-grid-mode:char'><span style='font-size:
+   11.0pt;font-family:"Cambria Math","serif"'>Sample Value</span></p>
+   </td>
+  </tr>
+ </thead>
+ <tr>
+  <td width=183 valign=top style='width:137.4pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-size:
+  11.0pt;font-family:"Cambria Math","serif"'>msgBox.jdbc.driver</span></p>
+  </td>
+  <td width=260 valign=top style='width:194.95pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-size:
+  11.0pt;font-family:"Cambria Math","serif"'>Data base driver.</span></p>
+  </td>
+  <td width=222 valign=top style='width:166.65pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-size:
+  11.0pt;font-family:"Cambria Math","serif"'>com.mysql.jdbc.Driver</span></p>
+  </td>
+ </tr>
+ <tr>
+  <td width=183 valign=top style='width:137.4pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-size:
+  11.0pt;font-family:"Cambria Math","serif"'>msgBox.jdbc.url</span></p>
+  </td>
+  <td width=260 valign=top style='width:194.95pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-size:
+  11.0pt;font-family:"Cambria Math","serif"'>Url string used to connect the data
+  base</span></p>
+  </td>
+  <td width=222 valign=top style='width:166.65pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-size:
+  11.0pt;font-family:"Cambria Math","serif"'>jdbc:mysql://127.0.0.1:3306/wsmg?user=root&amp;password=</span></p>
+  </td>
+ </tr>
+ <tr>
+  <td width=183 valign=top style='width:137.4pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-size:
+  11.0pt;font-family:"Cambria Math","serif"'>msgBox.usedatabase</span></p>
+  </td>
+  <td width=260 valign=top style='width:194.95pt;border-top:none;border-left:
+  solid black 1.0pt;border-bottom:solid black 1.0pt;border-right:none;
+  padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-size:
+  11.0pt;font-family:"Cambria Math","serif"'>If set to 'true' use MySql
+  database. If set to 'false' use inmemory implementation. In this scenario
+  database settings i.e-broker.jdbc.url is not required. </span></p>
+  </td>
+  <td width=222 valign=top style='width:166.65pt;border:solid black 1.0pt;
+  border-top:none;padding:2.75pt 2.75pt 2.75pt 2.75pt'>
+  <p class=TableContents style='layout-grid-mode:char'><span style='font-size:
+  11.0pt;font-family:"Cambria Math","serif"'>true | false</span></p>
+  <p class=TableContents><span style='font-size:11.0pt;font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+  </td>
+ </tr>
+</table>
+
+<h2><span style='font-family:"Cambria Math","serif"'>Run Message Box</span></h2>
+
+<p class=MsoNormal><b><u><span style='font-family:"Cambria Math","serif"'><span
+ style='text-decoration:none'>&nbsp;</span></span></u></b></p>
+
+<ol style='margin-top:0in' start=1 type=1>
+ <li class=MsoNormal><span style='font-family:"Cambria Math","serif"'>Unzip
+     binary distribution.</span></li>
+ <li class=MsoNormal><span style='font-family:"Cambria Math","serif"'>Create
+     (mysql) data base tables using the script given below:</span></li>
+</ol>
+
+<p class=MsoNoSpacing style='margin-left:.5in;text-indent:.5in'><b><span
+style='font-family:"Cambria Math","serif"'>&lt;extracted
+location&gt;/database_scripts/db.sql</span></b></p>
+
+<p class=MsoNormal><b><span style='font-family:"Cambria Math","serif"'>&nbsp;</span></b></p>
+
+<ol style='margin-top:0in' start=3 type=1>
+ <li class=MsoNormal><span style='font-family:"Cambria Math","serif"'>Set
+     configuration values by editing msgBox.properties file located in
+     extracted folder.</span></li>
+ <li class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:
+     normal'><span style='font-family:"Cambria Math","serif"'>Copy ‘msgBox.properties’
+     file into Axis2’s WEB-INF/classes folder.</span></li>
+</ol>
+
+<p class=MsoNormal style='margin-top:0in;margin-right:0in;margin-bottom:0in;
+margin-left:.5in;margin-bottom:.0001pt;line-height:normal'><span
+style='font-family:"Cambria Math","serif"'>&nbsp;</span></p>
+
+<ol style='margin-top:0in' start=5 type=1>
+ <li class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:
+     normal'><span style='font-family:"Cambria Math","serif"'>Now Copy
+     msgbox-1.0.aar into Axis2 webapps folder if Axis2 runs as a standalone
+     application or in to axis2/WEB-INF/services folder if Axis2 runs as a
+     servlet with Tomcat. </span></li>
+</ol>
+
+<p class=MsoNormal>&nbsp;</p>
+
+</div>
+
+</body>
+
+</html>

Added: incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/ant/build.properties
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/ant/build.properties?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/ant/build.properties (added)
+++ incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/ant/build.properties Sat May 14 18:34:50 2011
@@ -0,0 +1,5 @@
+msgbox.module.name=msgbox
+msgbox.artifact.id=msgbox
+release.version=0.0.1
+axis2.home.dir=/Apps/axis2-1.5
+

Added: incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/ant/build.xml
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/ant/build.xml?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/ant/build.xml (added)
+++ incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/ant/build.xml Sat May 14 18:34:50 2011
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+
+<project name="wsmg-msgbox" default="assemble" basedir=".">
+	<property file="build.properties" />
+	<property name="msgbox.dir" value="../" />
+	<property name="msgbox.target.dir" value="${msgbox.dir}/target" />
+	<property name="msgbox.resources.dir" value="${msgbox.dir}/resources" />
+	<property name="samples.dir" value="${msgbox.dir}/src/samples" />
+	<property name="distribution.root.dir.name" value="wsmg-msgbox-${release.version}" />
+	<property name="aar.file.extension" value="aar" />
+	<property name="zip.file.name" value="${distribution.root.dir.name}.zip" />
+
+
+	<target name="cleanAndCreateDis" depends="clean">
+		<antcall target="assemble" />
+	</target>
+
+	<target name="clean">
+		<delete dir="${distribution.root.dir}" />
+	</target>
+
+	<target name="cleanAll" depends="clean">
+		<delete>
+			<fileset dir="../${distribution.root.dir.name}">
+				<include name="../${distribution.root.dir.name}*zip" />
+			</fileset>
+		</delete>
+	</target>
+
+	<target name="assemble">
+
+		<mkdir dir="../${distribution.root.dir.name}" />
+		<copy todir="../${distribution.root.dir.name}" overwrite="yes">
+			<fileset dir="${msgbox.target.dir}" includes="${msgbox.artifact.id}*${aar.file.extension}" />
+		</copy>
+
+		<!-- copy cofig file -->
+		<copy todir="../${distribution.root.dir.name}" overwrite="yes">
+			<fileset dir="${msgbox.resources.dir}" includes="*properties*" />
+		</copy>
+		
+		<!-- copy jar file -->
+		<copy todir="../${distribution.root.dir.name}" overwrite="yes">
+			<fileset dir="${msgbox.target.dir}" includes="${msgbox.artifact.id}*jar" />
+		</copy>
+		
+		<antcall target="copyDatabaseScripts" />
+		<antcall target="copySamples" />
+		<antcall target="createZipFile" />
+		<delete dir="../wsmg-msgbox-0.0.1"/>
+
+	</target>
+
+	<target name="copyDatabaseScripts">
+		<!-- copy database scripts -->
+		<copy todir="../${distribution.root.dir.name}/database_scripts" overwrite="yes">
+			<fileset dir="${msgbox.resources.dir}" includes="*.sql" />
+		</copy>
+	</target>
+
+	<target name="copySamples">
+		<copy todir="../${distribution.root.dir.name}" overwrite="yes">
+			<fileset dir="${msgbox.dir}/src/samples" />
+		</copy>
+	</target>
+
+
+	<target name="createZipFile">
+		<zip destfile="../target/${zip.file.name}" basedir="../${distribution.root.dir.name}" update="true" />
+	</target>
+
+</project>

Added: incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/pom.xml
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/pom.xml?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/pom.xml (added)
+++ incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/pom.xml Sat May 14 18:34:50 2011
@@ -0,0 +1,114 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+	<parent>
+		<artifactId>ws-messenger</artifactId>
+		<groupId>org.ogce.ws-messenger</groupId>
+		<version>1.1.1</version>
+	</parent>
+
+	<modelVersion>4.0.0</modelVersion>
+	<groupId>org.ogce.msgbox</groupId>
+	<artifactId>msgbox</artifactId>
+	<packaging>jar</packaging>
+	<name>msgbox</name>
+
+	<url>http://maven.apache.org</url>
+
+	<distributionManagement>
+		<repository>
+			<id>extreme-lab-maven2-repository</id>
+			<name>Extreme Lab Maven2 Repository</name>
+			<url>scp://rainier.extreme.indiana.edu/l/extreme/java/repository/</url>
+		</repository>
+	</distributionManagement>
+	<repositories>
+		<repository>
+			<id>m2-snapshot-repository</id>
+			<url>http://people.apache.org/repo/m2-snapshot-repository</url>
+			<releases>
+			</releases>
+			<snapshots>
+				<enabled>false</enabled>
+			</snapshots>
+		</repository>
+	</repositories>
+	<dependencies>
+		
+		<dependency>
+			<groupId>org.apache.axis2</groupId>
+			<artifactId>axis2-kernel</artifactId>
+			<version>${axis2.version}</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>mysql</groupId>
+			<artifactId>mysql-connector-java</artifactId>
+			<version>5.1.6</version>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.axis2</groupId>
+			<artifactId>axis2-transport-local</artifactId>
+			<version>1.5</version>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.axis2</groupId>
+			<artifactId>axis2-transport-http</artifactId>
+			<version>1.5</version>
+			<scope>compile</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.axis2</groupId>
+			<artifactId>axis2-adb</artifactId>
+			<version>${axis2.version}</version>
+			<scope>provided</scope>
+		</dependency>
+	</dependencies>
+	<build>
+		<defaultGoal>install</defaultGoal>
+		<sourceDirectory>src/main</sourceDirectory>
+		<testSourceDirectory>src/test</testSourceDirectory>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-compiler-plugin</artifactId>
+				<configuration>
+					<source>1.5</source>
+					<target>1.5</target>
+				</configuration>
+			</plugin>
+			<plugin>
+				<groupId>org.apache.axis2</groupId>
+				<artifactId>axis2-aar-maven-plugin</artifactId>
+				<version>${axis2.version}</version>
+				<configuration>
+					<servicesXmlFile>resources/services.xml</servicesXmlFile>
+				</configuration>
+				<executions>
+					<execution>
+						<id>createAAR</id>
+						<phase>package</phase>
+						<goals>
+							<goal>aar</goal>
+						</goals>
+					</execution>
+				</executions>
+			</plugin>
+		</plugins>
+		<resources>
+			<resource>
+				<directory>resources</directory>
+				<targetPath>META-INF</targetPath>
+				<includes>
+					<include>**/*.wsdl</include>
+					<include>**/*.xml</include>
+				</includes>
+			</resource>
+		</resources>
+	</build>
+	<properties>
+		<axis2.version>1.5</axis2.version>
+	</properties>
+</project>

Added: incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/resources/log4j.properties
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/resources/log4j.properties?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/resources/log4j.properties (added)
+++ incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/resources/log4j.properties Sat May 14 18:34:50 2011
@@ -0,0 +1,6 @@
+### direct log messages to stdout ###
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.Target=System.out
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
+log4j.rootLogger=info, stdout

Added: incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/resources/msgBox.properties
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/resources/msgBox.properties?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/resources/msgBox.properties (added)
+++ incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/resources/msgBox.properties Sat May 14 18:34:50 2011
@@ -0,0 +1,7 @@
+msgBox.jdbc.driver=com.mysql.jdbc.Driver
+msgBox.jdbc.url=jdbc:mysql://127.0.0.1:3306/wsmg?user=root&password=root
+msgBox.usedatabase=false
+messagePreservationDays=2
+messagePreservationHours=0
+messagePreservationMinutes=0
+

Added: incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/resources/msgbox_tables.sql
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/resources/msgbox_tables.sql?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/resources/msgbox_tables.sql (added)
+++ incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/resources/msgbox_tables.sql Sat May 14 18:34:50 2011
@@ -0,0 +1,19 @@
+
+CREATE TABLE `msgBoxes` (
+  `msgboxid` varchar(100) NOT NULL default '',
+  PRIMARY KEY  (`msgboxid`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1;
+
+
+DROP TABLE IF EXISTS msgbox;
+
+CREATE TABLE `msgbox` (
+  `id` int(11) NOT NULL auto_increment,
+  `xml` longblob NOT NULL,
+  `msgboxid` varchar(100) NOT NULL default '""',
+  `messageid` varchar(100) default '""',
+  `soapaction` varchar(100) default '""',
+  `time` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
+  PRIMARY KEY  (`id`),
+  KEY `MSGBOXID` (`msgboxid`)
+) ENGINE=MyISAM AUTO_INCREMENT=7665 DEFAULT CHARSET=latin1;
\ No newline at end of file

Propchange: incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/resources/msgbox_tables.sql
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/resources/services.xml
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/resources/services.xml?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/resources/services.xml (added)
+++ incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/resources/services.xml Sat May 14 18:34:50 2011
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+	<!-- This file was auto-generated from WSDL -->
+	<!--
+		by the Apache Axis2 version: 1.4 Built on : Apr 26, 2008 (06:24:30
+		EDT)
+	-->
+<serviceGroup>
+	<service name="MsgBoxService" scope="application"
+		class="edu.indiana.extreme.www.xgws.msgbox.MsgBoxServiceLifeCycle">
+		<messageReceivers>
+			<messageReceiver mep="http://www.w3.org/ns/wsdl/in-out"
+				class="edu.indiana.extreme.www.xgws.msgbox.MsgBoxServiceMessageReceiverInOut" />
+		</messageReceivers>
+		<parameter name="ServiceClass">edu.indiana.extreme.www.xgws.msgbox.MsgBoxServiceSkeleton
+		</parameter>
+		<parameter name="useOriginalwsdl">false</parameter>
+		<parameter name="modifyUserWSDLPortAddress">true</parameter>
+		<operation name="storeMessages" mep="http://www.w3.org/ns/wsdl/in-out"
+			namespace="http://www.extreme.indiana.edu/xgws/msgbox/2004/">
+			<actionMapping>http://www.extreme.indiana.edu/xgws/msgbox/2004/storeMessages
+			</actionMapping>
+			<outputActionMapping>http://www.extreme.indiana.edu/xgws/msgbox/2004/MsgBoxPT/storeMessagesResponse
+			</outputActionMapping>
+		</operation>
+		<operation name="destroyMsgBox" mep="http://www.w3.org/ns/wsdl/in-out"
+			namespace="http://www.extreme.indiana.edu/xgws/msgbox/2004/">
+			<actionMapping>http://www.extreme.indiana.edu/xgws/msgbox/2004/destroyMsgBox
+			</actionMapping>
+			<outputActionMapping>http://www.extreme.indiana.edu/xgws/msgbox/2004/MsgBoxPT/destroyMsgBoxResponse
+			</outputActionMapping>
+		</operation>
+		<operation name="takeMessages" mep="http://www.w3.org/ns/wsdl/in-out"
+			namespace="http://www.extreme.indiana.edu/xgws/msgbox/2004/">
+			<actionMapping>http://www.extreme.indiana.edu/xgws/msgbox/2004/takeMessages
+			</actionMapping>
+			<outputActionMapping>http://www.extreme.indiana.edu/xgws/msgbox/2004/MsgBoxPT/takeMessagesResponse
+			</outputActionMapping>
+		</operation>
+		<operation name="createMsgBox" mep="http://www.w3.org/ns/wsdl/in-out"
+			namespace="http://www.extreme.indiana.edu/xgws/msgbox/2004/">
+			<actionMapping>http://www.extreme.indiana.edu/xgws/msgbox/2004/createMsgBox
+			</actionMapping>
+			<outputActionMapping>http://www.extreme.indiana.edu/xgws/msgbox/2004/MsgBoxPT/createMsgBoxResponse
+			</outputActionMapping>
+		</operation>
+		<parameter name="configuration.file.name" locked="false">msgBox.properties</parameter>
+	</service>
+
+</serviceGroup>

Propchange: incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/resources/services.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/src/main/java/edu/indiana/extreme/www/xgws/msgbox/ConfigurationManager.java
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/src/main/java/edu/indiana/extreme/www/xgws/msgbox/ConfigurationManager.java?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/src/main/java/edu/indiana/extreme/www/xgws/msgbox/ConfigurationManager.java (added)
+++ incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/src/main/java/edu/indiana/extreme/www/xgws/msgbox/ConfigurationManager.java Sat May 14 18:34:50 2011
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Lanka Software Foundation (LSF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The LSF 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.
+ */
+
+package edu.indiana.extreme.www.xgws.msgbox;
+
+import java.util.Properties;
+
+public class ConfigurationManager {
+	protected Properties configurations = new Properties();
+
+	public ConfigurationManager(String configFileName) {
+		try {
+			configurations.load(this.getClass().getClassLoader()
+					.getResourceAsStream("/"+configFileName));
+
+		} catch (Exception e) {
+			throw new RuntimeException("unable to load configurations", e);
+		}
+
+	}
+
+	public String getConfig(String configName) {
+
+		return configurations.getProperty(configName);
+	}
+	public String getConfig(String configName, String defaultVal) {
+		return configurations.getProperty(configName, defaultVal);
+	}
+}

Added: incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/src/main/java/edu/indiana/extreme/www/xgws/msgbox/MsgBoxServiceLifeCycle.java
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/src/main/java/edu/indiana/extreme/www/xgws/msgbox/MsgBoxServiceLifeCycle.java?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/src/main/java/edu/indiana/extreme/www/xgws/msgbox/MsgBoxServiceLifeCycle.java (added)
+++ incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/src/main/java/edu/indiana/extreme/www/xgws/msgbox/MsgBoxServiceLifeCycle.java Sat May 14 18:34:50 2011
@@ -0,0 +1,160 @@
+/*
+ * Licensed to the Lanka Software Foundation (LSF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The LSF 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.
+ */
+
+package edu.indiana.extreme.www.xgws.msgbox;
+
+import java.sql.Connection;
+import java.sql.DriverManager;
+import java.sql.SQLException;
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.concurrent.ConcurrentHashMap;
+
+import org.apache.axis2.context.ConfigurationContext;
+import org.apache.axis2.description.AxisService;
+import org.apache.axis2.engine.Handler;
+import org.apache.axis2.engine.Phase;
+import org.apache.log4j.Logger;
+
+import edu.indiana.extreme.www.xgws.msgbox.Storage.DB_Pool.DatabaseStorageImpl;
+import edu.indiana.extreme.www.xgws.msgbox.Storage.DB_Pool.JdbcStorage;
+import edu.indiana.extreme.www.xgws.msgbox.Storage.memory.InMemoryImpl;
+import edu.indiana.extreme.www.xgws.msgbox.util.ConfigKeys;
+import edu.indiana.extreme.www.xgws.msgbox.util.ConfigurationManager;
+import edu.indiana.extreme.www.xgws.msgbox.util.MsgBoxCommonConstants;
+
+public class MsgBoxServiceLifeCycle implements
+		org.apache.axis2.engine.ServiceLifeCycle {
+
+	private static final String CONFIGURATION_FILE_NAME = "configuration.file.name";
+	Logger logger = Logger.getLogger(MsgBoxServiceLifeCycle.class);
+	JdbcStorage db;
+
+	public void shutDown(ConfigurationContext configurationcontext,
+			AxisService axisservice) {
+		System.out.println("Message box shutting down");
+		if (db != null)
+			db.closeAllConnections();
+	}
+
+	public void startUp(ConfigurationContext configurationcontext,
+			AxisService axisservice) {
+
+		overrideAddressingPhaseHander(configurationcontext);
+
+		// Load the configuration file from the classpath
+		ConfigurationManager confmanager = new ConfigurationManager(
+				"msgBox.properties");
+		configurationcontext.setProperty(MsgBoxCommonConstants.CONF_MANAGER,
+				confmanager);
+		initDatabase(configurationcontext, confmanager);
+		configurationcontext.setProperty(
+				MsgBoxCommonConstants.INIT_MSG_BOX_SKELETON_TRUE, false);
+	}
+
+	public void initDatabase(ConfigurationContext configurationcontext,
+			ConfigurationManager confmanager) {
+
+		boolean dbImplemented = true;
+		if (confmanager.getConfig(ConfigKeys.USE_DATABSE_STORAGE)
+				.equalsIgnoreCase("true")) {
+			if (!checkConnection(confmanager)) {
+				logger
+						.fatal("Database creation failure at MsgBoxServiceLifeCycle class. Cannot connect with the database");
+				throw new RuntimeException("Database failure");
+			}
+			db = new JdbcStorage(true, confmanager);
+			try {
+				MsgBoxServiceSkeleton.setStorage(new DatabaseStorageImpl(db));
+			} catch (SQLException e) {
+				throw new RuntimeException("Database failure");
+			}
+		}
+		if (confmanager.getConfig(ConfigKeys.USE_DATABSE_STORAGE)
+				.equalsIgnoreCase("false")) {
+			ConcurrentHashMap<String, LinkedList<String>> map = new ConcurrentHashMap<String, LinkedList<String>>();
+			InMemoryImpl tempStor = new InMemoryImpl();
+			tempStor.setMap(map);
+			MsgBoxServiceSkeleton.setStorage(tempStor);
+			dbImplemented = false;
+		}
+
+		configurationcontext.setProperty(
+				MsgBoxCommonConstants.DB_IMPLEMENTED_TRUE, dbImplemented);
+	}
+
+	public boolean checkConnection(ConfigurationManager confmanager) {
+		boolean dbexists = true;
+		Connection conn;
+		try {
+			Class.forName(confmanager.getConfig(ConfigKeys.JDBC_DRIVER))
+					.newInstance();
+			conn = DriverManager.getConnection(confmanager
+					.getConfig(ConfigKeys.MSG_BOX_JDBC_URL));
+			try {
+				conn.close();
+			} catch (SQLException e) {
+				logger.fatal("Database connect is not closed at the test", e);
+			}
+		} catch (Exception e) {
+			logger
+					.fatal(
+							"Checked for database connection with provided info. Failed connection",
+							e);
+			dbexists = false;
+		}
+		return dbexists;
+	}
+
+	private void overrideAddressingPhaseHander(
+			ConfigurationContext configContext) {
+		List<Phase> inflowPhases = configContext.getAxisConfiguration()
+				.getPhasesInfo().getINPhases();
+		boolean foundFlag = false;
+
+		for (Phase p : inflowPhases) {
+
+			if (p.getName().equalsIgnoreCase("Addressing")) {
+
+				List<Handler> handlers = p.getHandlers();
+
+				for (Iterator<Handler> ite = handlers.iterator(); ite.hasNext();) {
+					Handler h = ite.next();
+					if (h.getClass()
+							.isAssignableFrom(StoreMessageHandler.class)) {
+						p.removeHandler(h.getHandlerDesc());
+						break;
+					}
+				}
+
+				p.addHandler(new StoreMessageHandler(), 0);
+				foundFlag = true;
+				break;
+			}
+
+		}
+
+		if (!foundFlag) {
+			throw new RuntimeException(
+					"unable to find addressing phase - inside inflow phases");
+		}
+
+	}
+}
\ No newline at end of file

Added: incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/src/main/java/edu/indiana/extreme/www/xgws/msgbox/MsgBoxServiceMessageReceiverInOut.java
URL: http://svn.apache.org/viewvc/incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/src/main/java/edu/indiana/extreme/www/xgws/msgbox/MsgBoxServiceMessageReceiverInOut.java?rev=1103180&view=auto
==============================================================================
--- incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/src/main/java/edu/indiana/extreme/www/xgws/msgbox/MsgBoxServiceMessageReceiverInOut.java (added)
+++ incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/src/main/java/edu/indiana/extreme/www/xgws/msgbox/MsgBoxServiceMessageReceiverInOut.java Sat May 14 18:34:50 2011
@@ -0,0 +1,165 @@
+/*
+ * Licensed to the Lanka Software Foundation (LSF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The LSF 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.
+ */
+
+package edu.indiana.extreme.www.xgws.msgbox;
+
+import org.apache.axiom.om.OMElement;
+import org.apache.axiom.soap.SOAPEnvelope;
+import org.apache.axiom.soap.SOAPFactory;
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.context.MessageContext;
+import org.apache.log4j.Logger;
+
+import edu.indiana.extreme.www.xgws.msgbox.util.MsgBoxOperations;
+
+/**
+ * MsgBoxServiceMessageReceiverInOut message receiver
+ */
+
+public class MsgBoxServiceMessageReceiverInOut extends
+		org.apache.axis2.receivers.AbstractInOutMessageReceiver {
+
+	private static org.apache.log4j.Logger logger = Logger
+			.getLogger(MsgBoxServiceMessageReceiverInOut.class);
+
+	public void invokeBusinessLogic(
+			org.apache.axis2.context.MessageContext msgContext,
+			org.apache.axis2.context.MessageContext newMsgContext)
+			throws org.apache.axis2.AxisFault {
+
+		// get the implementation class for the Web Service
+		Object obj = getTheImplementationObject(msgContext);
+
+		MsgBoxServiceSkeleton skel = (MsgBoxServiceSkeleton) obj;
+
+		// Out Envelop
+		org.apache.axiom.soap.SOAPEnvelope envelope = null;
+		// Find the axisOperation that has been set by the Dispatch phase.
+		org.apache.axis2.description.AxisOperation op = msgContext
+				.getOperationContext().getAxisOperation();
+		if (op == null) {
+			throw new org.apache.axis2.AxisFault(
+					"Operation is not located, if this is doclit style the SOAP-ACTION should specified via the SOAP Action to use the RawXMLProvider");
+		}
+
+		String operationName = getOperationName(msgContext);
+		MsgBoxOperations msgType = MsgBoxOperations.valueFrom(operationName);
+		SOAPEnvelope enlp = msgContext.getEnvelope();
+		// set messageboxId
+		String clientId = null;
+		String toAddress = msgContext.getTo().getAddress();
+		int biginIndex = toAddress.indexOf("clientid");
+		clientId = toAddress.substring(biginIndex + "clientid".length() + 1);
+		try {
+			ProcessingContext procCtxt = new ProcessingContext();
+
+			switch (msgType) {
+
+			case STORE_MSGS: {
+				if (biginIndex != -1) {
+
+					procCtxt.setMessage(enlp.getBody().getFirstElement());
+					procCtxt.setMsgBoxId(clientId);
+					procCtxt.setMessageId(msgContext.getMessageID());
+					procCtxt.setSoapAction(msgContext.getSoapAction());
+					OMElement response = skel.storeMessages(procCtxt);
+					envelope = toEnvelope(getSOAPFactory(msgContext), response);
+				}
+
+				else {
+					throw new AxisFault("clientid cannot be found");
+				}
+
+			}
+				break;
+
+			case DESTROY_MSGBOX: {
+				if (biginIndex != -1) {
+					procCtxt.setMsgBoxId(clientId);
+					envelope = toEnvelope(getSOAPFactory(msgContext), skel
+							.destroyMsgBox(procCtxt));
+				} else {
+					throw new AxisFault("clientid cannot be found");
+				}
+			}
+				break;
+
+			case TAKE_MSGS: {
+				if (biginIndex != -1) {
+					procCtxt.setMsgBoxId(clientId);
+					OMElement respEl = skel.takeMessages(procCtxt);
+					envelope = toEnvelope(getSOAPFactory(msgContext), respEl);
+				} else {
+					throw new AxisFault("clientid cannot be found");
+				}
+			}
+				break;
+
+			case CREATE_MSGBOX: {
+				// procCtxt.setMsgBoxId(clientId);
+				OMElement response = skel.createMsgBox();
+				envelope = toEnvelope(getSOAPFactory(msgContext), response);
+
+			}
+				break;
+
+			}
+
+		} catch (Exception e) {
+			logger.fatal("Exception", e);
+			throw new AxisFault("Exception in Message Box ", e);
+		}
+		
+		newMsgContext.setEnvelope(envelope);
+		newMsgContext.getOptions().setProperty(
+				org.apache.axis2.transport.http.HTTPConstants.CHUNKED,
+				Boolean.FALSE);
+	}
+
+	//
+
+	private org.apache.axiom.soap.SOAPEnvelope toEnvelope(SOAPFactory factory,
+			OMElement response) {
+
+		org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory
+				.getDefaultEnvelope();
+		emptyEnvelope.getBody().addChild(response);
+		return emptyEnvelope;
+	}
+
+	protected String getOperationName(MessageContext inMsg) throws AxisFault {
+
+		org.apache.axis2.description.AxisOperation op = inMsg
+				.getOperationContext().getAxisOperation();
+		if (op == null) {
+			throw new AxisFault(
+					"Operation is not located, if this is doclit style the SOAP-ACTION should specified via the SOAP Action to use the RawXMLProvider");
+		}
+
+		java.lang.String operationName = null;
+		if ((op.getName() == null)
+				|| ((operationName = org.apache.axis2.util.JavaUtils
+						.xmlNameToJava(op.getName().getLocalPart())) == null)) {
+			throw new AxisFault("invalid operation found");
+		}
+
+		return operationName;
+	}
+
+}// end of class

Propchange: incubator/airavata/donations/ogce-donation/modules/ws-messaging/msgbox/src/main/java/edu/indiana/extreme/www/xgws/msgbox/MsgBoxServiceMessageReceiverInOut.java
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message