Table of Contents
Before running the examples, be sure to follow the requirements for compiling and running these EasyBeans examples.
The ant tool is used to build the
examples. To compile the examples, use the
build.xml
file that is located in the examples
directory.
The command ant
install_all_examples
must be launched in the examples
directory:
Buildfile: /home/benoitf/workspace/easybeans/examples/build.xml install_all_examples: init: [mkdir] Created dir: /home/benoitf/workspace/easybeans/output/dist/clients [mkdir] Created dir: /home/benoitf/workspace/easybeans/output/dist/ejbjars [mkdir] Created dir: /home/benoitf/workspace/easybeans/clients compile: [javac] Compiling 5 source files to /home/benoitf/workspace/easybeans/output/classes install.persistence: install: [copy] Copying 4 files to /home/benoitf/workspace/easybeans/ejb3s/stateless.jar [jar] Building jar: /home/benoitf/workspace/easybeans/clients/client-stateless.jar init: compile: [javac] Compiling 3 source files to /home/benoitf/workspace/easybeans/output/classes install.persistence: install: [copy] Copying 2 files to /home/benoitf/workspace/easybeans/ejb3s/stateful.jar [jar] Building jar: /home/benoitf/workspace/easybeans/clients/client-stateful.jar init: compile: [javac] Compiling 4 source files to /home/benoitf/workspace/easybeans/output/classes install.persistence: [mkdir] Created dir: /home/benoitf/workspace/easybeans/ejb3s/entitybean.jar/META-INF [copy] Copying 1 file to /home/benoitf/workspace/easybeans/ejb3s/entitybean.jar/META-INF install: [copy] Copying 4 files to /home/benoitf/workspace/easybeans/ejb3s/entitybean.jar [jar] Building jar: /home/benoitf/workspace/easybeans/clients/client-entitybean.jar BUILD SUCCESSFUL Total time: 4 secondsThe examples are copied under the
ejb3s/
folder of the project and are
available for the deployment.
![]() | Note |
---|---|
If the EasyBeans server is running, it will detect these new applications and deploy them automatically. |