Client Deployment

The application is written in a mix of Prolog and Java. This document does not contain the source code of the application. A version of the source code can be found on the following web site:

http://www.jekejeke.ch/idatab/doclet/prod/en/docs/05_run/15_stdy/08_deploy/11_appendix/client/package.html

For the client example there are the following additional sources:

We have used the following directory layout for the sources (Pane.java, Stub.java and Client.java) and the Jekejeke Prolog runtime library (interpreter.jar) library during the compilation:

    jekpro
     +--- study
          +--- deployment
              +--- Stub.java
              +--- Pane.java
              +--- Client.java
    agent.p
service.jsp
WEB-INF
 +--- lib
     +--- interpreter.jar

The application can be compiled with the following command line on the windows platform:

    javac -sourcepath . \ 
         -cp WEB-INF\lib\interpreter.jar \
        -d WEB-INF\classes \
        jekpro\study\deployment\Client.java

We have used the following directory layout for the byte code (Stub.class, Pane.class and Client.class), the resources (agent.p) and the Jekejeke Prolog runtime library (interpreter.jar) during execution on the client side:

    WEB-INF
 +--- classes
     |     +--- jekpro
     |     |     +--- study
     |     |          +--- deployment
     |     |              +--- Stub.class
     |     |              +--- Pane.class
     |     |              +--- Client.class
     |     +--- agent.p
     +--- lib
     +--- interpreter.jar

The following directory layout for the byte code (Data.class and Query.class) and the Java server page (service.jsp) are used during execution on the server side. The resource (data.p), the Jekejeke Prolog runtime library (interpreter.jar) and the web application configuration file (web.xml) have also to be present:

    WEB-INF
 +--- classes
     |     +--- jekpro
     |     |     +--- study
     |     |          +--- deployment
     |     |              +--- Query.class
     |     |              +--- Data.class
     |     +--- data.p
     +--- lib
    |  +--- interpreter.jar
+--- web.xml
service.jsp

The servlet application with the service.jsp needs to be running. The agent.p needs to point to this servlet application. The client application can then be executed by the following command line on the windows platform:

    java  -cp WEB-INF\classes;WEB-INF\lib\interpreter.jar \
        jekpro.study.deployment.Client
Add 

Comments