JGAS overview
The Genero Application Server for Java (JGAS) is an implementation of the Genero Application Server (GAS) that is written in Java. It can be used for the development, testing, and deployment of applications.
This implementation performs the same functions as the GAS. Where it differs noticeably from the standard GAS is in its architecture and in terms of how it implements configuration and logging. In configuration it offers more flexibility with element order and schema validation, and it enhances the logging mechanism. See JGAS configuration file.
Using the JGAS
JGAS Architecture
The JGAS uses Java and is designed to run on the J2EE servlet. It differs from the standard GAS in the way it uses Web server resources such as sockets and memory in the handling of HTTP communication between the DVM and the front-end.
- The Web server receives an HTTP request that is forwarded to the GAS dispatcher.
- The GAS dispatcher forwards it to the proxy using sockets.
- The proxy sends the data to the DVM and handles any child VMs that may be started.
In the JGAS architecture those processes are similar except that proxies are not used between the DVM and the dispatcher. HTTP requests are processed internally and one socket per DVM is all that is required to maintain the communication.
-
Less resources are consumed overall as less system processing is required.
-
There are no proxy processes running, and therefore no sockets are required between the proxy and the dispatcher.
- Asynchronous management of requests allows the J2EE container to recycle worker threads instead of keeping them locked waiting for a response.
JGAS as standalone
The JGAS can not run standalone but a standalone feature similar to that of the standard GAS standalone dispatcher httpdispatch, is provided by the jgas-standalone.jar included in the war. This jar provides the function of a J2EE server when the war file is run with the fglgar run command, allowing you to deploy and run application files without having to install and administer a complete J2EE server.
This feature offers an enhancement for testing applications that allows you to access the JGAS configuration and deployed applications via a user interface. See Deploy and run standalone.