O'Reilly logo

Special Edition Using Java™ 2 Enterprise Edition by Mark Wutka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required