Bean Transactions Top Level Application Server for EJB
Bean. Transactions Top Level Application Server for EJB Anton Vorsamer Fujitsu-Siemens Computers Tel: +49 89 636 47524 Email: Anton. Vorsamer@fujitsu-siemens. com
Applicationserver Scenario Host Systems Application Server Web Client Web Server HTTP + XML external Server, ERP Systems DB Server PC Client external Server FSC EP LP TP SA / A. Vorsamer © Fujitsu Siemens Computers 2001 Slide 2
What does an Application Server ? Standard AS o Central provision of services for many users (scalability, robustness, . . ) o Single user programming model for the developer (state management, optimized resource management. . . ) o Support of standards (Java, EJB, J 2 EE, distributed OO concepts, . . . ) Integration AS o Support of asynchronous messaging services (Workflow, XML, . . . ) o Support of integration services (Connectivity, . . . ) FSC EP LP TP SA / A. Vorsamer © Fujitsu Siemens Computers 2001 Slide 3
What is Enterprise Java Beans ? o Enterprise Java Beans (EJB) is a model (framework) for server side components in a distributed multi tier architecture o EJB is a specification (API) not a product o A product that supports EJB is called an application server FSC EP LP TP SA / A. Vorsamer © Fujitsu Siemens Computers 2001 Slide 4
Real Life Component Technology o Components have different functions and properties. o Core “interfaces” of the components are standardized. o Base boards provide the infrastructure for building “systems”. FSC EP LP TP SA / A. Vorsamer © Fujitsu Siemens Computers 2001 Slide 5
EJB Component Technology Client Java VM only or Web-Server or DB-Server or CORBA-Server or TP-Monitor FSC EP LP TP SA / A. Vorsamer Communication Declarative Programming Metadata Transaction Security Resources. . . EJB Container EJB Transaction Security State Managment Activation/ Passivation EJB Application Server © Fujitsu Siemens Computers 2001 Slide 6
EJB Environment Without EJB = multi client view Using EJB = single client view Developers build • Threading & process control • Distributed execution control • Transactional control • State management • Resource management • Security • Interfaces • Business Logic FSC EP LP TP SA / A. Vorsamer Developers build • Interfaces • Business Logic EJB Framework supplies • Threading & process control • Distributed execution control • Transactional control • State management • Resource management • Security © Fujitsu Siemens Computers 2001 Slide 7
Session Beans Stateful Stateless Owned by one client Shared by clients • Holds state for client’s session across method calls • Assigned to one client for lifetime • Can touch and modify persistent data • Non-persistent • Short-lived (client, timeout, server crash) FSC EP LP TP SA / A. Vorsamer • Can service multiple clients • No state across methods or transactions • Each instance identical upon creation • Touches persistent data • Conversational state (if necessary) managed by client © Fujitsu Siemens Computers 2001 Slide 8
Entity Bean Persistence Container Managed Bean Managed Developer writes persistency code Developer focuses on data use only Developer Determines data to persist Initializes data Writes data mapping Writes data access coding Specifies data to persist Initializes attributes Container Generates data access coding Maps data Synchronizes state Manages pool of beans Manages lifecycle Container Synchronizes state Manages pool of beans Manages lifecycle FSC EP LP TP SA / A. Vorsamer © Fujitsu Siemens Computers 2001 Slide 9
open. UTM OLTP Server Suite Spot Standard Web Browser Standard Web Server JAVA Client Windows PC Access Control / Transactional Security Application Server Web-Client Windows NT C, C++ DBMS Cobol UNIX BS 2000 OSD Communications UNIX Workstation OSI-TP LU 6. 1 LU 6. 2 TCP/IP IIOP Interoperability Application o open. UTM o IBM CICS, IMS/DC, MQSeries o OSI-TP Applications o TCP/IP Applications o SAP R/3 o. . . Terminal FSC EP LP TP SA / A. Vorsamer © Fujitsu Siemens Computers 2001 Slide 10
Key Features of a High End Applicationserver 4 Proven, robust, scalable application server ( multi-tier architecture 4 Synchronous communication (Request/Reply, Conversations) 4 Reliable asynchronous communication (Message Queueing) 4 Support of distributed transactions in heterogeneous environments ) 4 XA Interface to Resource Managers (RDBMS, Reliable MQ Systems) 4 X/Open DTP Protocol OSI-TP 4 Transactional interoperability with Legacy Applications 4 Protocols for Connectivity: TCP/IP, SNA LU 6. 1, LU 6. 2 4 Rich Client Support 4 Transactional and non transactional Clients 4 JAVA Client, VB Client, Integration with MS Office. OO-based Component-Technology, platform independent for C/S & Web. Container for easy to implement and to deploy Business Components. JAVA Technology ==> Enterprise Java. Beans FSC EP LP TP SA / A. Vorsamer including JTA, JDBC, JNDI, JMS © Fujitsu Siemens Computers 2001 Slide 11
Bean. TA Application Server Suite Spot Web-Client Standard Web Server JAVA Client Windows PC UNIX Workstation Windows NT C, C++ DBMS Cobol UNIX BS 2000 OSD Communications OSI-TP LU 6. 1 LU 6. 2 TCP/IP IIOP Application Interoperability o open. UTM o IBM CICS, IMS/DC, MQSeries o OSI-TP Applications o TCP/IP Applications o SAP R/3 o. . . Terminal FSC EP LP TP SA / A. Vorsamer Application Server Access Control / Transactional Security Standard Web Browser © Fujitsu Siemens Computers 2001 Slide 12
open. UTM and Bean. Transactions Suite Spot Web-Client Standard Web Server JAVA Client Windows PC UNIX Workstation Enterprise Java. Beans Component Windows NT C, C++ DBMS Cobol UNIX BS 2000 OSD Communications OSI-TP LU 6. 1 LU 6. 2 TCP/IP IIOP Application Interoperability o open. UTM o IBM CICS, IMS/DC, MQSeries o OSI-TP Applications o TCP/IP Applications o SAP R/3 o. . . Terminal FSC EP LP TP SA / A. Vorsamer Application Server Access Control / Transactional Security Standard Web Browser © Fujitsu Siemens Computers 2001 Slide 13
Bean. Transactions V 2. 0 o Support of Recoverable Session Beans o State of Recoverable Session Beans is transactional - consistent state after rollback - recovery of state after server crash o Transactional Integration of Legacy Applications (open. UTM, CICS, IMS) o Support of Entity Beans (Database Mapping) Persistency Framework MPF/J o Platforms Windows NT/2000, Unix, BS 2000 o Integration of Bean. TA specific Tools in Developmenttools (e. g. Borland JBuilder) o Graphical Administration Tools FSC EP LP TP SA / A. Vorsamer © Fujitsu Siemens Computers 2001 Slide 14
Bean. Transactions (Core Functionality) o State Managment = Recoverable Session Beans o Connectivity = Legacy Integration o Persistency = Database Mapping o Transactions o Security o Resource Pooling o . . FSC EP LP TP SA / A. Vorsamer © Fujitsu Siemens Computers 2001 Slide 15
Bean. Transactions (State Management) JVM UTM shared memory client contexts UTM server processes Request Queue FSC EP LP TP SA / A. Vorsamer © Fujitsu Siemens Computers 2001 Slide 16
Bean. Transactions (State Management) JVM UTM shared memory serialization/ deserialization serialized EJB client contexts UTM server processes Ouput Queue FSC EP LP TP SA / A. Vorsamer transactiona l file 2001 © Fujitsu Siemens Computers Slide 17
Bean. Transactions (State Management) JVM serialization/ deserialization UTM shared memory serialized EJBs UTM server processes Request Queue FSC EP LP TP SA / A. Vorsamer transactiona l file 2001 © Fujitsu Siemens Computers Slide 18
Recoverable Session Bean Normal (first) Access: . . . home = lookup(“. . . ”); session = home. create(. . . ); Access for Recovery: . . . home = lookup(“. . . ”); Enumeration sessions = (Utm. Ejb. Session. Home)home. find. All(); session = sessions. next. Element(); FSC EP LP TP SA / A. Vorsamer © Fujitsu Siemens Computers 2001 Slide 19
Bean. Transactions (Connectivity) FSC / BS 2000 Application Server IBM / MVS other e. g. . Unisys over OSI-TP FSC EP LP TP SA / A. Vorsamer © Fujitsu Siemens Computers 2001 Slide 20
Bean. Transactions (EJB Integration Application Server) open. UTM OLTP Service OSI-TP System open. UTM-Applicationserver Access Control Connectors EJB Container EJB Component LU 6 & OSI-TP synchronous and asynchronous Messaging Transactions OLTP Service CICS / IMS Transaction Synchronisation / Commmunication OLTP Service FSC EP LP TP SA / A. Vorsamer © Fujitsu Siemens Computers 2001 Slide 21
Connector Beans // Business Methods public class open. UTMBean implements Session. Bean { private open. UTMConnectivity utm; private open. UTMConnectivity. Source utmserver; // EJB Methods public void ejb. Create() { naming = new Initial. Context(); utmserver = naming. lookup(" java: comp/env/legacy/my. UTM"); utm = utmserver. get. Connectivity(); } // Business Methods public String call. UTM( String input ) { return utm. Call(input); } } FSC EP LP TP SA / A. Vorsamer Slide 22 © Fujitsu Siemens Computers 2001
Bean. Transactions (Persistency) EJB Naming Java Client JDBC PF /J EJB Container M JNDI Access Control Applicationserver EJB Component XA Transaction Synchronisation / Commmunication Clear separation of application server core and persistency manager FSC EP LP TP SA / A. Vorsamer © Fujitsu Siemens Computers 2001 Slide 23
Container Managed Entity Bean public class Account. Bean implements Entity. Bean { public int acctnr; // persistent field public float balance; // persistent field public String cust; // persistent field // EJB Methods. . . // Business Methods public void deposit( float amount ) { balance = balance + amount; } public float get. Balance() { return (balance); } } FSC EP LP TP SA / A. Vorsamer © Fujitsu Siemens Computers 2001 Slide 24
J 2 EE Architecture Client Client Tier FSC EP LP TP SA / A. Vorsamer Web Container : HTML/XML EJB JDBC EJB Co MDB Client Enterprise Information Systems : EJB Container Servlets + JSPs JMS Middle Tier nne Relational Databases cto new rs Legacy Applications ERP Systems EIS Tier © Fujitsu Siemens Computers 2001 Slide 25
Bean. Transactions EJB Specification V 2. 0 o Messaging Support (JMS, Message Driven Beans) o Connector Support Bean. Transactions = EJB V 2. 0 + o Asynchronous transactional bidirectional Messaging to Legacy Applications based on JMS (open. UTM, CICS, IMS) o Synchronous transactional bidirectional Messaging to Legacy Applications (open. UTM, CICS, IMS) FSC EP LP TP SA / A. Vorsamer © Fujitsu Siemens Computers 2001 Slide 26
J 2 EE Architecture & Bean. Transactions Client Client Tier FSC EP LP TP SA / A. Vorsamer Web Container : HTML/XML EJB JDBC Servlets + JSPs Relational Databases Co. Cnon nencec totrors Legacy s Applications MDB Client Enterprise Information Systems : EJB Container JMS Middle Tier op en M UT MQ ERP Systems EIS Tier © Fujitsu Siemens Computers 2001 Slide 27
From the Application Server to the Integration Platform. . . An Integration Platform o has to to create a business workflow from business services i. e. macro services from micro services i. e. business process objects from business objects o should work declarative, rules bases without the need of programming o must allow integration of heterogeneous technology (JAVA, COM, XML. . . ) open. SEAS best in class implementation of these requirements macro service in Sun ONE = business process object in open. SEAS EJB = micro service in Sun ONE = business object in open. SEAS FSC EP LP TP SA / A. Vorsamer © Fujitsu Siemens Computers 2001 Slide 28
open. SEAS Integration Architecture Heterogeneous Clients BPO Web. Transactions Biz. Transactions BPO BO BS 2000/OSD open. UTM, OS/390, . . . Appl. C BO Adapter BS 2000/OSD open. UTM, OS/390, . . . Appl. Standard. Appl, e. g. R/3 C BO C Business Object in Standard Technology FSC EP LP TP SA / A. Vorsamer BPO Bean. Transactions EJB container EJB Component Future Technologies XML. . C BO Windows NT/2000 BO BO BO UNIX Business Process Objects in Standard Technology C Connector in EJB Technology © Fujitsu Siemens Computers 2001 Slide 29
State of the Art Technology FSC EP LP TP SA / A. Vorsamer © Fujitsu Siemens Computers 2001 Slide 30
- Slides: 30