JOnAS uses a specific compiler to statically generate stubs and skeletons for the remote objects by way of the rmi compiler or jeremie compiler. This allows faster loading and execution of beans compared to the dynamic approach used in JBoss. Once you have the deployment descriptors, this is a straight forward process that can be performed using GenIC, a tool provided in the JOnAS distribution. The corresponding ANT task for JOnAS may also be used.
Here is how to use GenIC:
GenIC [Options] InputFileInputFile is either a jar file or a xml deployment descriptor. Example :
GenIC myapp.jar GenIC ejb-jar.xmlA complete description of the GenIC command and its options can be found at JOnAS tools documentation. The JOnAS ANT task is also described in the JOnAS documentation.
The GenIC utility :
firstly, generates the sources of the container classes for all the beans defined in the deployment descriptor,
secondly, compiles these classes by way of the java compiler,
thirdly, generates stubs and skeletons for those remote objects by way of the rmi compiler, and
lastly, if the InputFile is an ejb-jar file, adds the generated classes in this ejb-jar file.