Getting to the Classes You Need

The biggest hassle with using EJBs from an applet is that the Java plug-in doesn't have the EJB classes built-in. If you're using a normal Web server such as Apache to serve up the class files, you might need to unpack all the EJB classes into a directory where the browser can find them. For example, in Listing 46.2, you can see that the codebase for the applet is a directory called classes. The classes directory contains all the files from the WebLogic classes directory, plus the contents of the weblogicaux.jar file and the applet classes themselves. You will probably need to perform a similar unpacking routine when you use other EJB servers.

The WebLogic developers realized that you would probably need an easy ...

Get Special Edition Using Java™ 2 Enterprise Edition 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.