Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Trinidad

2,279 views

Published on

Published in: Business, News & Politics
  • Be the first to comment

  • Be the first to like this

Trinidad

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

×