GlassFish V2 with Clustering Features
By dpatil on Aug 09, 2006
More source code for Appserver Enterprise features is added into GlassFish workspace on java.net cvs repository. User can create clusters of application server instances which can help distribute server instances from remote machines, and serve more users by using external Load balancing like Sun Webserver with Reverse Proxy plugin (Software load balancer). Details of how to do the load balancing after creating Clusters on GlassFish V2 can be found in the document below:
Configuring the Cluster/Load Balancer with GlassFish V2
Here just wanted to summarize the changes that went into GlassFish workspace for creating the server clusters, node-agents and other enterprise features in Milestone 1 of GlassFish V2.
On the GlassFish V2 build instructions, the default maven goals will checkout and build all previous GlassFish modules and 8 new modules with module-name ending with "-ee" which are added recently as part of opensourcing this EE features. New modules added are: admin-cli-ee, admin-gui-ee, appserv-core-ee, appserv-native-ee, admin-core-ee, appserv-docs-ee, admin-ee, appserv-commons-ee
So GlassFish build instructions for complete build remains same as before:
% cvs -d :pserver:<userid>@cvs.dev.java.net:/cvs checkout glassfishThis will build the complete set of GlassFish modules including the above 8 new modules added.
% cd glassfish/bootstrap
% maven checkout bootstrap (or bootstrap-all) build configure-runtime
If you want to build previous GlassFish workspace i.e. GlassFish V1 you can use following maven commands:
% cvs -d :pserver:<userid>@cvs.dev.java.net:/cvs checkout glassfishThis will checkout, build exactly same V1 modules as last promoted build "b11", and will not include any new code from above 8 modules or any of GlassFish V2 dependencies. This GlassFish V2 clustering features will be available in promoted build: b13.
% cd glassfish/bootstrap
% maven checkout-pe bootstrap-pe (or bootstrap-all-pe) build-pe configure-runtime
New feature of this enhanced GlassFish workspace is to be able to create GlassFish V1 domain, for single instance or new GlassFish V2 domain which can create cluster, node-agent from the same GlassFish bundle if you run "configure-cluster" .
For creating GlassFish domain with single-instance V1 features, the steps are as below:
- Download one of the bundles to disk from b13
java -Xmx256m -jar filename.jar
- cd glassfish
ant -f setup.xml
ant -f setup-cluster.xmlSo hope this gives you some details on GlassFish workspace changes for GlassFish V2 Milestone 1.
For detailed instructions about how to install load balancer plugin on Sun Webserver and configure it to work with GlassFish V2 Clustering, refer to the document at Configuring the Cluster/Load Balancer with GlassFish V2