4.3. Compiling the EJB and test client

In this section, I assume that you have modified your system’s class search path so that the EJB API classes are searched by default (the procedure for doing this with the J2EE Reference Implementation is explained in Appendix F). If this is done properly, then you should be able to run the command

javap javax.ejb.EJBHome 

at the command line and get a listing of the methods on the EJBHome interface, rather than an error message. If you have the source-code package and would rather use Ant, edit the file common/build.properties to indicate the location of the API JAR file.

With the directory structure described above, we could compile the Java files at the command line like this on a Unix system (Windows ...

Get Applied Enterprise JavaBeans™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.