[jboss-dev-forums] [Design of EJB 3.0] - EJBTHREE-1607 Update EJB3.0 Tutorials
jaikiran
do-not-reply at jboss.com
Mon Dec 8 10:10:13 EST 2008
I have been updating the EJB3 tutorials and have committed the "stateless" tutorial at https://svn.jboss.org/repos/jbossas/projects/ejb3/trunk/docs/tutorial/stateless/
The plan is to allow the users to run these tutorials either through Ant or through Maven. For this "stateless" tutorial, the instructions to run the tutorial are at https://svn.jboss.org/repos/jbossas/projects/ejb3/trunk/docs/tutorial/stateless/stateless.html. The steps are going be the same for rest of the tutorials (ex: "stateful").
Ant build:
The Ant build for each tutorial consists of targets, which create a jar file and copy(deploy) it to the JBossAS deploy folder. There is an additional target "run" which the user can then use to run the standalone EJB client. So its a 2 step process for the user:
| $ ant
| $ ant run
|
Maven build:
The Maven support for the tutorials is new. During the "package" phase the generated artifact (jboss-ejb3-tutorial-stateless.jar) is copied to the deploy folder of JBoss. Then during the "install" phase, the standalone client is run.
So the user will do:
$ mvn clean install
The pom for this has been checked in for reference r82111
Note that, both in the Ant and the Maven approach, we expect the user to manually start the server.
Carlo mentioned to me that, we should be able to start the server from within the top-level pom https://svn.jboss.org/repos/jbossas/projects/ejb3/trunk/docs/tutorial/pom.xml so that these tutorials can be included into Hudson builds.
Andrew, I heard that we already have some similar stuff for starting the server through Maven. Could you please point me to that?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4195082#4195082
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4195082
More information about the jboss-dev-forums
mailing list