| Author |
Sun Application Server stops when i logg off
|
jite eghagha
Ranch Hand
Joined: Oct 06, 2006
Posts: 124
|
|
I have the Sun App server on a machine called BirdMan. (the netbeans bundle) when ever i start the server, deploy to it, and logg off,.....the Sun App server loggs off too. Should i reinstall the Sun App Server without the Netbeans ? Is there an option i can set to get the current installation a have to run as a service?
|
 |
Masoud Kalali
Author
Ranch Hand
Joined: Jul 08, 2004
Posts: 531
|
|
You may take a look at: http://www.nabble.com/how-to-start-glassfish-as-windows-service-or-Linux-daemon--t2642188.html in that thread it has explained how you can run Sun application server/glassfish as a windows service or linux daemon.
|
Masoud Kalali
Software Engineer - My Weblog - GlassFish Security
|
 |
jite eghagha
Ranch Hand
Joined: Oct 06, 2006
Posts: 124
|
|
Ok now i see that my "testWebApp" is listed in windows services. But things aren't as i thought they'd be. i thought that when i logg off my machine my web services on My Sun App server would still run, but that is not the case. When i logg off, my Sun application server stops too. How do i keep the sun appplication server running even after i'm logged off? [ November 29, 2006: Message edited by: jite eghagha ]
|
 |
Masoud Kalali
Author
Ranch Hand
Joined: Jul 08, 2004
Posts: 531
|
|
Freind, you should register the service as a SYSTEM user service sure it will stop after you log-off when the service is registered for your own user. hth
|
 |
jite eghagha
Ranch Hand
Joined: Oct 06, 2006
Posts: 124
|
|
solution on WinXP: creating a windows service: sc.exe create domain1 binPath= "C:\Sun\AppServer\lib\appservService.exe \"C:\Sun\AppServer\bin\asadmin.bat start-domain --user admin --passwordfile C:\Sun\AppServer\password.txt domain1\" \"C:\Sun\AppServer\bin\asadmin.bat stop-domain domain1\"" start= auto DisplayName= "BasisPlus Application Server" Add JVM option -Xrs in the domain.xml
|
 |
jite eghagha
Ranch Hand
Joined: Oct 06, 2006
Posts: 124
|
|
solution on WinXP: creating a windows service: sc.exe create domain1 binPath= "C:\Sun\AppServer\lib\appservService.exe \"C:\Sun\AppServer\bin\asadmin.bat start-domain --user admin --passwordfile C:\Sun\AppServer\password.txt domain1\" \"C:\Sun\AppServer\bin\asadmin.bat stop-domain domain1\"" start= auto DisplayName= "BasisPlus Application Server" Add JVM option -Xrs in the domain.xml And your done! Your sun app server now runs as a windows servie and will continue to do so even if you logg off.
|
 |
 |
|
|
subject: Sun Application Server stops when i logg off
|
|
|