Java Entrepreneur

Java Application Development & Entrepreneurship

Two Things Ruby on Rails Does Not Have

BlogPicture

My hope as I write this is that someone will respond saying how much of a newb I am today. I have done some homework on this subject though and I'm doubtful but I hold out hope. I've been humbled a few times while writing posts for this blog however and I can take it.

First, one thing that I would like to do with Ruby on Rails is create a web services client that my application could use to consume exposed services with on the Internet. I'm thinking along the lines of creating mashups etc… but I cannot find any examples of this type of thing having been done. Here I think of something along the lines of Apache Axis in Java.

Second, I really wish there was some way to encapsulate a scheduler inside my web application. For some reason I would have thought that it would be easy to spawn a process that would be able to fire off tasks at predetermined times somewhere in the background. I've been told though that this is not possible with RoR and that I would need to use Cron or AT to accomplish something like that with Rails. Here I'm thinking of the ability to fire off emails based on data in a database or… to fire off a request to some web service store the results in a database. I think of the Java Quartz scheduler as I write this now.

Anyway, during my travels in the Rails world I've run into these things. I keep my Eyes Open to see if anyone else has run into these issues as well but I have not seen anyone bring them up.

Info & Utils

Published in Thursday, February 2nd, 2006, at 11:44 am, and filed under Programming.

Do it youself: Digg it!Save on del.icio.usMake a trackback.

Previous text: .

Next text: .

13 Responses

  1. SF Says:

    Take a look at the “Putting Flickr on Rail” screen cast at http://www.rubyonrails.org/screencasts

  2. Jason Says:

    Thanks Dan and SF.

    Here is another link that someone emailed me on this subject of using web services with Ruby on Rails.

    http://www.roryhansen.ca/2005/07/18/amazon-web-services-on-rails/

    As far as the scheduler goes it looks as if that is simply not possible with Rails.

    Jason

  3. Coda Hale Says:

    As for running background processes for schedulers and the like, it’s quite easy to share a singleton schedule manager via a separate dRuby process. We’re talking maybe 100 lines of code, tops. Not terribly straight forward, but it’ll do.

    Enterprise Integration with Ruby, which is in beta from Pragmatic Bookshelf, has great sections on both web service clients and dRuby.

    It’s not really Rails, per say, but rather Ruby functionality.

  4. Saurabh Chandra Says:

    You can also try rails_cron for a ruby based scheduler.
    http://svn.kylemaxwell.com/rails_cron/trunk/README
    http://lists.rubyonrails.org/pipermail/rails/2006-February/016666.html

    cheers
    Saurabh
    p.s. I have not used it so far, but am going to soon

  5. Adam Says:

    For scheduling you might look at moment http://rubyforge.org/projects/moment/

    I haven’t used it yet myself but a quick look at the docs shows creating events using cron-like syntax.

  6. Andre Says:

    rails_cron has been deprecated as of 2006-09-08.

    It has been replaced by daemon_generator

    “moment” development seems to be static right now (2007-09-12) another option for scheduling tasks is
    backgroundrb

  7. Andre Says:

    rails_cron < http://kylemaxwell.typepad.com/everystudent/2006/09/railscron_depre.html > has been deprecated as of 2006-09-08.

    It has been replaced by daemon_generator < http://kylemaxwell.typepad.com/everystudent/2006/08/after_writing_r.html >

    “moment” development seems to be static right now (2007-09-12) another option for scheduling tasks is
    backgroundrb <
    http://backgroundrb.devjavu.com >

  8. Andre Says:

    rails_cron http://kylemaxwell.typepad.com/everystudent/2006/09/railscron_depre.html has been deprecated as of 2006-09-08.

    It has been replaced by daemon_generator http://kylemaxwell.typepad.com/everystudent/2006/08/after_writing_r.html

    “moment” development seems to be static right now (2007-09-12) another option for scheduling tasks is
    backgroundrb http://backgroundrb.devjavu.com

  9. tombola bingo Says:

    Yes search this key word Putting Flickr on Rail and you will get your desired result.

  10. hillery Says:

    well, my issue is more what this Ruby on Rails is???
    http://www.googletopranking.de/

  11. seyret Says:

    had ebe sende!

  12. reno Says:

    verstehe das nicht so ganz

  13. scheck24 Says:

    kann jemand was dazu sagen ?

Leave a Reply

Java Entrepreneur © 2006. Theme Squared created by Rodrigo Ghedin.