Section 20.9. Running the Geronimo Server


20.9. Running the Geronimo Server

Getting the Geronimo server up and running is simply a matter of running a Java application contained in the server.jar file in the bin directory.

 $ cd /usr/local/geronimo $ java -jar bin/server.jar org/apache/geronimo/Server 

That last parameter looks like a pathname, but it isn't. It is a configuration ID which just uses the pathname-like syntax as a namespace, to be unique to Geronimo (by virtue of the /org/apache/geronimo prefix). That name tells the server which of the several possible configurations you want to use. For more information on the other configurations, refer to the Geronimo Wiki.[20]

[20] http://wiki.apache.org/geronimo/

Having once invoked a particular configuration, you need not repeat that configuration choice on subsequent invocations. That means that the next time you run Geronimo, you can just use:

 $ java -jar bin/server.jar 

If you want to put this in a startup script you'll want to use the full specification, so as to be absolutely sure what you are getting.

To stop the server invoked from a command line, simply type Control-C. If the server was invoked from a startup script, you will need to find its process ID (e.g., with the ps command) and use the Linux kill command to send it a signal.



    Java Application Development with Linux
    Java Application Development on Linux
    ISBN: 013143697X
    EAN: 2147483647
    Year: 2004
    Pages: 292

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net