J2EE™ Security for Servlets, EJBs and Web Services: Applying Theory and Standards to Practice
by Pankaj Kumar
A Brief Overview of EJBs
In what follows you will find a highly simplified overview of the EJB technology. This overview, as well as the coverage in the rest of this chapter, is based on the EJB 2.0 specification. The concepts are illustrated with source code from a working program, packaged as Example ch10-ex1, consisting of a simple bean named Echo with the method String echo(String arg). As the name and method signature suggest, this method simply returns its string argument.
In this section, we look at the source code fragments of this example. The complete set of source and execution script files can be found in the subdirectory src\jsbook\ch10\ex1 of the JSTK installation directory. For our experimentation, we assume that all the example ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access