140 likes | 167 Views
Seminarium on Component-based Software Engineering. JavaBeans. David Snuijf. Java. Released in alpha-form in 1995 by Sun Originality: concepts of applets Java became common used by 1996. Java – components. Java component models: Applet JavaBeans Enterprise JavaBeans Servlets
E N D
Seminarium onComponent-based Software Engineering JavaBeans David Snuijf
Java • Released in alpha-form in 1995 by Sun • Originality: concepts of applets • Java became common used by 1996 Seminarium CBSE
Java – components • Java component models: • Applet • JavaBeans • Enterprise JavaBeans • Servlets • Application client components J2SE J2EE J2SE: Java 2 platform, Standard EditionJ2EE: Java 2 platform, Enterprise Edition Seminarium CBSE
Let’s get into avaBeans J Seminarium CBSE
JavaBeans – solution to.. • Enables software developers to design and create reusable pieces of software that easily integrate • with each other • with applications • with development tools Seminarium CBSE
JavaBeans – Main aspects • Events • Properties • Introspection • Customization • Persistence Seminarium CBSE
JavaBeans • Approach to composition: • Connection-oriented programming / wiring • Beans define: • Event sources • Event listeners • By connecting one bean instance’s listener to another bean instance’s event source, events flow • container structures • InfoBus Seminarium CBSE
Let’s get into nterprise JavaBeans E Seminarium CBSE
Enterprise JavaBeans (EJB) • Provide a framework for components that may be "plugged in" to a server • Enterprise JavaBeans is totally different of JavaBeans, except that it uses some similar concepts Seminarium CBSE
Enterprise JavaBeans – Goals • Easy for developers to create applications • Standard way for client/server applications • Compatible with and uses other Java APIs • EJB can interoperate with non-Java apps • EJB is compatible with CORBA Seminarium CBSE
Client EJB Server EJB Container Home EJB Homestub Home EJB Home Remoteor local EJB Objectstub Remoteor local EJB Object EJB Bean Enterprise JavaBean component Seminarium CBSE
Kind of Enterprise JavaBeans Four kind of EJB beans • Stateless session • Stateful session • Entity • Message-driven Seminarium CBSE
Questions? ? Seminarium CBSE