This section focuses on JavaGen specific setup and usage options.
The prerequisites for using JavaGen are a working knowledge of Java, XML and familiarity with Ant. See the basic setup page for step-by-step instructions on installing Java, Ant and JBoss.
Currently, only XMI files from Poseidon for UML versions 1.6, 2.x and 3.x have been tested. A free Community Edition of Poseidon is available from www.gentleware.com. Poseidon also sells a module that imports Rational Rose UML files. Poseidon uses the Netbeans metadata repository internally for XMI support, so presumably, any modeling tool based upon that code base should work as well. If your using AgroUML we recommend you switch to Poseidon, although ArgoUML provided the original code base for Poseidon, ArgoUML is still missing some key functionality.
Uploading your UML file using the JavaGen.org web site requires no setup and is the quickest way to explore JavaGen's capabilities. The generated source is returned as a zip file which can be extracted and examined with your favorite editor.
JavaGen can be invoked automatically (as a web service) from your Ant build file whenever your UML file is updated. The following sections describe two options for doing this: