Accessing an EJB from an Applet
EJBs can be accessed from a number of different application clients. Here we will see how an EJB can be accessed from an Applet. Applets are still used extensively to provide a richer browser interface than that provided using standard HTML. This includes the use of graphics and animations. Knowing how to access an EJB from an applet gives the applet developer even more opportunities.
Accessing an EJB from an applet uses three steps:
- Creating an EJB for the actual functionality
- Creating a remote interface
- Using JNDI in the applet to obtain a reference to the EJB
The remote interface determines which methods are available to the Applet.
How to do it...
Create two different applications. The first application ...