File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Starting jboss automatically after booting the machine. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Starting jboss automatically after booting the machine." Watch "Starting jboss automatically after booting the machine." New topic
Author

Starting jboss automatically after booting the machine.

Sham Phadtale
Ranch Hand

Joined: Jul 29, 2008
Posts: 75
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

Joined: Jul 20, 2005
Posts: 10046
    
163

Start it as a service


[My Blog] [JavaRanch Journal]
Sham Phadtale
Ranch Hand

Joined: Jul 29, 2008
Posts: 75
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

Joined: Jul 20, 2005
Posts: 10046
    
163

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

Joined: Jul 29, 2008
Posts: 75
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

Joined: Jul 20, 2005
Posts: 10046
    
163

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

Joined: Jul 29, 2008
Posts: 75
Ohh..K
Thank you Jai.
Sham Phadtale
Ranch Hand

Joined: Jul 29, 2008
Posts: 75
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

Joined: Jul 20, 2005
Posts: 10046
    
163

Thanks for posting it here, I wasn't aware of that option.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Starting jboss automatically after booting the machine.