• Like
Trinidad
Upcoming SlideShare
Loading in...5
×

Trinidad

  • 1,762 views
Uploaded on

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,762
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
8
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. TrinidadDavid Calavera@calavera
  • 2. railsflavoured java
  • 3. mongreltomcat + warbler
  • 4. glassfish gemtomcat + warbler
  • 5. jetty-railstomcat + warbler
  • 6. tomcat gemtomcat + warbler
  • 7. tomcat =~ 8MBtrinidad =~ 3MB
  • 8. gem installtrinidad
  • 9. jruby -Strinidad
  • 10. jruby -S trinidad--jars lib/jars
  • 11. jruby -S trinidad--classes lib/classes
  • 12. jruby -S trinidad--apps webApps
  • 13. --- web_apps: app1: context_path: /foo app2: rackup: config.ru
  • 14. gem installtrinidad_foo_extension
  • 15. module Trinidad::Extensions class Foo < ServerExtension def configure(tomcat) ...eeeeeeend
  • 16. module Trinidad::Extensions class Foo < ServerExtension def configure(tomcat) tomcat.destroyeenndd
  • 17. module Trinidad::Extensions class Foo < ServerExtension def configure(tomcat) tomcat.add_web_app ...ennnnd
  • 18. module Trinidad::Extensions class Foo < WebAppExtension def configure(tomcat, context) ...enddddd
  • 19. module Trinidad::Extensions class Foo < OptionsExtension def configure(parser, default_options) ...eeeeeeeeeeeeeeeeeeennndddd
  • 20. jruby -S trinidad--load scheduler
  • 21. class Job < TrinidadScheduler.Simple :start => Time.now, :end => Time.now + 240 def run _logger.info “each 5 seconds” endend
  • 22. jruby -S trinidad-l mysql_dbpool
  • 23. “ it would begreat if ... “
  • 24. “ this is prettycool but ... “
  • 25. jruby -S trinidad--load daemon
  • 26. jruby -S trinidad--load hotdeploy
  • 27. jruby -S trinidad--load hotdeploy
  • 28. “ could we have nodowntime deploy? “
  • 29. gem installtrinidad_init_services
  • 30. gem installtrinidad_rack
  • 31. jruby -S trinidad--load sandbox
  • 32. trinidad
  • 33. thank you!
  • 34. ?
  • 35. lamazonerishibando