Enterprise Java Beans and 2 E Paul Castleton
Enterprise Java Beans and 2 E Paul Castleton Development Manager Computer Associates
Agenda Enterprise Java. Bean(EJB) Definition EJBs on the i. Series server Overview of the role of COOL: Joe 2 E implementation
Definition Requirement – Make it easier to write business applications – Remove the need to understand low-level APIs, security, transactions
Overview of EJB Architecture A Server side component model (similar to COM+ or CORBA) § Defines; § – – § distributed business applications the application servers on which they are run Main features; – – Scalability Transaction management Security Write-once-run-anywhere enabled
What are Enterprise Java. Beans? Architecture to define how to build components for business applications Components that can be used to build distributed applications RMI Object with some of its attributes configurable at runtime Separate from & complimentary to Java. Beans
Overview of EJB Architecture Two Main Enterprise Java Bean Types: – Session Bean (verbs) – Entity Bean (nouns) Both types expose two interfaces: – Home interface (‘Housekeeping’ methods) – Create / destroy object – Commit / rollback – Remote interface – Business methods on the Bean
Overview of EJB Architecture How does it work?
EJBs on the i. Series Component model targeted at server business logic development Interface that insulates application programmer from complexities and platform dependencies of transaction systems, databases security, etc. Sun initiative, specification Defines a component interface, not the underlying implementation or packaging
Enterprise Java Services IBM initiative Specification and reference implementation for use across IBM products Full implementation of Sun’s specification – Web. Sphere Application Server-Advanced Edition
Developer Skills “ EJB development needs good oo programmers for design as well as skilled Java coders to provide bean content………”
COOL Tools…….
Overview of COOL: Joe is a second generation Java development environment offering: – J 2 EE Blueprint embodied in tool – Development to Standards – J 2 EE Guidance for those new to EJB – Superior Modeling and Architecting – Deployment Flexibility
Overview of COOL: Joe Component analysis tools Interface specification tools Component architecture tools Implementation Wizards J 2 EE/EJB Blue. Print Smart technology – Expansions – Macros – Methods and more Legacy database support § Test harness generation § Local and remote testing § Runtime debugging § Auto EJB deployment § Evaluation script § Task Advisor § Initial Web Client Generation § Tutorial
Overview of COOL: Joe Get developers productive with EJB fast – plug skills gap in market – J 2 EE know-how built in – re-train on the job while productive – maintain domain expertise – application server agnostic COOL: Joe is a development tool that contains knowledge.
Overview of COOL: Joe Task Advisor is an on-line assistant that gives step-by-step instructions needed to complete this and other mission critical tasks.
2 E implementation walkthrough
2 E implementation walkthrough
Java to 2 E application YGENEJB command 2 E Function analysis PCML Wrappered Class COOL: Joe XML Task Advisor script EJB generated, tested and deployed
COOL: 2 E Java/PCML Generation Step 1: Step 2: Step 3: Step 4: object Step 5: Model List Processing Determine Parameters Generate PCML document Serialise PCML document to Java Generate. Java source bean class file
COOL: 2 E Java/PCML Generation Step Step 6: Compile. class file 7: Deploy files ready for Joe 9: Import to COOL: JOE 10: Generate EJB 11: Deploy EJB
COOL: Joe 2 E generated Task advisor script (XML). . . Import 2 E generated Java class Generate component wizard Session Bean generation wizards Deployment Wizards
COOL: Joe allows you to keep all of your Java project in the COOL: Joe repository. You can import any file and save it in the COOL: Joe project tree. This allows you to manage all aspects of your development from one place. COOL: Joe!
COOL: Joe Java class imports The Generate EJB wizard takes your business component and wraps it with the necessary classes to deliver a fully compliant EJB. Session Bean generation wizards Deployment Wizards
For more information Forums – www. javaranch. com – Java toolbox for AS/400 – J 2 EE Documentation Portal – www. i. Series. ibm. com/java – www. javasoft. com/products
- Slides: 24