How to install WS-Messenger

1. Download Messenger here and extract to a location, which will later be pointed as WSNT_HOME.
2. create a mysql database, use db/mysqlCreationScript.txt to create the tables in the database
3. update the config/db.config to point to the data base (sample here).
4. run ant war to create war file. messenger.war will be created inside WSNT_HOME/distribution folder.
5. Download and install a web container (we use apache tomcat), deploy the war file by dropping it into the tomcat webapps folder, and start tomcat.
6. run ./startMessenger.sh at WSNT_HOME to start the messenger. [In Windows, it is the *.bat file]. If the downloaded versions startMessenger has any trouble, try this.
Starting the message broker includes two processes.
The war file deployed in the web container, can be reached at http://localhost:8080/messenger/ after starting the web container. It is called the broker.
Delivery thread of WS-Messenger can be reached at http://localhost:12347/ by running the startMessenger.

Testing - Running a sample
Download nowTest.java and put it into the folder WSNT_HOME/test/org/indiana/extreme/queue.
Create a project using WSNT_HOME/test as the source root.
Add the WSNT_HOME/lib jar files, and WSNT_HOME/build/lib/wsmg.jar to the path.
After running the messenger as mentioned above, run the nowTest.java.

This will depict the case, where 10 subscribers subscribing to one of the 3 available publishers.

How to run XBaya

Initial Steps
SVN Checkout the xbaya source code here.
mvn idea:idea from the source root to create an IntelliJ IDEA project from the pom.
Start Tomcat and Run StartMessenger of the WS-Messenger.
Quick installation steps for WS-Messenger can be found here.
Open the XBaya project file and modify the default broker url to http://localhost:8080/messenger/ in XbayaConstants.java
Run XBaya.java.

XBaya Workflow Composer
Component -> Add Local Directory [add a directory containing the wsdls which are the wsdl's of the services deployed in Axis2]
Using the components, create a workflow [Say a simple arithmetic addition workflow].
Monitoring -> Configure Monitoring; Use a valid string for topic, and uncheck the Pull Mode.
Monitoring -> Start Monitoring
Workflow -> Run Workflow.

Give suitable values for the parameters. If it is an addition function, give two integer values for param0 and param1.
XBaya will monitor the workflow and will indicate the Time, Component, Status, and Message.

Increase can be seen in the incoming message number and subscriptions/unsubscriptions in the broker [http://localhost:8080/messenger], and the Total successful outgoing message number of the delivery thread of WS-Messenger [http://localhost:12347/].