I notice that in JBossAS 5.0 GA, jbosssvc.exe and service.bat are included to install JBoss as a Windows service.
Is it possible to customize the service configuration to start a specific JBoss configuration? This would be similar to passing the -c option on the command line.
What I'd like to be able to do is to have 2 windows services (or more) that start up separate configurations, similar to:
run.bat -c node1
run.bat -c node2
I guess any way to pass generic arguments to the run script from the service configuration would be good as I might need to pass other system properties that are different for each configuration (like ServiceBindingManager port sets).
Create two copies of service.bat, and edit each to start the desired config. See http://www.jboss.com/index.html?module=bb&op=viewtopic&t=145181
Also see http://www.jboss.com/index.html?module=bb&op=viewtopic&t=147884