Context Service
 
Community Grids Lab (CGL), Pervasive Technology Labs (PTL),
Indiana University, Bloomington (IUB).
Context Service Links
Home
Publications
Downloads
Resources
JavaDoc API
Demos
Change Log
FTHPIS   Links
ExtendedUDDI
OpenGrids
Community Grids Lab
Publications
Presentations
CGL Activities
CGL Home  |  PTL Home
Download & Installation Instructions for UDDI_WSCONTEXT SERVICE

1 - Installing Axis-2 compatible Context Service

Requirements

To install 'Context Manager' make sure you have:
            Apache Tomcat , NaradaBrokering and Maven 1.0.2 installed
         CATALINA_HOME and JAVA_HOME environment variables properly set

Deploy the database into MySQL

  • Download uddi_wscontext_services.zip
  • Extract the archive. (e.g. /home/unzip uddi_wscontext_services.zip) This will create a directory called "uddi_wscontext_services"
  • Go to ${HOME}/uddi_wscontext_services/sql/
  • Update your MySQL username and password in cgl_wscontext_database_second_script.sql.
  • Connect to the installed mysql as follows:
    mysql -u <some_username> -h <some_host> -p <some_password>
  • Run the following: mysql> SOURCE cgl_wscontext_database_second_script.sql;
  • To exit MySQL type: mysql> quit;

Installing Context Manager

  • Download the service code uddi_wscontext_services.zip
  • Extract the archive.  (e.g. /home/<user name>/unzip uddi_wscontext_services.zip) This will create a directory called "uddi_wscontext_services"
  • Update "tomcat.home" variable to point your tomcat installation (e.g. tomcat.home=${user.home}/tomcat/jakarta-tomcat-5.0.28) in the "project.properties" located under "\uddi_wscontext_services\webapps\axis2\WEB-INF\classes" directory.
  • Update Narada Brokering (NB) parameters to point to your NB broker in the "properties.properties" file located under "\uddi_wscontext_services\webapps\axis2\WEB-INF\classes" directory.
  • Copy "axis2" directory located under "uddi_wscontext_services/webapps" into "<jakarta-tomcat-home>/webapps/".
  • Restart your Jakarta Tomcat installation.
  • This will deploy the service into your Jakarta Tomcat installation as a web application (<jakarta-tomcat-home>/axis2/services/HYBRID_SERVICE?wsdl)
  • To see a list of deployed web services go to
    http://<your-server-name>:<portnum>/axis2/services/listServices

2 - Example Clients for the Service

  • Please find the example Clients to Context Service under "uddi_wscontext_services/src" directory structure
  • There are two example Clients a) ContextPublishExample.java b) SessionPublishExample.java
  • To compile the client examples make sure that you put all the jar files in your CLASSPATH. You will find the necessary jar files to compile and run the client examples under "uddi_wscontext_services/lib" directory structure.
  • To run a client example from command line: java -classpath "X.jar;Y.jar;..." example.ContextPublishExample
  • Please note that the "run()" procedure in these client examples provide the usage of most of the utility functions given in these examples.
  • You can find these clients at uddi_wscontext_services.zip". In this archive, you will also find required library that you might want to include your project.
  • If you are a JBuilder IDE user, you could simply open this project as JBuilder project.

© Mehmet S. Aktas / Community Grids Lab, Indiana University


--> tml>