Your SlideShare is downloading. ×
0
Develop with Pleasure, Deploy
with Fun: NetBeans and
GlassFish for a Better Rails
Experience
Arun Gupta, GlassFish Guy
htt...
What is GlassFish ?




  dkimages.com
What is GlassFish ?
GlassFish: It's a Community!
GlassFish: Lives on java.net




 Since 2005
GlassFish: Open Source and Enterprise Quality
GlassFish: Java EE 5 and 6 Reference
Implementation


                    Java EE 5
                    Java EE 6
Commercially Supported Product: Sun GlassFish
Enterprise Server


                                Enterprise Manager



  ...
GlassFish v2
GlassFish v2: Web-based Administration
GlassFish v2: SOAP, REST, .NET interoperability
GlassFish v2: Clustering & Load Balancing
GlassFish v2: IDE support
GlassFish v3
GlassFish v3: Modular
GlassFish v3: Embeddable
GlassFish v3: Extensible
Why Rails on GlassFish ? - Agile
Why ? - Easy prototyping, yet powerful
Why ? - Best of both worlds
Why ? - A feature for every one: Database
Connection Pooling
Why ? - A feature for every one: Management
Why ? - A feature for every one: Monitoring
Why ? - A feature for every one: Threading
Why ? - A feature for every one
Why ? - Improvements in JVM DL Compilers
Why ? - Deployment choices: Directory, WAR,
Embedded




   Credits: http://www.flickr.com/photos/bostonbrahmin/177442308/
Directory-based deployment: How ?




  jruby -S rails railsconf


  asadmin start-domain
  asadmin create-jvm-options -DJ...
Directory-based deployment: Recipes




        Credits: http://blogs.sun.com/Jacobkessler/entry/capistrano_and_glassfish
Rails on GlassFish: GlassFish Gem
GlassFish Gem: How ?

 jruby -S rails railsconf




 jruby -S gem install glassfish
 cd railsconf
 jruby -S glassfish



   ...
GlassFish Gem: Options


 jruby -S glassfish -h

 -c: change the context root
 -e: environment
 -d: Runs as daemon
 -P: loc...
GlassFish Gem: Recipes




       Credits: http://blogs.sun.com/Jacobkessler/entry/capistrano_and_glassfish_now_with
Not Just Rails ...




       http://blogs.sun.com/arungupta/entry/totd_53_scaffold_in_merb
       http://blogs.sun.com/ar...
And more ...




      http://weblogs.java.net/blog/vivekp/archive/2009/04/plugin_any_ruby.html
Deployment Options




      http://blogs.sun.com/arungupta/entry/totd_81_how_to_use
      http://blog.headius.com/2009/04...
Rails on GlassFish: WAR Deployment




              Credits: http://birdwatchersdigest.com
WAR Deployment: How ?




jruby -S gem install warbler
jruby -S warble


        http://blogs.sun.com/arungupta/entry/totd...
WAR Deployment: How in NetBeans ?
WAR Deployment: Packaging
Rails on GlassFish: Update Center
NetBeans: Develop with Pleasure




         http://blogs.sun.com/arungupta/entry/screencast_26_develop_run_debug
Rails Monitoring
• Basic Monitoring
  -   jinfo: System properties and VM CLI flags
  -   jmap: Shared object memory map
 ...
jConsole




           http://blogs.sun.com/arungupta/tags/rubyonrails+jmx
Turning      A platform and ecosystem
collaboration   for Developers to:
upside-down
                 • Freely host open s...
Endorsements                    had no reliability and
                               performance issues with
            ...
Who loves Rails on GlassFish ?
JRuby, Rails, and GlassFish Bootcamp
May 19/20, San Francisco




            railscamp.eventbrite.com
Resources
•   glassfish.org
•   blogs.sun.com/theaquarium
•   glassfish-scripting.dev.java.net
•   wiki.glassfish.java.net...
Develop With Pleasure  Deploy With Fun  Glass Fish And Net Beans For A Better Rails Experience Presentation
Develop With Pleasure  Deploy With Fun  Glass Fish And Net Beans For A Better Rails Experience Presentation
Develop With Pleasure  Deploy With Fun  Glass Fish And Net Beans For A Better Rails Experience Presentation
Upcoming SlideShare
Loading in...5
×

Develop With Pleasure Deploy With Fun Glass Fish And Net Beans For A Better Rails Experience Presentation

1,854

