COURS /
EJB
Installation
N6K cliquer ici pour ouvrir
- Variables d'environnement http://www.laas.fr/~khalil/COURS/EJB/variables.pdf
- Modifier les scripts "lancer_client.bat" (sous HELLO STATELESS et HELLO STATEFUL)
Compilation, déploiement
- compilation (si modifs) et déploiement :
%ANT_HOME%\bin\ant
(ou%ANT_HOME%\bin\ant compile
) - effacement (undeploy from server application) :
%ANT_HOME%\bin\ant clean
Exécution
- démarrer le serveur d'application : ....Jboss\bin\run
- démarre le client : lancer_client.bat (ou bien
%ANT_HOME%\bin\ant run.client1
)
- Si pb en execution lors du passage du stateless au stateful (effacer, redeployer)
- Voici le contenu du fichier build.xml utilisé par "ant":
http://www.laas.fr/~khalil/COURS/EJB/build-xml-part1-2.pdf
- Voici le contenu du fichier ejb-jar.xml utilisé par le serveur d'application jboss (Pour EJB2)
http://www.laas.fr/~khalil/COURS/EJB/ejb-jar-xml.pdf
- Voici le contenu du fichier jboss.xml utilisé par le serveur d'application jboss (pour enregistrement auprès du serveur de noms pour EJB2)
http://www.laas.fr/~khalil/COURS/EJB/jboss-xml.pdf
- JBOSS : http://www.laas.fr/~khalil/COURS/EJB/JBOSS.zip
- ANT : http://www.laas.fr/~khalil/COURS/EJB/ANT.zip
- HELLO STATELESS : http://www.laas.fr/~khalil/COURS/EJB/HELLO-STATELESS.zip
Download EJB3
- JBOSS : http://www.laas.fr/~khalil/COURS/EJB/EJB3/jboss-5.1.0.GA.zip
- ANT : http://www.laas.fr/~khalil/COURS/EJB/EJB3/apache-ant-1.7.1.zip
- HELLO STATELESS : http://www.laas.fr/~khalil/COURS/EJB/EJB3/stateless-EJB3.0.zip
- ATTENTION : java 1.6... est exigée
Manips à faire
Download EJB3 Suite (manips Entity Beans)
http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html_single/index.html
Download EJB3 Suite (manips Message-Driven Beans)
Download EJB3 sources et tutorial : http://docs.jboss.org/ejb3/docs/tutorial/1.0.7/ejb3-tutorials.zip
- Security:
aujouter dans build.xml :
<fileset dir=".">
<include name="*.properties"/>
</fileset>
Solution: Securité Entity exemple documents http://homepages.laas.fr/khalil/COURS/EJB/EJB3/EJB3-2012/security-avec-doc-OK.zip