
J2EE Compile Framework
Intorduction
This small frameworks helps you to compile and develop really quickly
J2EE-Applications. The whole framework is based on the
javacompile- and
javarun
script which are a normal unix shell script! If you work under Windows you can
use cygwin than it works also.
It works well under the following operating systems:
- Linux (tested)
- Solaris (tested)
- Windows (tested with Cygwin!)
Download
Here you can download the framework.
Installing
To work with this environment you use the J2SK from Sun. If you use Windows
you have to install the Cygwin environment. Additional you use of course an
application server and the CLASSPATH variable must have the entry for a j2ee.jar.
>tar -zxvf ejb-project.tgz
Bea Weblogic
I used this framework under Bea Weblogic (http://bea.com). It works well with
the evaluation license under Windows, Solaris and Linux!
Compiling
If you will compile the source with the framework you use a j2ee.jar. You can
take this from the J2SDK or from your Applicationserver (for example bea:
weblogic.jar). (The jar-file 'tools.jar' is also used)!
Copy the jar file to the lib directory of the framework or you add it to the
CLASSPATH environment variable.
Now you can compile the source with 'make'
Runing example
- Install the application server, the J2SK
- Install the framework:
>tar -zxvf ejb-project.tgz
- Add a j2ee.jar file to the CLASSPATH or to the lib path from the framework
- Compile the source:
>make
- Deploy the ejb-project.ear to your application server
- Start a browser and type in 'http://localhost:7001/webdemo'
Test Commandline Client
- Type in 'make client' and
- make run
After this it should appear:
> read project file config/client.properties....
==>get InitialContext
==>search objects...
==>received all home objects...
==>search remote interfaces...
==>user created: ( name:myName )
==>finish
Configuration
In the directory config/compile-config you find some configuration files:
- config/ear
- In this directory are the deployment descriptors of the ear-jarfile.
- config/ejb
- In this directory are the deployment descriptors of the ejb-jarfile.
- config/war
- In this directory are the deployment descriptors of the war-jarfile.
- config/compile-config/main.properties
- In this file you find the main settings from the
framework like jar names etc.
- config/compile-config/client.properties
- It defines the environment to compile and start the
commandline client. It reads the main settings
from main.properties
- config/compile-config/ejb.properties
- It defines the environment to compile and
create the ejb-jar file for Enterprise
Java Beans. It reads the main settings
from main.properties
- config/compile-config/war.properties
- It defines the environment to compile and
create the war-jar file for
web-applications. It reads the main
settings from main.properties
- config/compile-config/ear.properties
- It defines the environment to compile and
create the ear-jar file for complete
J2EE applications. It reads the main
settings from main.properties
- src/client
- In this directory is the code of the client programm.
- src/server
- In this directory you put the whole enterprise java beans.
- src/web
- In this directory you put your java-files of the web presentation like
servlets etc.
- websrc
- In this directory you put your whole web source like html-, jsp- etc. files.

Copyright 2001 by Patrick Meier
Last updated on 31.10.2001 by Patrick Meier