Head first EJB /
What do Ford Financial, IBM, and Victoria's Secret have in common? Enterprise JavaBeans (EJB). As the industry standard for platform-independent reusable business components, EJB has just become Sun Microsystem's latest developer certification. Whether you want to be certifiable or just wa...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Otros Autores: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Sebastopol, CA :
O'Reilly,
2003.
|
Edición: | 1st ed. |
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Table of Contents; Intro: How to use this book; Who is this book for?; We know what you're thinking.; And we know what your brain is thinking.; Metacognition: thinking about thinking; Here's what WE did:; Here's what YOU can do to bend your brain into submission; What you need for this book:; Last-minute things you need to know:; About the SCBCD exam; Technical Reviewers; Other people to credit:; Chapter 1. Intro to EJB: Welcome to EJB.; What is EJB all about?; What does EJB really give me?; No more vendor lock-in!; How does it all work?; Behind the scenes...; Beans come in three flavors
- Session beans can be stateless or statefulExample: The Advice Guy bean; Five things you do to build a bean:; EJB Roles and Responsibilities; Tutorial; Organize your project directory; Compile the two interfaces and the bean class; Start the server; You'll see something like this; Start deploytool; you'll see something like this; Make a new Application; Name and save the new application; What you'll see after you create and name the application; Now let's make the new enterprise bean (the ejb-jar and the DD); Now we're in the really cool New Enterprise Bean Wizard; Create the new ejb-jar
- Add the three class files (including their package directory) to the JARConfirm that you added ONLY the package directory and the class files; Make it a Stateless Session bean; Tell it which of the three class files in the JAR is the actual BEAN class; Tell it which is the Home interface, and which is the Component interface; Verif y everything on this screen!; You're done, click Finish; Meanwhile back on the main deploytool screen...; Run your bean through the deploytool verifier; Close your eyes and click OK; Whew! No failed tests.; Time to Deploy; Make it Return a Client Jar
- Give it a name, so clients can look it upWatch the progress bars go up, then celebrate; Now you'll see the AdviceApp inside the ser ver; Now all we need is a client...; Organizing your project directory for the client; Chapter 2. Architectural Overview: EJB Architecture; You remember this picture...; Making a remote method call; There's a "helper" on the ser ver as well...; What must the Remote object and the stub have in common?; The client calls business methods on the stub through the Remote business interface; How EJB uses RMI
- The Remote object is not the bean, it's the bean's bodyguard-the EJBObjectThe Component interface; Who writes the class that really DOES implement the component interface? In other words, who makes the EJBObject class?; Who creates what?; The bean Home; Architectural over view: Session beans; Architectural over view: Entity beans; Architectural over view: Creating a Stateful Session bean; Architectural over view: Creating a Stateless Session bean; Who creates the stateless session bean, and when?; Stateless session beans are more scalable; Architectural over view: Message-driven beans