PDA

View Full Version : How to start Galssfish when machine start



mthalis
September 30th, 2010, 08:50 AM
I'm using Glassfish v2.1 server in windows xp machine. I want to run Glassfish server when machine start. Without out putting my bat script into widows start up(C:\Documents and Settings\ABC\Start Menu\Programs\Startup). Below show my .bat script.

run.bat
-----------------
cd C:\Glassfish\bin
asadmin start-domain domain1
pause
---------------

Thank You

r-senior
September 30th, 2010, 09:39 AM
There's a launchpad issue that covers this and has an example startup script:

https://bugs.launchpad.net/ubuntu/+source/glassfish/+bug/150960

Also blogs that cover the creation of a startup script:

http://blogs.sun.com/kkranz/entry/setting_up_glassfish_on_ubuntu

http://computingwithjasper.blogspot.com/2008/01/installing-glassfish-2-on-ubuntu-710.html

mthalis
September 30th, 2010, 10:10 AM
Thanks for reply, I want to do it windows xp machine

PaulM1985
September 30th, 2010, 10:12 AM
You may get more luck if you posted this message on a Windows based forum.