Re: Headless agents through JNLP

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Headless agents through JNLP

Erik Ramfelt
On Nov 3, 2007 8:59 PM, Kohsuke Kawaguchi <[hidden email]> wrote:
> When you launch a process with java web start, can you specify
> additional system properties? Also, does javaws run in a headless
> environment?

No, I dont think so as javaws is a Swing application; I can remove the
splash screen but not the load screen. But the other JNLP executor
(Netx) can run in headless mode and hopefully run as a service. And a
quick test together with JWS verified that I could specify system
properties that is read by a JNLP app.

> I think it might be easier if Hudson creates two .jnlp files, perhaps
> with a different Main class, so that you can take an entirely
> different codepath.

Sure, there are not much I need but a copy of the Engine class, so it
might be easy to fix. There wont be any problem in the GUI to show two
JNLP files? Do you want it in the core, or should it be a plugin?

regards
//erik

>
> 2007/11/3, Erik Ramfelt <[hidden email]>:
>
> > Has anyone looked into running the slaves through JNLP and headless?
> > Yesterday I managed to get the Hudson master server to run as a
> > Windows service (see wiki); and I would like to run the slaves as
> > services also. I guess services should not have show any GUI, and
> > therefore Im thinking of altering the
> > src/main/java/hudson/jnlp/Main.java so it doesnt create the main frame
> > if the -Dhudson.headless is set to true. Instead it will just create a
> > listener that logs to the output and is used by the Engine. Let me
> > know if anyone objects to this solution.
> >
> > Has anyone tried running the slaves headless, specially on Windows?
> >
> >
> > For the service integration Im using Java Service Wrapper. As I
> > couldnt get the normal Java webstart to run headless Im thinking of
> > using Netx (http://jnlp.sourceforge.net) for the JNLP integration. I
> > havent used any of those tools in any live environment, so let me know
> > if anyone used them.
> >
> >
> >
> > Regads
> > //Erik
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
>
> --
> Kohsuke Kawaguchi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]