Sunday, May 8, 2011

Geronimo Server

I was very happy to see that Geronimo works with Jetty.  I downloaded the archive and extracted the app then started the console.

[greg:bin] ./geronimo run
Using GERONIMO_HOME:   /Users/javapro/dev/bin/geronimo-jetty8
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME:        /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
                                                          
     ______                       _                       
    / ____/___  _________  ____  (_)____ ___  ____        
   / / __ / _ \/ ___/ __ \/ __ \/ // __ `__ \/ __ \  
  / /_/ //  __/ /  / /_/ / / / / // / / / / / /_/ /       
  \____/ \___/_/   \____/_/ /_/_//_/ /_/ /_/\____/    

  Apache Geronimo (3.0-M1)

Hit '' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '' or 'osgi:shutdown' to shutdown Geronimo.

geronimo> Booting Geronimo Kernel (in Java 1.6.0_24)...
. . . 
I downloaded the example so I could verify the installation. In another command window, I entered the command to deploy the WAR file.
[greg:geronimo-jetty8] cd bin
[greg:bin] ./deploy --user system --password manager deploy ~/dev/bin/HelloWorld.war
Using GERONIMO_HOME:   /Users/javapro/dev/bin/geronimo-jetty8
Using GERONIMO_TMPDIR: var/temp
Using JRE_HOME:        /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
    Deployed org.apache.geronimo.samples/HelloWorldApp/1.0/war @ /hello
[greg:bin] 

Now for the EJB project described in the Better Builds with Maven guide.
[greg:java] svn co http://svn.apache.org/repos/asf/geronimo/daytrader/trunk/ 
. . . 
 U   trunk
Checked out revision 1100785.
[greg:java] mv trunk daytrader
[greg:java] cd daytrader