1. <Insert Picture Here>
Running your Java EE 6 Applications in the Cloud
Arun Gupta, Java EE & GlassFish Guy
blogs.sun.com/arungupta, @arungupta
2. The following/preceding is intended to outline our
general product direction. It is intended for
information purposes only, and may not be
incorporated into any contract. It is not a
commitment to deliver any material, code, or
functionality, and should not be relied upon in
making purchasing decisions.
The development, release, and timing of any
features or functionality described for Oracle’s
products remains at the sole discretion of Oracle.
2
3. Brief Introduction to Java EE 6
●
Light-weight
●
Java EE 6 Web Profile, Pruning
●
Extensible
●
Embrace open-source frameworks using web fragments
●
Easy-to-use
●
CDI, Bean Validation, JAX-RS
●
JPA 2, JSF 2, Servlets 3, EJB 3.1
●
Annotations-based, Optional “web.xml”/”faces-config.xml”,
EJB-in-WAR, ...
3
4. Oracle's definition of Cloud Computing
●
Virtualized elastic platform for applications
●
Standards-based application development/execution platform
●
Includes hardware and software
●
Virtualized and Elastic
●
Runs a wide variety of applications
●
On both public and private clouds
●
Exalogic Elastic Compute Cloud (Cloud in a Box)
●
Hardware and Software engineered to work together
●
30 compute servers, 360 cores, 40 GB/sec Infiniband
●
Servers, Network, Storage, VM, Operating System,
Middleware, Develop/Run all applications
4
5. Java EE 6 on Amazon
●
2 new AMIs based on Hardened OpenSolaris
●
Oracle GlassFish Server 3.0 (not released)
●
Apache HTTP Server + mod_jk (not released)
●
Pre-existing MySQL 5.1 Database AMI
●
Instances managed by SMF
●
svcadm restart/enable/disable
svc:/application/GlassFish/domain1:default
●
“worker.properties” for load-balancing
5
6. mod_jk
Managed
Using
“cladmin”
...
GlassFish-1 GlassFish-1 GlassFish-N
MySQL
6
7. Java EE 6 on RightScale
Cloud
Applications
Automation C loud-R eady Expertise
R ig htS c a le
Architecture S olutions & S upport
Web
Site
Right
Grid Scripts
Amazon Amazon Amazon Amazon IBM
R ackspace VM Ware
US E as t US Wes t EU As ia C loud
7
8. Java EE 6 on RightScale
●
Launches a new virtual server with clean install
of Ubuntu
●
Install GlassFish Server Open Source Edition 3.0
●
Detects database in the deployment
●
Install samples
8
9. High Availability Deployment
DNS Round Robin
Load Balancer-1 Load Balancer-2
Min: 0;Max: 5
...
GlassFish-1 GlassFish-2 GlassFish-3 GlassFish-n
Server Array
Master replication Slave
EBS DB DB EBS
Vol Vol Amazon EC2
Amazon S3
9
10. Java EE 6 on Elastra
●
Design, deploy, and manage system designs on
private/public clouds
●
Manage a hybrid cloud design
●
Enterprise Cloud Server (ECS) or AWS Edition
10
12. Java EE 6 on Joyent
●
High performance and reliable public, private,
and hybrid cloud
●
Environment
●
Language: Java, PHP, Ruby, …
●
Server: GlassFish, Apache, nginx, …
●
Database: MySQL, Oracle, ...
12
13. Java EE 6 on Joyent
●
Smart Machine (nee Accelerators)
●
Public IP Address
●
Root access to Solaris Zone
●
Guaranteed minimum CPU/RAM
●
Dedicated IP address + 100 Mbps connectivity
●
Common packages like MySQL can be installed using
Webmin
●
“sftp” to upload application packages
13
15. What does Java EE offer to Cloud ?
●
Containers
●
Injectable services
●
Scale to large clusters
●
Security model
●
...
15
16. What can Java EE do for Clouds ?
●
Tighter requirements for resource and state
management
●
Better isolation between applications
●
Potential standard APIs for NRDBMS, Caching, …
●
Common management and monitoring interfaces
●
Better packaging
●
Apps/Data are (multiple) versioned, Upgrades,
Expose/Connect to services, QoS attributes, ...
●
Evolution, not revolution
16
17. GlassFish Distributions
Distribution License Features
GlassFish Open Source CDDL & • Java EE 6 Compatibility
Edition 3.0.1 GPLv2 • No Clustering
• Clustering planned in 3.1
• mod_jk for load balancing
GlassFish Open Source CDDL & • Java EE 5 Compatibility
Edition 2.1.1 GPLv2 • In memory replication
• mod_loadbalancer
Oracle GlassFish Server Commercial • GlassFish Open Source Edition 3.0.1
3.0.1 • GlassFish Server Control Clustering
• Clustering planned in 3.1 Coming
Soon!
Oracle GlassFish Server Commercial • GlassFish Open Source Edition 2.1.1
2.1.1 • Enterprise Manager
• HADB