tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Blevins <david.blev...@visi.com>
Subject Re: How would I download the current code for openEJB 3
Date Thu, 31 Aug 2006 08:23:16 GMT
Jay,

As I just wrote to Jeremy, this sample app is a great quick start.   
Something you may want to try.

$ svn co https://svn.codehaus.org/openejb/trunk/openejb3/examples/ 
helloworld-stateful-pojo
$ cd helloworld-stateful-pojo
$ mvn clean install

That will download the example.  The 'mvn' command will build and  
test the ejbs with OpenEJB.  The whole thing runs very fast.  Here is  
the output from my machine:

[INFO] Scanning for projects...
[INFO]  
------------------------------------------------------------------------ 
----
[INFO] Building OpenEJB :: Examples :: HelloWorld Stateful Pojo
[INFO]    task-segment: [clean, install]
[INFO]  
------------------------------------------------------------------------ 
----
[INFO] [clean:clean]
[INFO] Deleting directory /Users/dblevins/work/openejb3/examples/ 
helloworld-stateful-pojo/target
[INFO] Deleting directory /Users/dblevins/work/openejb3/examples/ 
helloworld-stateful-pojo/target/classes
[INFO] Deleting directory /Users/dblevins/work/openejb3/examples/ 
helloworld-stateful-pojo/target/test-classes
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[...]
[INFO] [compiler:compile]
Compiling 3 source files to /Users/dblevins/work/openejb3/examples/ 
helloworld-stateful-pojo/target/classes
[...]
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
Compiling 1 source file to /Users/dblevins/work/openejb3/examples/ 
helloworld-stateful-pojo/target/test-classes
[...]
[INFO] [surefire:test]
[INFO] Surefire report directory: /Users/dblevins/work/openejb3/ 
examples/helloworld-stateful-pojo/target/surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.acme.FriendlyPersonTest
log4j:WARN No appenders could be found for logger (OpenEJB).
log4j:WARN Please initialize the log4j system properly.
OpenEJB 3.0-SNAPSHOT    build: 20060831-0101
http://www.openejb.org
01:21:37,699 WARN  [startup] Cannot find the META-INF/openejb-jar.xml  
in /Users/dblevins/work/openejb3/examples/helloworld-stateful-pojo/ 
target/classes.: /Users/dblevins/work/openejb3/examples/helloworld- 
stateful-pojo/target/classes/META-INF/openejb-jar.xml (No such file  
or directory)
01:21:37,702 WARN  [OpenEJB] Auto-deploying ejb FriendlyPerson:  
EjbDeployment(deployment-id=FriendlyPerson, container-id=Default  
Stateful Container)
01:21:37,702 WARN  [OpenEJB] Auto-creating a container for bean  
FriendlyPerson: Container(type=STATEFUL, id=Default Stateful Container)
OpenEJB ready.
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.059  
sec

Results :
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar]
[INFO] Building jar: /Users/dblevins/work/openejb3/examples/ 
helloworld-stateful-pojo/target/simple-app-1.0-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing /Users/dblevins/work/openejb3/examples/helloworld- 
stateful-pojo/target/simple-app-1.0-SNAPSHOT.jar to /Users/ 
dblevins/.m2/repository/org/acme/simple-app/1.0-SNAPSHOT/simple- 
app-1.0-SNAPSHOT.jar
[INFO]  
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]  
------------------------------------------------------------------------
[INFO] Total time: 16 seconds
[INFO] Finished at: Thu Aug 31 01:21:38 PDT 2006
[INFO] Final Memory: 6M/17M
[INFO]  
------------------------------------------------------------------------

-David



Mime
View raw message