• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Starting jboss automatically after booting the machine.

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Start it as a service
 
Sham Phadtale
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ohh..K
Thank you Jai.
 
Sham Phadtale
Ranch Hand
Posts: 75
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for posting it here, I wasn't aware of that option.
 
On top of spaghetti all covered in cheese, there was this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic