GlassFish

Glassfish最新版: GlassFish RC4. Image:DukeForGlassFishV2-115_90px.png

下载最新版: http://download.huihoo.com/glassfish/v2/

目录

[隐藏]
<script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "显示"; var tocHideText = "隐藏"; showTocToggle(); } </script>
[ 编辑]

GlassFish简介

GlassFish是SUN组织开放源代码 J2EE 应用服务器项目,

GlassFish 是一款免费的开放源代码应用服务器,可实现 Java EE 5 平台中的最新功能。Java EE 5 平台包含最新版本的技术,如 JavaServer Pages(JSP) 2.1、JavaServer Faces(JSF) 1.2、Servlet 2.5、Enterprise JavaBeans 3.0、Java API for Web Services(JAX-WS) 2.0、Java Architecture for XML Binding(JAXB) 2.0、Web Services Metadata for the Java Platform 1.0,以及许多其他新技术。

GlassFish 使用双许可协议: Common Development and Distribution License (CDDL) and the GNU General Public License (GPL) v2

GlassFish与SUN SDK,SUN Application Server的关系:

GlassFish Distributions ,也就是基于GlassFish开发的版本有:

  • Sun's Java System Application Server PE 9.0 Beta
  • NetBeans 5.5 Enterprise Pack preview
  • Java EE 5 SDK preview
[ 编辑]

Why use GlassFish

from https://glassfish.dev.java.net/public/faq/GF_FAQ_2.html

[ 编辑]

GlassFish V3

GlassFish v3 will supports four types of container :

  • Standard Web Applications
  • Ruby on Rails using JRuby 0.9.8
  • Phobos
  • PHP using the Quercus engine.

http://wiki.glassfish.java.net/gfwiki/Wiki.jsp?page=GlassFishV3

HK2 for Hundred Kilobytes Kernel is a module subsystem coupled with a simple yet powerful component model to build software.It is the foundation for the GlassFish V3 application server and consist of two technologies :

GlassFish v3 modules
Enlarge
GlassFish v3 modules
  • Modules subsystem
  • Component Model
[ 编辑]

OSGi

[ 编辑]

GlassFish V2

Admin GUI now uses JSF, Update Center functionality has been added, JSR-196 Public Draft implementation, WSIT integration has been completed, In-memory replication is partially implemented, and JBI has been fully integrated.

  • First Java EE platform 5 compliant Application Server
  • Ease of development with use of annotations and POJO-based programming
  • Web Services management
  • Self Management and Self Healing
  • Single instance offering

GlassFish v2 will support:

  • Developer profile
  • Cluster profile
  • Enterprise profile
[ 编辑]

GlassFish V2 Architecture

Cluster Support in GlassFish V2
Enlarge
Cluster Support in GlassFish V2
  • Domain Administration Server (DAS)
  • Administrative Client Applications (CLI, JSR 77, AMX)
  • Browser Based Administrative GUI
  • Web Client Applications (web clients, web services clients)
  • Rich client (RMI/IIOP) applications
  • Load Balancers (LB)
  • Node Agent (NA)
  • Server Instance (SI)
  • Administration API
  • Central Repository
  • Local Repository Cache
  • JMX Runtime

更多细节:http://www.glassfishwiki.org/gfwiki/Wiki.jsp?page=GlassFishV2Architecture

[ 编辑]

Update Center

GlassFish Update Center
Enlarge
GlassFish Update Center
$AS_HOME/updatecenter/bin/updatetool
[ 编辑]

Clustering

Clustering in GlassFish v2
Enlarge
Clustering in GlassFish v2

Clustering in GlassFish Version 2

Memory Replication

Based on JXTA technology and Project Shoal/GMS

GMS (Group Management Service)

  • Provides dynamic membership information about a cluster and its member instances
  • Cluster shape change events—

-- Members joining

-- Members shutting down vs. failing

  • Memory Replication takes appropriate action in response to these events providing continuous and high availability

GMS itself is also based on JXTA technology

Based on Project Shoal— https://shoal.dev.java.net

Needed: an open-source, lighter-weightalternative to HADB

  • HADB provides high availability for:

-- Http session state

-- Stateful Enterprise JavaBeans™ (EJB™) technology session state

-- Single sign-on state

  • HADB: still available; still right solution for some problems

-- Enables proven “5–nines” availability

-- More complex to administer

-- Not (currently) open source

[ 编辑]

Virtual Hosting

virtual hosting features available in GlassFish v2. Virtual hosting enables ISP/ASP business models.

[ 编辑]

Persistence

GlassFish Java Persistence API implementation is based on code from TopLink contributed by Oracle.

https://glassfish.dev.java.net/javaee5/persistence/

[ 编辑]

JRuby and GlassFish

GlassFish Goldspike JRuby
Enlarge
GlassFish Goldspike JRuby

Java web applications are typically packaged as WAR files in preparation for distribution and deployment to Java EE servers. It is useful to be able to package Ruby on Rails applications in a similar form, to enable seamless deployment to Java servers.

[ 编辑]

安装指南

1. Download one of the bundles
2. Run: java -Xmx256m -jar filename.jar
3. cd glassfish
4. Run: ant -f setup.xml

For GlassFish V2 with Clustering supported installation, just change step 4 from the above installation

* ant -f setup-cluster.xml
[ 编辑]

快速指南

./asadmin help
./asadmin start-domain domain1
http://localhost:8080/
https://localhost:8181/
http://localhost:4848/ admin/adminadmin 
http://localhost:8080/amserver/ // Sun Java System Access Manager
amadmin/admin123 // SUNWappserver/domains/domain1/config/AMConfig.properties
./asadmin stop-domain domain1
[ 编辑]

应用部署

获得 hello.war http://docs.huihoo.com/java/ee/glassfish/hello.war
cp hello.war domains/domain1/autodeploy/ 
或 asadmin deploy hello.war
http://localhost:8080/hello
asadmin undeploy hello 

Huihoo GlassFish Applications

[ 编辑]

相关链接

[ 编辑]

GlassFish Modules

[ 编辑]

Powered by GlassFish

[ 编辑]

Related GlassFish Technologies

[ 编辑]

Core

[ 编辑]

Webtier

[ 编辑]

WS/XML

[ 编辑]

Other

[ 编辑]

成功应用

更多应用: http://blogs.sun.com/stories/

本文转自: http://wiki.huihoo.com/index.php?title=GlassFish 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值