Published on

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,854
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
38
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Transcript of "Develop With Pleasure Deploy With Fun Glass Fish And Net Beans For A Better Rails Experience Presentation"

  1. 1. Develop with Pleasure, Deploy with Fun: NetBeans and GlassFish for a Better Rails Experience Arun Gupta, GlassFish Guy http://blogs.sun.com/arungupta Sun Microsystems, Inc.
  2. 2. What is GlassFish ? dkimages.com
  3. 3. What is GlassFish ?
  4. 4. GlassFish: It's a Community!
  5. 5. GlassFish: Lives on java.net Since 2005
  6. 6. GlassFish: Open Source and Enterprise Quality
  7. 7. GlassFish: Java EE 5 and 6 Reference Implementation Java EE 5 Java EE 6
  8. 8. Commercially Supported Product: Sun GlassFish Enterprise Server Enterprise Manager Customer Advocate eLearning Credit Customer Focused 24x7 Support Support Team GlassFish Sun VIP Open Source Patches & Interoperability Application Server Upgrades Support
  9. 9. GlassFish v2
  10. 10. GlassFish v2: Web-based Administration
  11. 11. GlassFish v2: SOAP, REST, .NET interoperability
  12. 12. GlassFish v2: Clustering & Load Balancing
  13. 13. GlassFish v2: IDE support
  14. 14. GlassFish v3
  15. 15. GlassFish v3: Modular
  16. 16. GlassFish v3: Embeddable
  17. 17. GlassFish v3: Extensible
  18. 18. Why Rails on GlassFish ? - Agile
  19. 19. Why ? - Easy prototyping, yet powerful
  20. 20. Why ? - Best of both worlds
  21. 21. Why ? - A feature for every one: Database Connection Pooling
  22. 22. Why ? - A feature for every one: Management
  23. 23. Why ? - A feature for every one: Monitoring
  24. 24. Why ? - A feature for every one: Threading
  25. 25. Why ? - A feature for every one
  26. 26. Why ? - Improvements in JVM DL Compilers
  27. 27. Why ? - Deployment choices: Directory, WAR, Embedded Credits: http://www.flickr.com/photos/bostonbrahmin/177442308/
  28. 28. Directory-based deployment: How ? jruby -S rails railsconf asadmin start-domain asadmin create-jvm-options -DJRUBY_HOME=... asadmin deploy railsconf
  29. 29. Directory-based deployment: Recipes Credits: http://blogs.sun.com/Jacobkessler/entry/capistrano_and_glassfish
  30. 30. Rails on GlassFish: GlassFish Gem
  31. 31. GlassFish Gem: How ? jruby -S rails railsconf jruby -S gem install glassfish cd railsconf jruby -S glassfish http://blogs.sun.com/arungupta/entry/totd_70_jruby_and_glassfish
  32. 32. GlassFish Gem: Options jruby -S glassfish -h -c: change the context root -e: environment -d: Runs as daemon -P: location of PID file -l: log file location -log-level: Logging level (0-7)
  33. 33. GlassFish Gem: Recipes Credits: http://blogs.sun.com/Jacobkessler/entry/capistrano_and_glassfish_now_with
  34. 34. Not Just Rails ... http://blogs.sun.com/arungupta/entry/totd_53_scaffold_in_merb http://blogs.sun.com/arungupta/entry/totd_80_sinatra_crud_application
  35. 35. And more ... http://weblogs.java.net/blog/vivekp/archive/2009/04/plugin_any_ruby.html
  36. 36. Deployment Options http://blogs.sun.com/arungupta/entry/totd_81_how_to_use http://blog.headius.com/2009/04/apache-jruby-rails-glassfish-easy.html
  37. 37. Rails on GlassFish: WAR Deployment Credits: http://birdwatchersdigest.com
  38. 38. WAR Deployment: How ? jruby -S gem install warbler jruby -S warble http://blogs.sun.com/arungupta/entry/totd_73_jruby_and_glassfish
  39. 39. WAR Deployment: How in NetBeans ?
  40. 40. WAR Deployment: Packaging
  41. 41. Rails on GlassFish: Update Center
  42. 42. NetBeans: Develop with Pleasure http://blogs.sun.com/arungupta/entry/screencast_26_develop_run_debug
  43. 43. Rails Monitoring • Basic Monitoring - jinfo: System properties and VM CLI flags - jmap: Shared object memory map - jstack: Stack traces of Java threads - jstat: Performance statistics on class, JIT compiler, GC, ... • Advanced - jconsole / Visual VM - NewRelic, FiveRuns, ...
  44. 44. jConsole http://blogs.sun.com/arungupta/tags/rubyonrails+jmx
  45. 45. Turning A platform and ecosystem collaboration for Developers to: upside-down • Freely host open source projects and code • Connect, Communicate, Collaborate, and Code with peers • Eventually easily deploy applications/services to “clouds” • http://kenai.com
  46. 46. Endorsements had no reliability and performance issues with Glassfish money is on JRuby (and Look like the best Glassfish) for the long deploying option I ever haul; if you haven't checked found for Rails, GREAT! out Glassfish yet, you're doing yourself a disservice! nice way to deploy and manage my app while leaving things open for scaling the easiest rails stack in the world, jruby 1.2rc, rails 2.3rc, leading the way to simple, glassfish v3 scalable, no-hassle hosting for ... Ruby web applications. too easy to run jruby/rack/ ... glassfish behind nginx it's true one-step deployment.
  47. 47. Who loves Rails on GlassFish ?
  48. 48. JRuby, Rails, and GlassFish Bootcamp May 19/20, San Francisco railscamp.eventbrite.com
  49. 49. Resources • glassfish.org • blogs.sun.com/theaquarium • glassfish-scripting.dev.java.net • wiki.glassfish.java.net/Wiki.jsp?page=JRuby • blogs.sun.com/arungupta
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×