EJB

Installation

N6K cliquer ici pour ouvrir

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

  1. démarrer le serveur d'application : ....Jboss\bin\run
  2. 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

Download EJB3

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

Tutorial

(EJB3) Spécification J2EE 5: http://download.oracle.com/javaee/5/tutorial/doc/

Autres serveurs EJB : EASYBEANS

annotations : http://www.easybeans.net/xwiki/bin/download/Main/Documentation/ejb3-annotations.pdf

Autres liens

Java BluePrints : http://www.oracle.com/technetwork/java/index-jsp-136701.html

End-to-End Java: http://www.oracle.com/technetwork/java/namingconventions-139351.html

Annotattions jboss/ejb http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html_single/index.html