State of something like backgroundrb


#1

Hi,
Is there an equivalent in java or jruby for backgroundrb, that runs on
an application server like glassfish?
I want to offload long running tasks in another thread (or process or
whatever) and query the status of the task.

I did a quick search on the mailing list and found several other
threads about the topic, but no one had a good recommendation.
Has something changed about this topic?

Thanks for helping
Sam


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#2

You could certainly wrap a JRuby runtime in a Java object that provided
interfaces to query the interior task, and use that on within whatever
Java framework you wanted. That’s the approach that GlassFish uses to
provide support for ruby-based web frameworks. Would that work in your
situation?

Sam wrote:

Thanks for helping
Sam


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#3

you can use ruffus-scheduler, which just uses plain Ruby Threads. In
JRuby
they are (fortunately) mapped to native threads, so everything should
work
fine.

On Wed, Oct 15, 2008 at 2:30 PM, Sam removed_email_address@domain.invalid wrote:

Thanks for helping
Sam


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Fabio K.
http://www.fabiokung.com

Caelum - Ensino e Inovação
http://www.caelum.com.br


#4

Hi,
so the solution I want to work on is using workling (yes, it’s a rails
app, I forgot to mention that) and spawn, which is configurable to use
threads instead of forking itself.
I’ll let you know if it works.

Sam

http://playtype.net/past/2008/10/2/workling_version_03_released/
http://spawn.rubyforge.org/svn/spawn/

Am 15.10.2008 um 23:28 schrieb Fabio K.:

http://xircles.codehaus.org/manage_email
http://www.caelum.com.br


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email