|
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] |
|
Administrator
|
When you launch a process with java web start, can you specify
additional system properties? Also, does javaws run in a headless environment? 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. 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] |
|
Ive created patch #973
(https://hudson.dev.java.net/issues/show_bug.cgi?id=973). This will patch the current JNLP implementation. The code change that was needed (in my eyes) does not suffice a separate JNLP as it is very small. Also there is one less thing to think of when configuring the web start agents, as there is only one JNLP file (keeping with the Hudson idea of simple configuration). Less code = less to maintain ;) //Erik 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? > > 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. > > 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] |
|
Administrator
|
Erik Ramfelt wrote:
> Ive created patch #973 > (https://hudson.dev.java.net/issues/show_bug.cgi?id=973). This will > patch the current JNLP implementation. The code change that was needed > (in my eyes) does not suffice a separate JNLP as it is very small. OK. I just applied your patch. This will be in 1.152. > Also there is one less thing to think of when configuring the web > start agents, as there is only one JNLP file (keeping with the Hudson > idea of simple configuration). Less code = less to maintain ;) -- Kohsuke Kawaguchi Sun Microsystems [hidden email] |
|
Great, thanks.
BTW thanks for fixing the issue with the NUnit plugin. Cheers //Erik On Nov 5, 2007 8:29 PM, Kohsuke Kawaguchi <[hidden email]> wrote: > Erik Ramfelt wrote: > > Ive created patch #973 > > (https://hudson.dev.java.net/issues/show_bug.cgi?id=973). This will > > patch the current JNLP implementation. The code change that was needed > > (in my eyes) does not suffice a separate JNLP as it is very small. > > OK. I just applied your patch. This will be in 1.152. > > > > Also there is one less thing to think of when configuring the web > > start agents, as there is only one JNLP file (keeping with the Hudson > > idea of simple configuration). Less code = less to maintain ;) > > > -- > Kohsuke Kawaguchi > Sun Microsystems [hidden email] > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
| Powered by Nabble | Edit this page |
