Sure. For example I have a program that needs to run and act like a
synchronization service between 2 systems. I am getting data from one
system
and it’s getting plugged into a database on my system. Then my service
either
is notified about, or maybe periodically polls for, the new data. When
it
determines there is new data, it is responsible for unpacking that data
and
doing stuff with it.
We have a number of other service based programs.
We would like all our services to have a consistent/common interaction
mechanism from a management sense. We would like to be able to start
them,
stop them, restart them, figure out if it’s running or not. Basically,
the
“clients” would only be telling a service to perform these actions.
In windows, there is infrastructure for a service where you get all the
“goo”
around start, stop etc. (you just plug your business logic in)
In java it appears that I could use the java service wrapper to achieve
something similar.
I guess what I am trying to figure out is:
a) If I used something like JSW, how easy is it to launch the jrubyvm
programatically from within a jvm, Is it easy to notify the Jruby
program of a
shutdown, stop, status request?
b) does something like this already exist? (if not I’ll start with the
JSW
and see where I can go from there)
c) Is there a different way (in your opinion) I should be attacking
this
feature? I’m recently coming to jruby from the windows/.net world so
I’m
totally willing to believe I may be on the wrong track here
Does this help clarify or confuse?
Thanks a bunch.
Jay
=====================
From: Tyler J. [email protected]
Date: 2008/06/04 Wed PM 12:53:33 EDT
To: [email protected]
Subject: Re: [jruby-user] Jruby in a service
“Service” is pretty broad, could you tell us a little more about what
this service needs to do and how clients will interact with it?
-Tyler J.
On Wed, Jun 4, 2008 at 11:45 AM, Jay McGaffigan
[email protected]
wrote:
windows to *nix but the timing isn’t set in stone yet so I need some
To unsubscribe from this list, please visit:
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