The EJB3 tutorials currently can be built and run through Ant and Maven. However Maven support is not that great and currently works as follows:
1) An aggregator (jboss-ejb3-tutorial-parent) first triggers the AS to start (through a "init" module)
2) All the tutorials are then run one after other
3) The aggregator then finally uses a "shutdown" module to stop the server.
This doesn't allow a single tutorial to be run through Maven, because the AS is started outside the tutorial.
To fix this, maven profile(s) need to be created. Ex: A "RunAllTutorial" profile which does the same steps as above and a "RunOneTutorial" which is responsible for running the single tutorial (with the additional steps of starting/stopping the AS).
- is related to
-
EJBTHREE-1607 Update tutorials
- Resolved