欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
GlassFish
小 (→成功应用) |
|||
(未显示4个用户的90个中间版本) | |||
第1行: | 第1行: | ||
− | [[Image:Glassfish. | + | [[Image:Glassfish-90x90.png|right]] |
− | + | [[FishCAT]]: 社区参与的GlassFish测试. | |
− | + | ||
− | + | ||
− | + | ||
==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 使用双许可协议: [https://glassfish.dev.java.net/public/CDDL+GPL.html Common Development and Distribution License (CDDL) and the GNU General Public License (GPL) v2] | ||
GlassFish与SUN SDK,SUN Application Server的关系: | GlassFish与SUN SDK,SUN Application Server的关系: | ||
第16行: | 第18行: | ||
* NetBeans 5.5 Enterprise Pack preview | * NetBeans 5.5 Enterprise Pack preview | ||
* Java EE 5 SDK preview | * Java EE 5 SDK preview | ||
+ | |||
+ | ==Why use GlassFish== | ||
+ | * GlassFish is an [http://blogs.sun.com/roller/page/theaquarium?entry=glassfish_distribution_license Open Source], [http://blogs.sun.com/roller/page/theaquarium?entry=glassfish_community_awards Community Based] implementation of [http://java.sun.com/javaee Java EE 5]. | ||
+ | * Java EE 5 is a huge improvement over earlier J2EE versions ([http://blogs.sun.com/roller/page/theaquarium?entry=javaone_2006_technical_keynotes J1 Keynotes]). | ||
+ | * GlassFish is [http://blogs.sun.com/roller/page/theaquarium?entry=glassfish_quality_portal Production Quality], has very [http://blogs.sun.com/roller/page/theaquarium?entry=glassfish_specjappserver2004_results_posted Good Performance] and is [http://weblogs.java.net/blog/jfarcand/archive/2006/03/can_a_grizzly_r.html scalable] | ||
+ | * GlassFish is delivered in [http://www.sun.com/software/products/appsrvr_pe/index.xml SJS AS 9.0], [http://java.sun.com/javaee/downloads/index.jsp Java EE 5 SDK], and [http://www.netbeans.info/downloads/download.php?type=5.5b NetBeans 5.5]. | ||
+ | * GlassFish has already affected [http://blogs.sun.com/roller/page/theaquarium?entry=glassfish_marketshare adoption] and is getting analyst attention [[http://blogs.sun.com/roller/page/theaquarium?entry=second_report_on_glassfish_by 1]], [[http://blogs.sun.com/roller/page/theaquarium?entry=rich_current_analysis_on_java 2]]. | ||
+ | * GlassFish is used by other groups like in [http://www.tmaxsoft.com/tmax/menu/contentView.do?menuCode=PDJUOL&menuCode=PDJU JEUS 6 Preview from TMaxSoft]. | ||
+ | * GlassFish has many goodies, including [http://developers.sun.com/prodtech/javadb/ Java DB], [http://java.sun.com/reference/blueprints/ Java Blueprints and AJAX examples] and [http://java.sun.com/javaee/reference/code/ samples] | ||
+ | * GlassFish is committed to your [http://blogs.sun.com/roller/page/theaquarium?entry=list_of_applications_and_frameworks favorite framework and application]. | ||
+ | * GlassFish has extensive [https://glassfish.dev.java.net/javaee5/docs/DocsIndex.html documentation]. | ||
+ | * GlassFish has [http://blogs.sun.com/roller/page/theaquarium?entry=migration_tool_for_project_glassfish migration tool support] | ||
+ | * GlassFish has a production quality [http://download.java.net/javaee5/screencasts/admin-console/ administration console] and [http://blogs.sun.com/roller/page/theaquarium?entry=glassfish_with_ecc_eliptic_curve security] support | ||
+ | * GlassFish is at the forefront of [http://blogs.sun.com/roller/page/theaquarium?entry=jpa_delivers_portability_kodo_weblogic JPA adoption]. | ||
+ | * GlassFish Web Services stack is very good and it is getting [http://blogs.sun.com/roller/page/theaquarium?entry=more_on_the_improved_jax better] and [http://blogs.sun.com/roller/page/theaquarium?entry=project_tango_is_live better]. | ||
+ | * GlassFish's [http://onesearch.sun.com/search/blog/index.jsp?qt=grizzly&weblog=theaquarium&enableWeblog=true&cs=false&rt=true&rf=1 Grizzly] delivers top Web Tier performance and flexibility. | ||
+ | * GlassFish has [http://blogs.sun.com/roller/page/theaquarium?entry=promotion_on_developer_support_for Developer Support], [http://developers.sun.com/services/ Software Services], [http://blogs.sun.com/roller/page/theaquarium?entry=free_web_class_on_sjs Training], [http://www.javapassion.com/ classes], [http://forums.java.net/jive/forum.jspa?forumID=56 forums], [http://blogs.sun.com/roller/page/theaquarium blogs] and more. | ||
+ | * GlassFish supports [http://onesearch.sun.com/search/blog/index.jsp?charset=utf-8&col=blog&qt=AJAX&weblog=theaquarium&cs=false&rt=true&rf=1 AJAX] and [http://onesearch.sun.com/search/blog/index.jsp?qt=Scripting&weblog=theaquarium&enableWeblog=true&cs=false&rt=true&rf=1 Scripting]. | ||
+ | * GlassFish has platform and tool [http://java.sun.com/developer/technicalArticles/WebServices/soa3/ SOA support], including JBI and BPEL. | ||
+ | * GlassFish is used directly for the [http://www.jcp.org/en/jsr/detail?id=244 official] Reference Implementation of Java EE 5. | ||
+ | * GlassFish is the code base for the Sun Java System Application Server. | ||
+ | * GlassFish will incorporate the enterprise features available today in [http://blogs.sun.com/roller/page/theaquarium?entry=glassfish_s_elder_sun_java SJS AS 8.x]. | ||
+ | * Many components are in the [http://blogs.sun.com/roller/page/theaquarium?entry=more_maven_updates Maven Repository]; and more soon. | ||
+ | * We are already working on the [http://blogs.sun.com/roller/page/theaquarium?entry=glassfish_v2_b04_available next releases] ([http://blogs.sun.com/roller/page/theaquarium?entry=more_productive_better_error_messages more]). | ||
+ | * See some great [http://java.sun.com/javaee/overview/testimonials.jsp testimonials] | ||
+ | |||
+ | 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.png|right]] | ||
+ | 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 | ||
− | ==GlassFish V2== | + | [http://wiki.glassfish.java.net/Wiki.jsp?page=V3WebTierSchedule 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 : | ||
+ | [[Image:glassfish-v3-modules.png|thumb|right|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 | ||
+ | *[http://wiki.glassfish.java.net/Wiki.jsp?page=GLassFishV3Distributions GlassFish V3 Distributions] | ||
+ | *[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] | ||
+ | |||
+ | change admin password | ||
+ | |||
+ | Prelude has a user named anonymous (no password) by default who has admin privileges. | ||
+ | security > admin-realm 修改密码或添加用户 | ||
+ | |||
+ | ==OSGi== | ||
+ | [[Image:GFv3-and-OSGi.png|right]] | ||
+ | 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 | ||
+ | |||
+ | *[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== | ||
+ | [[Image:GlassFish-ESB.png|right]] | ||
+ | [[GlassFish ESB]] Based on GlassFish v3 and [[Open ESB]] v3 with Project [[Fuji]] | ||
+ | ==Communications Server== | ||
+ | [[Image:GlassFish-Sailfin.jpg|right]] | ||
+ | [[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. | 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== | ==GlassFish V2 Architecture== | ||
[[Image:glassfish-cluster-arch.jpg|thumb|right|Cluster Support in GlassFish V2]] | [[Image:glassfish-cluster-arch.jpg|thumb|right|Cluster Support in GlassFish V2]] | ||
第38行: | 第134行: | ||
更多细节:http://www.glassfishwiki.org/gfwiki/Wiki.jsp?page=GlassFishV2Architecture | 更多细节:http://www.glassfishwiki.org/gfwiki/Wiki.jsp?page=GlassFishV2Architecture | ||
+ | ==Update Center== | ||
+ | [[Image:GlassFish-Update-Center.png|right|thumb|GlassFish Update Center]] | ||
+ | $AS_HOME/updatecenter/bin/updatetool | ||
+ | |||
+ | [http://wiki.glassfish.java.net/Wiki.jsp?page=UpdateCenterForGlassFishV3 Update Center for GlassFish V3] | ||
+ | https://updatecenter.dev.java.net/ | ||
+ | ==Clustering== | ||
+ | [[Image:glassfish-v2-clustering.png|thumb|right|Clustering in GlassFish v2]] | ||
+ | [http://developers.sun.com/appserver/reference/techart/glassfishcluster/ 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== | ||
第45行: | 第181行: | ||
GlassFish [[Java Persistence API]] implementation is based on code from [[Oracle TopLink|TopLink]] contributed by Oracle. | GlassFish [[Java Persistence API]] implementation is based on code from [[Oracle TopLink|TopLink]] contributed by Oracle. | ||
+ | https://glassfish.dev.java.net/javaee5/persistence/ | ||
+ | ==JRuby and GlassFish== | ||
+ | [[Image:glassfish-jruby-goldspike.png|right|thumb|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. | ||
+ | *http://www.headius.com/jrubywiki/index.php/Rails_Integration | ||
+ | *http://www.headius.com/jrubywiki | ||
+ | ==SADL== | ||
+ | [[Web Application Description Language]] | ||
==安装指南== | ==安装指南== | ||
1. Download one of the bundles | 1. Download one of the bundles | ||
第54行: | 第198行: | ||
==快速指南== | ==快速指南== | ||
+ | ./asadmin help | ||
./asadmin start-domain domain1 | ./asadmin start-domain domain1 | ||
http://localhost:8080/ | http://localhost:8080/ | ||
https://localhost:8181/ | https://localhost:8181/ | ||
http://localhost:4848/ admin/adminadmin | 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 | ./asadmin stop-domain domain1 | ||
− | |||
==应用部署== | ==应用部署== | ||
获得 hello.war http://docs.huihoo.com/java/ee/glassfish/hello.war | 获得 hello.war http://docs.huihoo.com/java/ee/glassfish/hello.war | ||
第66行: | 第212行: | ||
http://localhost:8080/hello | http://localhost:8080/hello | ||
asadmin undeploy hello | asadmin undeploy hello | ||
− | + | [[Huihoo GlassFish Applications]] | |
==相关链接== | ==相关链接== | ||
* https://glassfish.dev.java.net/ | * https://glassfish.dev.java.net/ | ||
第82行: | 第228行: | ||
==Related GlassFish Technologies== | ==Related GlassFish Technologies== | ||
− | * [[Grizzly | + | ===Core=== |
− | * [[ | + | * [https://glassfish-samples.dev.java.net/source/browse/glassfish-samples/ws/java-ee-5/hello-jaxws/src/ Glassfish-samples] Relevant sample applications to demonstrate Java EE Technologies |
+ | * [[SailFin]] adds SIP Servlets technology extension to GlassFish Application Server. | ||
+ | *[[HK2]] - https://hk2.dev.java.net/ | ||
+ | *[[openInstaller]] - https://openinstaller.dev.java.net/ | ||
+ | *[[Shoal]] | ||
+ | *[[Atmosphere]] | ||
+ | *[[Grizzly]] | ||
+ | *[http://wiki.glassfish.java.net/ GlassFishWiki] | ||
+ | |||
+ | ===Webtier=== | ||
+ | * [https://phobos.dev.java.net/ Phobos] A lightweight, scripting-friendly, web application environment | ||
+ | * Web Application Description Language (WADL) - https://wadl.dev.java.net/ | ||
+ | * [https://javaserverfaces.dev.java.net/ JSF] Java Server Faces | ||
+ | * JSF Templating - https://jsftemplating.dev.java.net/ | ||
* [https://ajax.dev.java.net/ Ajax] Project jMaki, Web Remoting using AJAX | * [https://ajax.dev.java.net/ Ajax] Project jMaki, Web Remoting using AJAX | ||
+ | ===WS/XML=== | ||
+ | * [[Jersey]] | ||
+ | * JAX-WS - https://jax-ws.dev.java.net/ | ||
+ | * [https://wsit.dev.java.net/ WSIT] Web Service Interoperability Technology | ||
+ | * [https://xwss.dev.java.net/ XWSS] WebServices Security | ||
+ | * [http://jaxb.dev.java.net/ JAXB] Java API for XML Binding | ||
+ | * [http://jaxp.dev.java.net/ JAXP] Java API for XML Parsing | ||
+ | ===Other=== | ||
+ | * [[Java EE Service Engine]] | ||
* [https://bpcatalog.dev.java.net/ BluePrints Solution Catalog] guidelines and best practices for Java EE applications | * [https://bpcatalog.dev.java.net/ BluePrints Solution Catalog] guidelines and best practices for Java EE applications | ||
* [https://fi.dev.java.net/ Fast Infoset] Binary encoding for the XML Information Set | * [https://fi.dev.java.net/ Fast Infoset] Binary encoding for the XML Information Set | ||
* [https://firstcup.dev.java.net/ Firstcup] - Java EE 5 Tutorial | * [https://firstcup.dev.java.net/ Firstcup] - Java EE 5 Tutorial | ||
* [https://genericjmsra.dev.java.net/ Generic RA for JMS] Generic Resource Adapter for JMS | * [https://genericjmsra.dev.java.net/ Generic RA for JMS] Generic Resource Adapter for JMS | ||
− | |||
* [http://glassfishplugins.dev.java.net/ Glassfishplugins] Plugins for both NetBeans and Eclipse | * [http://glassfishplugins.dev.java.net/ Glassfishplugins] Plugins for both NetBeans and Eclipse | ||
* [https://istack-commons.dev.java.net/ istack-commons] | * [https://istack-commons.dev.java.net/ istack-commons] | ||
− | |||
− | |||
* [http://java.sun.com/xml/jaxr/index.jsp JAXR] Java API for XML Registry | * [http://java.sun.com/xml/jaxr/index.jsp JAXR] Java API for XML Registry | ||
* [http://jax-rpc.dev.java.net/ JAX-RPC] Java API for XML RPC | * [http://jax-rpc.dev.java.net/ JAX-RPC] Java API for XML RPC | ||
* [http://jax-rpc.dev.java.net/ JAX-WS] Java API for XML Web Services | * [http://jax-rpc.dev.java.net/ JAX-WS] Java API for XML Web Services | ||
* [http://java.sun.com/products/jms/ JMS] Java Messaging Service | * [http://java.sun.com/products/jms/ JMS] Java Messaging Service | ||
− | |||
− | |||
* [https://saaj.dev.java.net/ SAAJ] The Standard Implementation for SAAJ | * [https://saaj.dev.java.net/ SAAJ] The Standard Implementation for SAAJ | ||
* [http://shoal.dev.java.net/ Shoal] - Java based clustering framework | * [http://shoal.dev.java.net/ Shoal] - Java based clustering framework | ||
第106行: | 第269行: | ||
* [https://stax-ex.dev.java.net/ StaX-ex] Extended StAX API | * [https://stax-ex.dev.java.net/ StaX-ex] Extended StAX API | ||
* Xmlstreambuffer | * Xmlstreambuffer | ||
− | * [https:// | + | ==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 | ||
+ | |||
+ | [[Image:SocialSite.jpg|right]] | ||
+ | [[SocialSite]] - Multi-language, Scalable, OpenSocial Software for GlassFish. | ||
+ | |||
+ | [[WebSynergy]]也有很多的社区元素, 看能否将两者更多的社区元素整合在一起。 | ||
+ | |||
+ | 相关项目: [[Apache Shindig]] | ||
+ | ==Mobile== | ||
+ | [[Image:simulator-console-1.gif|right|thumb|MobileFaces on GlassFish]] | ||
+ | [http://blogs.ibibo.com/ViewComments.aspx?blogid=8a2268bb-b485-4871-b838-e12eab983906&mid=ba692831-19b6-4dc6-a2db-1e1e4cede463 MobileFaces, Mobile JSF Kit and GlassFish] | ||
+ | |||
+ | [[Image:MobileFaces-Architecture.gif]] | ||
+ | ==Middleware Stack== | ||
+ | [[Image:glassfish-enterprise-server.jpg|right|thumb|GlassFish Enterprise Server]] | ||
+ | *[http://blogs.sun.com/theaquarium/entry/the_glassfish_based_middleware_stack The GlassFish-Based MiddleWare Stack] | ||
+ | *[http://www.sun.com/software/products/appsrvr/index.jsp Sun 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://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/ |
− | [[category: | + | |
− | [[category: | + | ==文档== |
− | [[category: | + | *[http://docs.huihoo.com/javaone/2015/UGF11182-GlassFish-Performance-Tuning-Tips-from-the-Field.pptx GlassFish Performance Tuning: Tips from the Field] |
+ | |||
+ | ==Links== | ||
+ | *https://glassfish.dev.java.net/ | ||
+ | *http://blogs.sun.com/theaquarium/ | ||
+ | *http://wiki.glassfish.org/ | ||
+ | *[http://blogs.sun.com/GlassFishForBusiness/ GlassFish For Business] | ||
+ | *http://docs.huihoo.com/glassfish/ | ||
+ | *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的最后版本
FishCAT: 社区参与的GlassFish测试.
[编辑] GlassFish简介
您可以在Wikipedia上了解到此条目的英文信息 GlassFish Thanks, Wikipedia. |
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
- GlassFish is an Open Source, Community Based implementation of Java EE 5.
- Java EE 5 is a huge improvement over earlier J2EE versions (J1 Keynotes).
- GlassFish is Production Quality, has very Good Performance and is scalable
- GlassFish is delivered in SJS AS 9.0, Java EE 5 SDK, and NetBeans 5.5.
- GlassFish has already affected adoption and is getting analyst attention [1], [2].
- GlassFish is used by other groups like in JEUS 6 Preview from TMaxSoft.
- GlassFish has many goodies, including Java DB, Java Blueprints and AJAX examples and samples
- GlassFish is committed to your favorite framework and application.
- GlassFish has extensive documentation.
- GlassFish has migration tool support
- GlassFish has a production quality administration console and security support
- GlassFish is at the forefront of JPA adoption.
- GlassFish Web Services stack is very good and it is getting better and better.
- GlassFish's Grizzly delivers top Web Tier performance and flexibility.
- GlassFish has Developer Support, Software Services, Training, classes, forums, blogs and more.
- GlassFish supports AJAX and Scripting.
- GlassFish has platform and tool SOA support, including JBI and BPEL.
- GlassFish is used directly for the official Reference Implementation of Java EE 5.
- GlassFish is the code base for the Sun Java System Application Server.
- GlassFish will incorporate the enterprise features available today in SJS AS 8.x.
- Many components are in the Maven Repository; and more soon.
- We are already working on the next releases (more).
- See some great testimonials
from https://glassfish.dev.java.net/public/faq/GF_FAQ_2.html
[编辑] GlassFish V4
- GlassFish 4.0技术综述
- GlassFish Server 4 Open Source Edition Release Notes
- GlassFish: From Clustering to the Cloud
- GlassFish 4.0 文档集
[编辑] GlassFish V3
GlassFish v3 will supports four types of container :
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 :
- 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
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
- GlassFish OSGi-JavaEE (一): GlassFish与企业级OSGi开发
- GlassFish OSGi-JavaEE(二):深入理解OSGi WEB应用程序规范和GlassFish OSGi/WEB容器
[编辑] ESB
GlassFish ESB Based on GlassFish v3 and Open ESB v3 with Project Fuji
[编辑] Communications Server
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
- 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
$AS_HOME/updatecenter/bin/updatetool
Update Center for GlassFish V3
https://updatecenter.dev.java.net/
[编辑] Clustering
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
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
[编辑] 相关链接
- https://glassfish.dev.java.net/
- http://www.glassfishwiki.org
- http://blogs.sun.com/theaquarium/
- GlassFish 初试
[编辑] GlassFish Modules
- GlassFish Web Services Management
- GlassFish Admin Infrastructure
- GlassFish Appserver Management Extensions (AMX)
[编辑] Powered by GlassFish
[编辑] Related GlassFish Technologies
[编辑] Core
- Glassfish-samples Relevant sample applications to demonstrate Java EE Technologies
- SailFin adds SIP Servlets technology extension to GlassFish Application Server.
- HK2 - https://hk2.dev.java.net/
- openInstaller - https://openinstaller.dev.java.net/
- Shoal
- Atmosphere
- Grizzly
- GlassFishWiki
[编辑] Webtier
- Phobos A lightweight, scripting-friendly, web application environment
- Web Application Description Language (WADL) - https://wadl.dev.java.net/
- JSF Java Server Faces
- JSF Templating - https://jsftemplating.dev.java.net/
- Ajax Project jMaki, Web Remoting using AJAX
[编辑] WS/XML
- Jersey
- JAX-WS - https://jax-ws.dev.java.net/
- WSIT Web Service Interoperability Technology
- XWSS WebServices Security
- JAXB Java API for XML Binding
- JAXP Java API for XML Parsing
[编辑] Other
- Java EE Service Engine
- BluePrints Solution Catalog guidelines and best practices for Java EE applications
- Fast Infoset Binary encoding for the XML Information Set
- Firstcup - Java EE 5 Tutorial
- Generic RA for JMS Generic Resource Adapter for JMS
- Glassfishplugins Plugins for both NetBeans and Eclipse
- istack-commons
- JAXR Java API for XML Registry
- JAX-RPC Java API for XML RPC
- JAX-WS Java API for XML Web Services
- JMS Java Messaging Service
- SAAJ The Standard Implementation for SAAJ
- Shoal - Java based clustering framework
- SJSXP Sun Java Streaming XML Parse
- StAX Streaming API for XML Parsers
- StaX-ex Extended StAX API
- Xmlstreambuffer
[编辑] 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 - Multi-language, Scalable, OpenSocial Software for GlassFish.
WebSynergy也有很多的社区元素, 看能否将两者更多的社区元素整合在一起。
相关项目: Apache Shindig
[编辑] Mobile
MobileFaces, Mobile JSF Kit and GlassFish
[编辑] Middleware Stack
[编辑] 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
[编辑] 成功应用
- Wotif.com: 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://blogs.sun.com/stories/
[编辑] 文档
[编辑] Links
- https://glassfish.dev.java.net/
- http://blogs.sun.com/theaquarium/
- http://wiki.glassfish.org/
- GlassFish For Business
- http://docs.huihoo.com/glassfish/
- http://download.huihoo.com/glassfish/
- http://docs.huihoo.com/javadoc/glassfish/
<discussion>characters_max=300</discussion>