logo       

RE: Space Bar to Continue?: msg#00036

java.jboss.user

Subject: RE: Space Bar to Continue?

i use SRVANY.EXE with INTSRV.EXE. you can find all this on the web easily.
just do a google search for them. they are part of the nt resource kit.

Here are the steps (there are several steps but it is very easy)

search the web for the following executables and put them on your system
available in your system path:
srvany.exe
intsrv.exe
kill.exe
sleep.exe


Install the Service:
-> Copy SRVANY.EXE to your system and install it as a Windows NT service,
for example:
INSTSRV JBoss c:\tools\srvany.exe

Configure The Service:
Run the Registry Editor (REGEDT32.EXE):
-> under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\JBoss: create
a 'Parameters' key
-> under the above key, create an 'Application' value of type REG_SZ and
specify there the full path of your app executable (including the
extension). For example:
Application: REG_SZ: D:\java\etc\StartJBoss.bat

Create your StartJBoss.bat file
You do whatever you want here. In a nutshell, my bat file looks as follows.
Note that i use some non-dos commands that i carry around with me from pc to
pc to allow dos act like a real shell, e.g. sleep, kill. Also instead of
using "CD" to change directories, use "PUSHD". CD will not work if the
directory is on a different drive but PUSHD does.

rem startjboss.bat
rem kills any java process still running, i.e. previous jboss instance
kill java
rem wait a few seconds
sleep 5
rem change dir to jboss bin dir. pushd works even if different drive letter
pushd %JBOSS_HOME%\jboss\bin
rem run jboss with tomcat
call .\run.bat tomcat


Modify jboss\run.bat:
the last line must be modified like this to add a -x parameter...

java -xRS

this will prevent the service from stopping when you log off the system.


before you try to start the service test it. you should be able to bring up
a FRESH dos window and from any directory and drive you should be able to
run the
startjboss.bat file and have jboss start properly. once that works, then
try starting the service....

net start jboss


NOTE THIS ISSUE: when you do 'net stop jboss', it stops the service but will
not
stop the java program so jboss will still be running! not until you issue
another "net start jboss" will the
previous java process stop (this is due to the kill.exe command that is run
inside that startjboss.bat file). This is too bad and is an issue.

Finally, i've done this several times now on several machines. i never have
a problem and i find that the whole configuration takes less than a couple
minutes.

frank


-----Original Message-----
From: Vijay [mailto:vijay@xxxxxxxxxxxxxxx]
Sent: Friday, June 28, 2002 9:56 PM
To: jboss-user@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [JBoss-user] Space Bar to Continue?


Hi Frank,

Just send the details...

vijay

----- Original Message -----
From: "Starsinic, Frank" <frank.starsinic@xxxxxxxxxx>
To: <jboss-user@xxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, June 28, 2002 8:53 PM
Subject: RE: [JBoss-user] Space Bar to Continue?


> yes, if that is the problem, it WILL indeed fix it.
>
> if you need help getting it to run as a service, let me know.
> i've done it many times and i think i've found the easiest
> way.
>
> i also have my JBoss go through IIS instead of just through Tomcat.
> If you need help with that I've done that as well.
>
> good luck,
> frank
>
> -----Original Message-----
> From: Jason Stortz [mailto:jstortz@xxxxxxxxxxxxxx]
> Sent: Friday, June 28, 2002 5:09 AM
> To: jboss-user@xxxxxxxxxxxxxxxxxxxxx
> Subject: RE: [JBoss-user] Space Bar to Continue?
>
>
> David, Vijay & Frank,
>
> Thanks for responses. Will starting JBoss as a service get
> rid of this? I don't want to have to constantly check all
> the instances in my cluster to see if I need to hit the
> space bar all the time.
>
> I am going to try the quick edit suggestion, as I checked
> ant it WAS on indeed. Maybe that will fix it. I don't know.
>
> Thanks for input.
>
> Jason
>
> -----Original Message-----
> From: David Rocks [mailto:david@xxxxxxxxxxxxxxxxxxxxxx]
> Sent: Friday, June 28, 2002 6:42 AM
> To: jboss-user@xxxxxxxxxxxxxxxxxxxxx
> Subject: [JBoss-user] Space Bar to Continue?
>
>
> You can tell if you have to hit a key ( any key ) if "select" appears
> on the title bar before the directory.
>
> Regards
>
> David Rocks
> Technical Lead
> Elevation Networks
> www.elevation-networks.com
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Caffeinated soap. No kidding.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> JBoss-user@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Caffeinated soap. No kidding.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> JBoss-user@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Caffeinated soap. No kidding.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> JBoss-user@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
No, I will not fix your computer.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
JBoss-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/jboss-user


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise