Download presentation
Presentation is loading. Please wait.
Published byAsher Rogers Modified over 8 years ago
1
GlassFish Workshop 1 Dynamic Languages in GlassFish Arun Gupta blogs.sun.com/arungupta
2
GlassFish Workshop 2 Learn about Dynamic Languages and associated Web frameworks development and deployment in GlassFish
3
GlassFish Workshop 3 Agenda
4
GlassFish Workshop 4 Agenda
5
GlassFish Workshop 5 Ruby - a Dynamic-typed, pure OO language > 1.8.x is current, 1.9.0 in development to become 2.0 Rails - a Web framework based on MVC pattern > Written in Ruby, Rails 2.1 released Jun 2008 > Typical Development: WEBrick > Typical Deployment: Mongrel + Lighty or nginx or... JRuby - Java implementation of Ruby language > Ruby 1.8.6 compliant > JRuby 1.1.3 released in Jul 2008 > Native Threading, Solid Performance Ruby and Rails
6
GlassFish Workshop 6 Typical Deployment Model Ruby Mongrel Rails Rub y Cod e Rail s OS Proc. Ruby Mongrel Rails... Web Server / Load Balancer
7
GlassFish Workshop 7 GlassFish v3 Gem Gem: Packaged Ruby application > Defined by RubyGems GlassFish Gem = v3 Core Runtime + Grizzly JRuby Adapter Experience similar to WEBrick For Development & Deployment > jruby -S glassfish_rails Small (2.68 Mb) Current Version: 0.3.1
8
GlassFish Workshop 8 GlassFish v3 Deployment Model GlassFish Grizzly Listener JRuby Rails JRuby Rails... Rails Adapter Web Adapter XXX Adapter
9
GlassFish Workshop 9 JRuby Runtime Pooling Create JRuby Runtime Load Rails Environme nt Add to Runtime Pool JRuby Rail s JRuby Rail s Gem Startup Repeat for # of runtimes needed
10
GlassFish Workshop 10 Directory-based Deployment Develop Rails application > NetBeans IDE > JRuby CLI Deploy directly on GlassFish v3 TP2 > asadmin deploy
11
GlassFish Workshop 11 WAR-based Deployment Using JRuby CLI > Install Warbler as a gem –jruby -S gem install warbler Using NetBeans IDE > Goldspike in NB 6.1, Warbler in NB 6.5 Deploy directly on GlassFish v2 or v3
12
GlassFish Workshop 12 Application Layout (Rails)
13
GlassFish Workshop 13 Application Layout (WAR)
14
GlassFish Workshop 14 WAR-based Rails Dispatching
15
GlassFish Workshop 15
16
GlassFish Workshop 16 Why Rails on GlassFish ? Java EE is tested platform > Co-host Java EE and Rails applications One-command, One-instance, One-process > “Green” alternative Database Connection Pooling OOTB Clustering, High Availability and Session Failover More details > http://developers.sun.com/appserver/reference/techart/ra ils_gf/
17
GlassFish Workshop 17 Agenda
18
GlassFish Workshop 18 Grails on GlassFish Supported on GlassFish v2 and v3 > Update Center Module > Grails 1.0.2, Groovy 1.5.4 GlassFish v3 embedded with Grails > Unzip grails-glassfish-v3-overlay.zip on grails installation > Just run grails run-app-gf Groovy in JSF > Create JSF components in Groovy > Just code, save and refresh
19
GlassFish Workshop 19 Agenda
20
GlassFish Workshop 20 Django on Glassfish Jython community is back > Frank Wierzbicki is on top of it Plan on integrating Django with GlassFish v2 and v3 > Initial work is encouraging > Currently Django support comes through modjy and Jython > Tighter integration with GlassFish v3 in progress –Twisted, Grizzly
21
GlassFish Workshop 21 Agenda
22
GlassFish Workshop 22 JavaScript and Phobos Light-weight application framework Running on the Java platform Deploy to any Servlet container Current focus is JavaScript NetBeans integration
23
GlassFish Workshop 23 Agenda
24
GlassFish Workshop 24 End-to-end Demo (Tic Tac Toe) Multi-player game Played over Internet Using GlassFish Comet
25
GlassFish Workshop 25 Tic Tac Toe http://blogs.sun.com/arungupta/entry/tic_tac_toe_using_rails
26
GlassFish Workshop 26 For More Information Scripting in GlassFish Home > glassfish-scripting.dev.java.net GlassFish > glassfish.dev.java.net NetBeans IDE > netbeans.org WebTier Alias & Forum > webtier@glassfish.dev.java.net > http://forums.java.net/jive/forum.jspa?forumID=138 > glassfish-scripting@sun.com (internal)
27
GlassFish Workshop 27 Dynamic Languages in GlassFish Arun Gupta blogs.sun.com/arungupta
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.