Developing Enterprise JavaBeans
Ant provides a number of optional tasks for developing EJBs. Generally, these tasks are specific to the particular vendor's EJB Server. Currently, these tasks support these servers:
Borland Application Server 4.5
IBM WebSphere 4.0
iPlanet Application Server 6.0
JBoss 2.1 and above EJB servers
JOnAS 2.4.x and 2.5 Open Source EJB server
Weblogic 4.5.1 through to 7.0 EJB servers
The Ant EJB tasks and the servers they target appear in Table 9-14.
Table 9-14. The Ant EJB tasks
Task | Does this | Application servers |
|---|---|---|
| Specifies you want to create a client .jar file corresponding to an EJB .jar file | Borland Application Server 4.5 and 5.x |
| Specifies you want to compile Weblogic text-based deployment descriptors into an EJB deployment descriptor | Weblogic 4.5.1 |
| Lets you run Weblogic's ejbc tool | Weblogic 4.5.1 |
| Supports creation of EJB .jar files (EJB 1.1 & 2.0) | Borland Application Server 4.5 and 5.x, iPlanet Application Server 6.0, JBoss, JOnAS 2.4.x and 2.5, Weblogic 5.1 to 7.0, and IBM WebSphere 4.0 |
| Supports compilation of EJB stubs and skeletons for iPlanet Application Server 6.0 | iPlanet Application Server 6.0 |
| Lets you start a Weblogic server | Weblogic 4.5.1 to 7.0 |
| Lets you stop a Weblogic server | Weblogic 4.5.1 to 7.0 |
JARing Files
The largest and most general of the EJB tasks is the
ejbjar task. This task works by
scanning directories; for each deployment descriptor found, ejbjar will parse it to determine the necessary ...