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 and the fly likes Run jboss after Logoff from windows Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » JBoss
Reply 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: 8142
    
  52

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: 8142
    
  52

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: 5536

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: 8142
    
  52

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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Run jboss after Logoff from windows
 
Similar Threads
Login Session maintain Problem
JBoss terminated unexpectedly
Starting JBoss as windows service.
Running JBoss-5.1.0.GA as a service on Red Hat?
logout problem