27
1 Martin Steinkopf Java Architekt Ambassador Software Environments & Java Sun Microsystems 1 GlassFish - the Liferay Platform from the makers of Java

GlassFish - the Liferay Platform from the makers of … · 1 Martin Steinkopf Java Architekt Ambassador Software Environments & Java Sun Microsystems GlassFish - the Liferay Platform

  • Upload
    buikien

  • View
    220

  • Download
    0

Embed Size (px)

Citation preview

1

Martin SteinkopfJava ArchitektAmbassador Software Environments & JavaSun Microsystems

1

GlassFish -the Liferay Platform from the makers of

Java

2

What Is GlassFish?

• A Java EE 5 compliant Application Server> Can run J2EE applications too

• Enterprise Quality> Use it in production!

• Open Source> CDDL (like OpenSolaris, NetBeans)> GPLv2 (like Java and NetBeans)> Use it in production!

3

What Is GlassFish? (Cont.)• Community at http://glassfish.org

> Sources, bug DBs, discussions> Roadmaps> Architecture Documents

• Interim Governance Board> 2 Sun members: Simon Phipps, Eduardo Pelegri-Llopart> 3 Non-Sun individual members from Google, Wotif.Com, Amex

• Community Awards Program> $1M to reward contribution to Open Source projects> GlassFish one of 6 communities to award $175k> More at http://glassfish.org/GAP

4

GlassFish Adoption

• 7 million downloads• 20k registrations per month• ~ 500k downloads per month• many external commiters• ca. 7.000 community members

http://beta.glassfish.java.net:81/maps/

5

GlassFish v2 for Developers• Single, smaller, download

> Around 60 MB total• Multiple User Profiles

> Developer, Cluster, Enterprise> Upgrade from one to another

• Better startup time> Almost matches Tomcat (see also GlassFish v3)

• Cool Technologies> Grizzly's Comet, jRuby on Rails, Groovy on Grails, jMaki, ...

• Update Center> Provision and install new features, new frameworks, ...

• New admin console> JSF, AJAX, Charts

6

GlassFisch Architecture

App Server Instance

Java SE 5 / 6

HTTPlistener Web

Container

AdminApplication

AdminGUI/CLI

IIOPlistener

EJBContainerORB

HTTPServer

JMS Message Broker

JCA

CMPIWebServerPlugin

(optional)

IIOPClients

HTTP/S

IIOP/S

JMSService

WebClients

ResourceAdapters

7

• HotDeploy / Redeploy• Dynamic Reloading• many Sample Applications• Lifecycle Listener• Application Verifier• many predefined ANT-Tasks• JSP Precompilation• JAAS & programmatic Login

GlassFish v2Developer Features

8

• SSL (HTTP, IIOP, JMS) built-in> supports Hardware Accelerators

• very fast and scalable HTTP-Engine• Loadbalancing Plugin

> for HA and DMZ Scenarios• extensible Monitoring• JDBC

> Pools shared by DataSources> Checks for validity of connection> TX type and isolation level selectable

GlassFish v2Admin Features

9

GlassFish v2 for Enterprises

• Metro Web Services Stack> Performance, Advanced Web Services & Microsoft

interoperability• Clustering, Load-Balancing, HA

> Unified Management• Web Tier

> Grizzly, Ultra-fast JSP compilation• JBI support (OpenESB 2.0)• Management & Monitoring

> Graphical, command-line, ANT, JMX, ...> VisualVM Tool

10

What is Metro?

• The Web Services Stack in GlassFish v2 • Two integral parts

> JAX-WS RI> WSIT (aka Project Tango)

> Web Services Interoperability Technology

• High performance, production quality

XML Processing

Core Web Services

QoS

11

GlassFish High Availability Architecture

loadbalancer.xml

LoadBalancer

Web Server

Web ServerLB Plugin

LB Plugin

optional

Cluster Node 1

Cluster Node 2

Domain Admin Server

http

http

GMS:In-Memory State

ReplicationOptional:

State Replicationvia HADB

JMS

JMS

Rich Clients per RMI/IIOP or JMS

and Loadbalancing + Fail-over

JMS

