970 likes | 993 Vues
Explore the robust GlassFish server for efficient Java application development, boasting a comprehensive admin GUI and superior support compared to Tomcat. Learn about clustering, load balancing, and administrative tools.
E N D
APEX power! brought to you by GlassFish Alan Arentsen
@alanarentsen alanarentsen.blogspot.com
Supported J2EE Web Servers Application Servers
Supported Application Servers • Virtually everything designed to work on Tomcat works on GlassFish. • The GlassFish logo is definitely more attractive than the brown kitty. • … Miaauw!
Supported Application Servers • GlassFish is a full Java 2 Enterprise Environment (J2EE) environment. • GlassFish has a comprehensive administration GUI. • Glassfish has a bigger knowledge base because it’s supported much longer than Tomcat.
Application Server Load Database GlassFish Server
Application Server Load Connection Pool HTTP / HTTPS Database GlassFish Server
Application Server Load Connection Pool Database GlassFish Server
Application Server Load HTTP / HTTPS Connection Pool hardware overload
Application Server Load HTTP / HTTPS Connection Pool hardware failure
Application Server Load ? redundancy
Application Server Load Load balancer redundancy
GlassFish Clustering Node 2 Node 1 redundancy Node 3 Node 4
GlassFish Clustering Node 2 Node 1 Cluster 1 redundancy Cluster 2 Node 3 Node 4
GlassFish Clustering Domain DAS Repository Applications Resources Configuration
GlassFish Clustering Cluster Site02 Cluster Site01 Node001 Node002 Node003 Instance Node 001 Instance Node 001 Instance Node 003 Domain Administration Server (DAS)
GlassFish Clustering Domain DAS Repository Applications Resources Configuration Cluster Site01 Node001 Node002 Node003 Cluster Site02 Instance Node 001 Instance Node 001 Instance Node 003
GlassFish Clustering Domain DAS Repository Applications Resources Configuration Nodes
S1_InstanceN01 S2_InstanceN01 GlassFish Clustering Domain DAS Repository Applications Resources Configuration Repsitory Cache Repsitory Cache Nodes
S1_InstanceN01 S2_InstanceN03 S2_InstanceN01 GlassFish Clustering Domain DAS Repository Applications Resources Configuration Repsitory Cache Repsitory Cache Repsitory Cache Nodes
S1_InstanceN01 S2_InstanceN03 S2_InstanceN01 GlassFish Clustering Repsitory Cache Repsitory Cache Repsitory Cache Nodes
S1_InstanceN01 S2_InstanceN03 S2_InstanceN01 GlassFish Clustering Repsitory Cache Repsitory Cache Repsitory Cache ? Nodes
Apache HTTP server Apache Load Balancer http://site02.ordina.nl
S1_InstanceN01 S2_InstanceN03 S2_InstanceN01 Apache HTTP server Apache Load Balancer httpd.conf Repsitory Cache Repsitory Cache Repsitory Cache http://node001.local:4880 VirtualHost: site02.ordina.nl BalancerMember http://node003.local:4880 http://site02.ordina.nl BalancerMember
Application Express Architecture Apache Load Balancer DAS Domain APEX power! Connection Pool Connection Pool firewall
Administration Tools asadmin Utility Administration Console REST Interfaces
Administration Tools • Pros / Cons: • Veryniceand complete interface • A lot of worktoconfigure Administration Console • Useitfor: • Minor configuration changes • Overviewandsearching in configurations
Administration Tools asadmin Utility • Pros / Cons: • Not user friendly GUI • Fastconfiguring server • Useitfor: • Installation scripts • Fastconfiguring multiple servers
Administration Tools • Pros / Cons: • Not user friendly GUI • Fastconfiguring server REST Interfaces • Useitfor: • Installation scripts • Configuringfromotherapplications
Administration Tools asadmin Utility Administration Console REST Interfaces
Live Demo asadmin --user admin --passwordfile ~/passwords --port 4248 --host localhost
Live Demo asadmin --user admin --passwordfile ~/passwords --port 4248 --host localhost
Live Demo asadmin --user admin --passwordfile ~/passwords --port 4248 --host localhost
Live Demo asadmin --user admin --passwordfile ~/passwords --port 4248 --host localhost
Live Demo asadmin --user admin --passwordfile ~/passwords --port 4248 --host localhost
Live Demo create-domain --portbase=4200 --savemasterpassword=true --savelogin=true DAS_02
Live Demo create-domain --portbase=4200 --savemasterpassword=true --savelogin=true DAS_02
Live Demo create-domain --portbase=4200 --savemasterpassword=true --savelogin=true DAS_02
Live Demo create-domain --portbase=4200 --savemasterpassword=true --savelogin=true DAS_02
Live Demo create-domain --portbase=4200 --savemasterpassword=true --savelogin=true DAS_02