I have installed the Jboss 5 server in windows xp.
After booting the machine i have to start the jboss service manually.I have to execute the run.bat file to start jboss service.
is there any way to start jboss service automatically after booting the machine?
Hello Jai, actually I am already using JBoss 5.1 as a service. I am using IZ installer to install my application. When I install application service get started. But after restarting my machine I need to start it by going to "run->services.msc". In services it shows startup type as Manual. I want it as Automatic. So I am searching solution for it.
Sham Phadtale wrote: In services it shows startup type as Manual. I want it as Automatic. So I am searching solution for it.
If you are an admin, then you can set the service as "Automatic" after it has been installed. So if there are any restarts after that, the service will be started automatically.
Ohh..means you want to say that after installing JBoss 5.1 as a service I need to go in services.msc and make it as Automatic. So it is not possible to set JBoss service as Automatic inside some jboss file, is it?
Sham Phadtale wrote:Ohh..means you want to say that after installing JBoss 5.1 as a service I need to go in services.msc and make it as Automatic.
Yes.
Sham Phadtale wrote:
So it is not possible to set it service as Automatic inside some jboss file, is it?
From what I know, as far as JBoss Native is concerned, no it's not possible to mark it automatic while creating the service. I remember there was a forum thread where this was discussed and I think that was the conclusion. Can't find that thread now.
Hey Jai, I found the solution.
I just edited service.bat file - cmdInstall command.
Previously it was -
:cmdInstall
jbosssvc.exe -imwdc %SVCNAME%
I have updated it to -
:cmdInstall
jbosssvc.exe -iwdc %SVCNAME%
m from "-imwdc" was making the service as manual. I removed this m, and now service type is Automatic