GlassFish V2 with Clustering Features

GlassFish with Clustering GlassFish V2 with Clustering Features:

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 glassfish
% cd glassfish/bootstrap
% maven checkout bootstrap (or bootstrap-all) build configure-runtime
This will build the complete set of GlassFish modules including the above 8 new modules added.

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 glassfish
% cd glassfish/bootstrap
% maven checkout-pe bootstrap-pe (or bootstrap-all-pe) build-pe configure-runtime
This 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.

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:
  1. Download one of the bundles to disk from b13
  2. Run:
    java -Xmx256m -jar filename.jar
  3. cd glassfish
  4. ant -f setup.xml
For creating GlassFish V2 domain with clustering capabilities, only change will be in 4th step above as:
ant -f setup-cluster.xml
So 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
Comments:

is maven configure-cluster valid command ?

Posted by guest on August 17, 2006 at 04:33 AM PDT #

sorry to be late in response. Yes its definitely valid command if you run from glassfish/bootstrap module. This will create Clustered Domain for GlassFish V2.

Posted by Dinesh on August 31, 2006 at 04:13 AM PDT #

com.sun.enterprise.deployment.backend.IASDeploymentException: Fatal Error from EJB Compiler -- Caught java.lang.NullPointerException while processing CMP beans for application [Distribuidora-EJBModule]; module [C:\\Sun\\AppServer\\domains\\domain1\\applications\\j2ee-modules\\Distribuidora-EJBModule]: null. See log for details. i'm using this server and i want to using glassfish, but i have this error in sun application server 8 if you can help me i would appreciate that! Cheers Carlos

Posted by Carlos on September 26, 2006 at 06:02 AM PDT #

Hi this clustering possibility sounds very interesting, because of the reliability. The AS itself is very mighty with deploying.

But I'm trying to use glassfish for distributed computing of very large simulations with dynamic generated inputs. Is there a possibility to use the computing-power of a complete lab? Because to me it looks like I can only use it as a kind of file-server. But I've only just begun to realize the power of glassfish.

greetings Bastian

Posted by reitscbn on February 02, 2008 at 01:59 AM PST #

Hello Dinesh i am sumedh ramteke from mumbai.dahisar. do you remember me.

Posted by Sumedh Ramteke on April 06, 2010 at 11:20 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

dpatil

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today