Tuesday, September 19, 2006

Some command line that I found useful and handy

In the %JBOSS_HOME%\bin (or $JBOSS_HOME/bin for *NIX) folder, you could find some files with extension *.bat, *.sh, *.jar.

For those who is running JBoss on Windows box, just note the *.bat, they are here for you. For those who is running JBoss on Linux, UNIX, MacOS/X note the *.sh files, they are here for you!

Don't forget to run the c:\opt\env\set5.bat (or whatever file that will set the environment variables, e.g. /opt/env/set5.sh) first.

Then try to start the server using:
%JBOSS_HOME%\bin\run.bat
It's UNIX/Linux equivalent:
$JBOSS_HOME/bin/run.sh

Try to stop the server using:
%JBOSS_HOME%\bin\shutdown.bat -S
It's UNIX/Linux equivalent:
$JBOSS_HOME/bin/shutdown.sh -S

There is still one utility that you might find useful: probe.bat and twiddle.bat
I will explain to you on these later on, as it would not be so useful until we could deploy our application.

Try to run it:
%JBOSS_HOME%\bin\probe.bat
It's UNIX/Linux equivalent:
$JBOSS_HOME/bin/probe.sh