GMS: Group Membership ServiceHADB: High-Available Database (part of Sun's offering), not open sourced (yet)

12

GlassFish v2

• GMS/Shoal> Distributed In-Memory Replication> 1 primary + 1 secondary per session

• HADB> Distributed Replication> via HA Database by Sun, not opensourced (yet)

• (nearly) transparent for applications• HTTP and Stateful Session EJB state

Session Store

13

GlassFish AdministrationConfiguration, Monitoring

• GlassFish offers professional admin console > for monitoring, configuration, deployment

• Command Line Tool “asadmin” offers the same features > for automation & scripting

14

Performance SPECjAppServer 2004

> July 2007: #1 score on T2000> 883.66 JOPS@Standard (GlassFish v2)> 10% faster than BEA WebLogic> 30% faster than IBM WebSphere 6.1

> July 2007: Best $/perf. on full Open Source> 813.73 JOPS@Standard> GlassFish v2, OpenSolaris, Java 6, PostgreSQL> 3x the price/perf vs. Oracle on HP score

> November 2007: Massive Scalability Result> 8,439.36 JOPS@Standard (6 nodes, 18 instances)> Sun T5120 & E6900

Sun BEA IBM JBoss

0

100

200

300

400

500

600

700

800

900

1000

SPECjAppServer 2004 Results

?

You no longer need to chose between Open Source and PerformanceDisclaimers: SPEC and the benchmark name SPECjAppServer 2004 are registered trademarks of the Standard Performance Evaluation Corporation. Competitive benchmark results stated

above reflect results published on www.spec.org as of 11/21/07. The comparison presented is based on GlassFish v2 UR1 run on 6 Sun SPARC Enterprise T5120 (1 chip, 8 cores/chip, 8 threads/core) 1.4GHz 8,439.36 SPECjAppServer2004 JOPS@Standard. For the latest SPECjAppServer 2004 benchmark results, visit http://www.spec.org/.

15

Reasons for Migrating to GlassFish• cost reduction

> no software license costs – attractive support subscriptions> total costs are only a fraction of commercial competitors like

BEA, Oracle or IBM• more productive development

> usage of most recent Java EE technologies simplifies development

> interoperability with .NET Web Services• higher efficiency in production

> better performance and scalability then IBM/BEA (SpecJAppServer2004 Benchmark)

> simpler administration

16

`

`

"Positive on Sun and the GlassFish community's release of the second major update of their open source Java application server, GlassFish V2, and its accompanying enterprise rendition, Java System Application Server 9.1. Many technical advances ...

Forrester Wave Vendor Summary, Q3 2007 “Sun Microsystems Is A Strong Performer In Application Server Platforms”“... doubts are outdated ... Sun has assembled a competitive application server platform suite that has attractive cost economics and an open source component

“Sun and the GlassFish open-source community have delivered the first production scale open-source Java EE 5 application server. This challenges the dominance of market leaders like Red Hat and IBM”

recommend this version for enterprise use."

“ ... we were seriously stressed when IBM declared war with Geronimo, and then HP got in the game against us, too. Red Hat and JonAS didn't scare us at all (really, not at all), nor did we worry about Sun's foray into the market. Oddly enough, of that group only Sun has managed to mount serious competition to JBoss”.

Marc Fleury

Analysts on GlassFish

17

GlassFish Support• Yes! GlassFish is totally free to use!• The business model for Sun is that of services

> Support subscription> Support from the source to secure your projects> Also indemnification and access to sustaining branch* (patches)

• Also Consulting & Training• All from Sun & Partners• We want our partners, our customers to be successful (and

Sun too in the process)

*: Support for GlassFish - What's in it for me?http://blogs.sun.com/alexismp/entry/support_for_glassfish_what_s

http://globalspecials.sun.com/servlet/PromoServlet/promoID.3676000

18

GlassFish Tools Support• NetBeans 5.5.1, 6.0, 6.1

(Best integration) with:> full Java EE 5 support> resource creation> remote debugging> incremental deployment> profiling> wizards, etc...

• Additional features (SOA, UML, jRubyOnRails, ...)

• GlassFish (v1, v2, v3) plugin for Eclipse 3.3 (Europa)

• Genuitec's MyEclipse integration with GlassFish

• CodeGear JBuilder 2007

• IDEA Intellij 6.0, 7.0

19

GlassFish Plugin for VisualVMhttp://visualvm.dev.java.net• VisualVM is a standalone monitoring and profiling tool

> create thread dumps, walk heap dumps> GlassFish Plugin per Updatecenter

20

GlassFish AdministrationMonitoring Infrastructure

• GlassFish Call Flow Monitoring can trace User Requests> Where is the time spend? - activate dynamically!> Call Flow also triggers JMX Notifications for Self Management

• Self Management> Programmatic Processing

of Events> Log Events, Monitor Events> Timer Events, MBean Notifications> Trace Events, Lifecycle Events

21

GlassFish Roadmap• actual version is "GlassFish v2 Update Release 02"

> other names:Sun Java System Application Server 9.1u2Sun Glassfish Enterprise Server v2

• end of 2008> GlassFish v2.1 – Maintenance Update> GlassFish Communications Server

> GlassFish + Project SailFin SIP Stack

• later:> GlassFish ESB (GlassFish + OpenESB)

• 2009> GlassFish v3

22

GlassFish v3• Small & Fast

> Less than 1.0 sec startup• Totally Modular, kernel is <100K

> Support for OSGi> Can be run embedded in custom JVM

• An ideal Container for Web 2.0> better Scripting support > Support for upcoming Java EE 6 profiles> A good fit for SOA/ESB solutions

• Code and documentation available today> Technology Preview 2 available for download

• Full Java EE 6 planned for first half of 2009

23

GlassFish Partner Initiativesun.com/software/products/appsrvr/gf-isv-partners.jsp

24

GlassFish Extensions• Scripting Support

> JRuby / Rails> Groovy / Grails> Phobos (Serverside JavaScript)> Jython (Django)> PHP (Quercus)

• Communication Server> SIP / SailFin

• SOA: JBI / OpenESB> GlassFishESB

25

GlassFish Platforms

• Operating Systems:> Windows> Solaris SPARC> Solaris x86 / x64> Linux> MacOS> AIX

• Java SE versions> JDK 5> JDK 6

26

Liferay and SunWhat is the relation?

• Both will release products on a common code base, managed by Liferay. First products:> Liferay: Portal 5> Sun: Project WebSynergy (name not final yet)

• Sun is a Liferay-> committer> governance board member

• Sun provides technology:> Portlet 2.0, WSRP 2.0, JSF-Portlet-Bridge> later: SAW, Mirage

27

Martin [email protected]

27

GlassFish -the Liferay Platform from the makers of

Java