GlassFish

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(成功应用)
 
(未显示3个用户的36个中间版本)
第1行: 第1行:
[[Image:Glassfish.gif|right]]
+
[[Image:Glassfish-90x90.png|right]]
 
+
[[FishCAT]]: 社区参与的GlassFish测试.
Glassfish最新版: [https://glassfish.dev.java.net/downloads/v3-techPreview-2.html v3 Technology Preview 2]
+
 
+
下载最新版: http://download.huihoo.com/glassfish/v3/
+
  
 
==GlassFish简介==
 
==GlassFish简介==
 +
{{SeeWikipedia}}
 
[[Image:glassfish_logo.gif|right]]
 
[[Image:glassfish_logo.gif|right]]
 
GlassFish是SUN组织开放源代码 J2EE 应用服务器项目,
 
GlassFish是SUN组织开放源代码 J2EE 应用服务器项目,
 
+
[[Image:glassfish-future.png|right|thumb|GlassFish的未来]]
 
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 是一款免费的开放源代码应用服务器,可实现 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,以及许多其他新技术。
  
第47行: 第45行:
  
 
from https://glassfish.dev.java.net/public/faq/GF_FAQ_2.html
 
from https://glassfish.dev.java.net/public/faq/GF_FAQ_2.html
 +
 +
==GlassFish V4==
 +
*[http://www.infoq.com/cn/news/2013/08/GlassFish-4.0-Released GlassFish 4.0技术综述]
 +
*[https://glassfish.java.net/docs/4.0/release-notes.pdf GlassFish Server 4 Open Source Edition Release Notes]
 +
*[http://docs.huihoo.com/javaone/2012/CON4930-GlassFish-4-From-Clustering-to-the-Cloud.pdf GlassFish: From Clustering to the Cloud]
 +
*[http://docs.huihoo.com/glassfish/4.0/pdf GlassFish 4.0 文档集]
  
 
==GlassFish V3==
 
==GlassFish V3==
[[Image:GlassFish-v3-140x39.png|right]]
+
[[Image:GlassFish-V3.png|right]]
 
GlassFish v3 will supports four types of container :
 
GlassFish v3 will supports four types of container :
 
* Standard Web Applications
 
* Standard Web Applications
第74行: 第78行:
 
*[http://wiki.glassfish.java.net/Wiki.jsp?page=GlassFishV3TP2Content GlassFish V3 Technology Preview 2]
 
*[http://wiki.glassfish.java.net/Wiki.jsp?page=GlassFishV3TP2Content GlassFish V3 Technology Preview 2]
 
*[http://wiki.glassfish.java.net/Wiki.jsp?page=GlassFishV3IPS GlassFish V3 IPS]  
 
*[http://wiki.glassfish.java.net/Wiki.jsp?page=GlassFishV3IPS GlassFish V3 IPS]  
 +
 +
change admin password
 +
 +
Prelude has a user named anonymous (no password) by default who has admin privileges.
 +
security > admin-realm 修改密码或添加用户
 +
 
==OSGi==
 
==OSGi==
 +
[[Image:GFv3-and-OSGi.png|right]]
 
GlassFish V3 已包含 [[Apache Felix]], 提供对[[OSGi]]的支持.
 
GlassFish V3 已包含 [[Apache Felix]], 提供对[[OSGi]]的支持.
  
第84行: 第95行:
 
  java -jar modules/glassfish-10.0-tp-2-SNAPSHOT.jar
 
  java -jar modules/glassfish-10.0-tp-2-SNAPSHOT.jar
 
GlassFish V3 runs on OSGi http://blogs.sun.com/dochez/entry/glassfish_v3_runs_on_osgi
 
GlassFish V3 runs on OSGi http://blogs.sun.com/dochez/entry/glassfish_v3_runs_on_osgi
 +
 +
*[http://www.infoq.com/cn/articles/glassfish-enterprise-osgi-development GlassFish OSGi-JavaEE (一): GlassFish与企业级OSGi开发]
 +
*[http://www.infoq.com/cn/articles/GlassFish-OSGi-JavaEE-part2 GlassFish OSGi-JavaEE(二):深入理解OSGi WEB应用程序规范和GlassFish OSGi/WEB容器]
 +
 
==ESB==
 
==ESB==
 
[[Image:GlassFish-ESB.png|right]]
 
[[Image:GlassFish-ESB.png|right]]
第221行: 第236行:
 
*[[Atmosphere]]
 
*[[Atmosphere]]
 
*[[Grizzly]]
 
*[[Grizzly]]
*[[GlassFishWiki]] - http://wiki.glassfish.java.net/
+
*[http://wiki.glassfish.java.net/ GlassFishWiki]
 +
 
 
===Webtier===
 
===Webtier===
 
* [https://phobos.dev.java.net/ Phobos] A lightweight, scripting-friendly, web application environment
 
* [https://phobos.dev.java.net/ Phobos] A lightweight, scripting-friendly, web application environment
第281行: 第297行:
 
*[http://www.wotif.com/ Wotif.com]: [http://blogs.sun.com/stories/entry/wotif What if the hottest eCommerce site in Australia ran on GlassFish?]
 
*[http://www.wotif.com/ Wotif.com]: [http://blogs.sun.com/stories/entry/wotif What if the hottest eCommerce site in Australia ran on GlassFish?]
 
*http://www.peerflix.com/, using the GlassFish, Solaris 10 and some of Sun's shiny new x64 hardware.  
 
*http://www.peerflix.com/, using the GlassFish, Solaris 10 and some of Sun's shiny new x64 hardware.  
更多应用: http://blogs.sun.com/stories/  
+
更多应用: http://blogs.sun.com/stories/
 +
 
 +
==文档==
 +
*[http://docs.huihoo.com/javaone/2015/UGF11182-GlassFish-Performance-Tuning-Tips-from-the-Field.pptx GlassFish Performance Tuning: Tips from the Field]
 +
 
 
==Links==
 
==Links==
 
*https://glassfish.dev.java.net/
 
*https://glassfish.dev.java.net/
 
*http://blogs.sun.com/theaquarium/
 
*http://blogs.sun.com/theaquarium/
*GlassFish For Business: http://blogs.sun.com/GlassFishForBusiness/
+
*http://wiki.glassfish.org/
[[category:Javaee]]
+
*[http://blogs.sun.com/GlassFishForBusiness/ GlassFish For Business]
[[category:Middleware]]
+
*http://docs.huihoo.com/glassfish/
[[category:Free application servers]]
+
*http://download.huihoo.com/glassfish/
 +
*http://docs.huihoo.com/javadoc/glassfish/
 +
 
 +
{{comment}}
 +
 
 +
[[category:middleware]]
 +
[[category:web server]]
 +
[[category:GlassFish]]
 +
[[category:java]]
 +
[[category:oracle]]

2016年6月5日 (日) 14:30的最后版本

Glassfish-90x90.png

FishCAT: 社区参与的GlassFish测试.

目录

[编辑] GlassFish简介

Wikipedia-35x35.png 您可以在Wikipedia上了解到此条目的英文信息 GlassFish Thanks, Wikipedia.
Glassfish logo.gif

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

GlassFish的未来

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 V4

[编辑] GlassFish V3

GlassFish-V3.png

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

V3 Web Tier Schedule

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
  • Modules subsystem
  • Component Model

使用 gfv3-preview2.zip 启动后,

访问 http://localhost:8080/admin/ 会自动下载admin war包
http://download.java.net/glassfish/v3-tp2/admingui/gfv3-preview2-final-admingui.war

image packaging system: http://pkg.glassfish.org/

Release

change admin password

Prelude has a user named anonymous (no password) by default who has admin privileges.

security > admin-realm 修改密码或添加用户

[编辑] OSGi

GFv3-and-OSGi.png

GlassFish V3 已包含 Apache Felix, 提供对OSGi的支持.

run GlassFish in OSGi mode

java -DGlassFish_Platform=Felix -jar modules/glassfish-10.0-tp-2-SNAPSHOT.jar
May 6, 2008 2:06:15 PM com.sun.enterprise.glassfish.bootstrap.ASMainFelix launchOSGiFW
INFO: Framework successfully started

run in hk2 mode

java -jar modules/glassfish-10.0-tp-2-SNAPSHOT.jar

GlassFish V3 runs on OSGi http://blogs.sun.com/dochez/entry/glassfish_v3_runs_on_osgi

[编辑] ESB

GlassFish-ESB.png

GlassFish ESB Based on GlassFish v3 and Open ESB v3 with Project Fuji

[编辑] Communications Server

GlassFish-Sailfin.jpg

SailFin: GlassFish Communications Server.

[编辑] 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
  • 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
$AS_HOME/updatecenter/bin/updatetool

Update Center for GlassFish V3

https://updatecenter.dev.java.net/

[编辑] Clustering

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

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.

[编辑] SADL

Web Application Description Language

[编辑] 安装指南

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

[编辑] Liferay

WebSynergy: WebSynergy is Sun's next generation web aggregration and presentation platform. This platform includes developer tooling and an enterprise grade presentation runtime based on Liferay Portal Server, GlassFish v3, and MySQL.

[编辑] Social Network

Social Network as platform

SocialSite.jpg

SocialSite - Multi-language, Scalable, OpenSocial Software for GlassFish.

WebSynergy也有很多的社区元素, 看能否将两者更多的社区元素整合在一起。

相关项目: Apache Shindig

[编辑] Mobile

MobileFaces on GlassFish

MobileFaces, Mobile JSF Kit and GlassFish

MobileFaces-Architecture.gif

[编辑] Middleware Stack

GlassFish Enterprise Server

[编辑] Source Code

https://glassfish-svn.dev.java.net/source/browse/glassfish-svn/
svn checkout https://glassfish-svn.dev.java.net/svn/glassfish-svn/trunk glassfish-svn --username username

http://www.ohloh.net/projects/glassfish

[编辑] 成功应用

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

[编辑] 文档

[编辑] Links

Comment-32x32.png

<discussion>characters_max=300</discussion>

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