PageBox for Java: Web application deployment using Java PageBox

for
 PageBox for Java 
 API 
 Demo 
 Background 
Presentation Download User guide Implementation Epimetheus euroLCC Prometheus

Download of the PageBox for Java demo

Pandora

Starting with PageBox version 0.0.10 Pandora is packaged in two version, the JWSDP version and the Tomcat/Axis version. The two versions are identical except for their RPC invoker, stubs and configuration files. Releasing two versions allows avoiding confusions and manual settings and helps getting started.

JWSDP

Binaries

There is a binary archive for each type of Pandora application.

Web archive

Function

distributed.war

Core Pandora application with the command form. Calls the Update Web service.

central.war

Implements the Update Web service and calls the Query Web service.

paydeliver.war

Mockup of a payment or delivery facility. Implements the Query Web service.

Sources and documentation

Web archive

Function

pandoraSrc.jar

Pandora sources

pandoraDoc.jar

Pandora Javadoc

Tomcat/Axis

Binaries

There is a binary archive for each type of Pandora application.

Web archive

Function

distributed.war

Core Pandora application with the command form. Calls the Update Web service.

central.war

Implements the Update Web service and calls the Query Web service.

paydeliver.war

Mockup of a payment or delivery facility. Implements the Query Web service.

Sources and documentation

Web archive

Function

pandoraSrc.jar

Pandora sources

pandoraDoc.jar

Pandora Javadoc

Target dispatching

The Java sources are dispatched to the archive targets in the following way:

Class

Archive

pandora/Article.java

distributed.war

pandora/CommandBean.java

distributed.war

pandora/CommandCtrl.java

distributed.war

pandora/Item.java

distributed.war

pandora/Publish.java

distributed.war

pandora/UpdateIF.java

distributed.war, central.war

Install.java

distributed.war, central.war, paydeliver.war

LinkBean.java

distributed.war

Client stub of the Update Web service generated with xrpcc

distributed.war

pandora/QueryIF.java

central.war, paydeliver.war

pandora/UpdateImpl.java

central.war

pandora/CheckSandbox.java

distributed.war, central.war, paydeliver.war

pandora/CheckLoad.java

distributed.war, central.war, paydeliver.war

pandora/CheckClassLoader.java

distributed.war, central.war, paydeliver.war

pandora/CheckLoaded.java

pandora/CheckLoaded.class

Server stub of the Update Web service generated with xrpcc

central.war

Client stub of the Query Web service generated with xrpcc

central.war

pandora/QueryImpl.java

paydeliver.war

Server stub of the Query Web service generated with xrpcc

paydeliver.war

pandora/NeighborCtrl.java

distributed.war

pandora/NeighborBean.java

distributed.war

To check the native interface you can build a shared library with CheckLoad.c and pandora_CheckLoad.h or use CheckLoad.dll on Windows (CheckLoad.c compiled with VC++ 6) and libCheckLoad.so on Linux, compiled with the commands:

gcc -I/usr/java/j2sdk1.4.1_01/include -I/usr/java/j2sdk1.4.1_01/include/linux -c CheckLoad/CheckLoad.c -o CheckLoad.o

gcc -shared -o libCheckLoad.so CheckLoad.o

Packaging

With PageBox deployment there are no longer installation concerns. However the distributed part of Pandora is designed to integrate with other applications of the PageBox site.

distributed

The referrer environment (login.jsp, link.jsp, LinkBean.class) is included in the distributed archive for documentation purpose. In real cases you should copy these files on the referrer sites.

To test Pandora you must generate a key pair, get a certificate for the public key and store these key pair and certificate in a keystore. Here is the easy way to generate this data:

keytool -keystore E:\java\pandora\keystore -genkey -alias mycert -keypass mypasswd

Enter keystore password: kspasswd

What is your first and last name?

[Unknown]: Alexis Grandemange

What is the name of your organizational unit?

[Unknown]: Devlpt

What is the name of your organization?

[Unknown]: Pagebox

What is the name of your City or Locality?

[Unknown]: Mouans Sartoux

What is the name of your State or Province?

[Unknown]: France

What is the two-letter country code for this unit?

[Unknown]: FR

Is correct?

[no]: yes

This definition works with the LinkBean creation in link.jsp:

LinkBean lb = new LinkBean("E:\\java\\pandora\\keystore", "kspasswd", "mycert", "mypasswd");

If you create the keystore at a different location or use different passwords and certficate name update the LinkBean instantiation accordingly.

See the JDK documentation to learn more about key pairs and certificates and for instance get a certificate from a certificate authority.

Epimetheus

Binaries

Web archive

Function

epimetheus.war

Epimetheus Web application.

serial.jar

Serial extension (enumerates serial and parallel ports)

Sources and documentation

Web archive

Function

epimetheusSrc.jar

Epimetheus sources

serialSrc.jar

Sources of the serial extension

epimetheusDoc.jar

Epimetheus Javadoc

serialDoc.jar

JavaDoc of the serial extension

euroLCC

Binaries

Web archive

Function

euroLCC.war

euroLCC Web application.

Sources and documentation

Web archive

Function

euroLCCSrc.jar

euroLCC sources

euroLCCDoc.jar

euroLCC Javadoc

Prometheus

Binaries

Web archive

Function

prometheus.war

Prometheus Web application.

Sources and documentation

Web archive

Function

prometheusSrc.jar

Prometheus sources

prometheusDoc.jar

Prometheus Javadoc

Contact:support@pagebox.net
©2002-2004 Alexis Grandemange. Last modified .