About the labs

You can compile and deploy all the labs without writting a single line of code by using ANT and the build.xml scripts provided!
This is what you need to do:

Setting the env. variables

Starting jBoss

You should see:



Compiling and deploying the 6-SessionBean-Standalone lab

Running the standalone client

Compiling, Deploying, Running from Eclipse

Using Eclipse, create a new Java Project for the lab SessionBean standalone:



We need to use ANT from Eclipse.
Go to Window -> Show View -> Other, then pick-up Ant and click on OK:



Then click on the small 'lamp' icon in the ANT panel:



You should see a Search for Buildfiles window. Click on Search



Then, you should see the found build.xml files targets in the ANT panel:



You just have to double-click on the all[default] target to compile and deploy the EAR file into jBoss:



, and double-click on run-client to run the client!



Voila!

What's next?

The best way to understand J2EE is still to practise it.
Even though you do not need to write a line of code, there is an exercise to do at the end of each lab.
For each exercise, you must: You can obviously glance at the existing code to give you an idea on how to do things.

Bonne chance!