Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Starting jboss automatically after booting the machine.

 
Sham Phadtale
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start it as a service
 
Sham Phadtale
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sham Phadtale
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sham Phadtale
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ohh..K
Thank you Jai.
 
Sham Phadtale
Ranch Hand
Posts: 75
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for posting it here, I wasn't aware of that option.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic