JOnAS v2.4 Tutorial | ||
---|---|---|
<<< Previous | Getting and installing the software | Next >>> |
You can retrieve the latest version of JOnAS from those two main sites:
ObjectWeb Consortium site, also check for a mirror site near you.
On both sites the binary version and sources are available. You can get the current (or previous) version of JOnAS sources directly from the CVS repository.
The binary distribution is probably the distribution most users need. If you just want to develop EJB enabled applications with JOnAS, the only thing you need is the binary version. It comes with pre-compiled Java classes and then is ready to run on both Unix and Windows platforms. The distribution also includes the full documentation and examples used in this tutorial.
Beware that if you have already installed a previous version of JOnAS in this location the new installation will overload previous files and you may loose configuration files that you may have customized. So it is prudent to save these files before starting the installation process. |
The installation process simply consists in unziping the downloaded files in a directory. The default location is under /usr/local/objectweb, but you may choose any directory of your choice.
Unix platforms proceed as follows:
bash> mkdir -p /usr/local/objectweb bash> cd /usr/local/objectweb bash> cp /directory-where-jonas-was-downloaded/jonas2.tgz . bash> gunzip jonas2.tgz bash> tar -xvf jonas2.tar |
Windows platforms must use a utility such as WinZip to extract the files from the archive.
For those who want to have a look into the JOnAS internals, the source distribution is what you need. You will get the complete source code of the JOnAS EJB server. We explain how to compile JOnAS source distribution in the section called Compiling the source distribution in the chapter called Configuring your environment.
You first have to extract the source code for the archive in some directory of your choice.
Unix platforms proceed as follow:
bash> gunzip jonas2_src.tgz bash> tar -xvf jonas2.tar |
Windows platforms must use a utility such as WinZip to extract the files from the archive.
You can also get the latest source distribution of JOnAS from ObjectWeb CVS (Concurrent Version System) repository.
A specific anonymous account gives you a read-only access to the repository. It allows you to checkout any version of JOnAS or diff your version against the one in the repository.
To checkout the latest version of JOnAS, proceed as follow:
cvs -d :pserver:[email protected]:/cvs/JOnAS login CVS password: %lt;press enter, there is no password> cvs -d :pserver:[email protected]:/cvs/JOnAS co jonas |
If you don't want to use the -d option, you can set your CVSROOT environment variable to :pserver:[email protected]:/JOnAS.
Windows users can use a tool like WinCVS that provides a graphic interface to CVS. |
The cvs checkout process will create an objectweb directory in the directory where the command was launched. This directory has the same contents as the source distribution and should contain JOnAS sources in the jonas subdirectory.
Now, you have to setup your environment variables and compile the source code as described in the section called Configuring JOnAS in the chapter called Configuring your environment. Then, you'll be able to run your first application with JOnAS !
<<< Previous | Home | Next >>> |
JSP/Servlet server | Up | Apache Ant |