IS907 Java EE Enterprise applications Enterprise applications distributed
IS-907 Java EE Enterprise applications
Enterprise applications • • distributed applications • many users • lots of data challenges • security • transactions • application management Even Åby Larsen (even. larsen@uia. no) IS-102 Introduksjon 2
Enterprise applications architecture Even Åby Larsen (even. larsen@uia. no) IS-102 Introduksjon 3
Enterprise applications architecture Glassfish Java EE Server Web Container Browser JSF http/ssl EJB Container EJB Servlet Even Åby Larsen (even. larsen@uia. no) IS-102 Introduksjon 4
Java EE Services and APIs • • Security • Business Logic • authentication • Enterprise Java. Beans • authorization • Dependency injection • encryption • Transaction management • Directory services • Message Queues Presentation/Interface • Servlets • Java. Server Faces • Web Services • Java Persistence API • XML processing • JDBC Even Åby Larsen (even. larsen@uia. no) • Persistence IS-102 Introduksjon 5
Enterprise application development • • Write java classes • Servlets • Backing beans • EJBs • Entities Write other components • Facelets • Static content • • html pages, images, . . . Write default configuration Even Åby Larsen (even. larsen@uia. no) IS-102 Introduksjon 6
Enterprise application packaging and deployment • Short version: • Create an archive with all necessary files • Deploy (install) archive on server Even Åby Larsen (even. larsen@uia. no) IS-102 Introduksjon 7
Enterprise application packaging and deployment • Long version: Configuration needed. . . • • Application server needs to know. . . • which classes are servlets, entities, ejbs, . . . • which urls to bind to servlets, • mapping of entities to db tables Configuration can be specified with xml files • xml has been made almost redundant for developers by annotations and sensible defaults (“convention over configuration”) • The deployer can override developers’ configuration using xml files Even Åby Larsen (even. larsen@uia. no) IS-102 Introduksjon 8
- Slides: 8