Creating an Applet That Accesses an EJB

Creating an applet that accesses an EJB is really no different than creating a standalone program that accesses an EJB. In an applet, however, you must identify the JNDI naming fac tory and provider URL. In a standalone program, you can set the naming factory using a system property, but a downloaded applet doesn't have that same luxury.

If you decide to deploy an EJB-aware applet, you should use the Java Plug-In as your applet environment. You use RMI to communicate with EJBs, and Internet Explorer doesn't come with RMI built-in (you can use RMI with IE, but you must install it separately). The Java Plug-In lets you focus on developing the applet rather than worrying about whose version of Java you might ...

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.