aspose file tools*
The moose likes JBoss/WildFly and the fly likes Run jboss after Logoff from windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Run jboss after Logoff from windows" Watch "Run jboss after Logoff from windows" New topic
Author

Run jboss after Logoff from windows

rajeev kum
Greenhorn

Joined: Apr 19, 2010
Posts: 4
Hello experts,

First of all congrats to all for maintaining such a nice forum.

I am running jboss as service but when I logoff from the system and again login the service do out start automatically. I have to restart it manually.
while this is not with the case with restart. when I restart the system the service get start automatically.

so I am trying to figure out Is it possible to run jboss service after logoff.

regards,
rajeev


Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10263
    
168

Rajeev,

Welcome to JavaRanch

I am running jboss as service


Can you tell us how you are doing that? Are you using JBoss Native (which version?) or something else? And which version of JBoss AS is this? Are you passing any additional params to the service?


[My Blog] [JavaRanch Journal]
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10263
    
168

Also, please check your private messages for a message from JavaRanch.
rajeev kum
Greenhorn

Joined: Apr 19, 2010
Posts: 4
Thankx for the quick reply.

Can you tell us how you are doing that? Are you using JBoss Native (which version?) or something else? And which version of JBoss AS is this? Are you passing any additional params to the service?


I am using Jboss 4.2.3 version and for installing Jboss as service I am using jboss native version 1.2.2.0. and using command service.bat install

regards,
Rajeev
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5842
    
    7

Windows services do not start when you log in - they start when the system boots.

How are you determining that JBoss AS is not running? What startup setting is used for the service (automatic, manual)?


JBoss In Action
rajeev kum
Greenhorn

Joined: Apr 19, 2010
Posts: 4
Thanks peter for your reply,

My client applications are connected with the Jboss server, As soon as I log off from my server machines client application get disconnected, hence I assumed that Jboss is not running in background. I checked it from apache tomcat webserver, it is still running when I log off from the serve. Can this kind of functionality is possible in jboss application server ?

I am using automatic as a startup setting.

regards,
rajeev
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10263
    
168

Try adding -Xrs to the JAVA_OPTS section in the run.bat.
rajeev kum
Greenhorn

Joined: Apr 19, 2010
Posts: 4
Thanks jaikiran its working, thanks a lot.

regards,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Run jboss after Logoff from windows