1 / 19

Ing. Ignacio Roqueta ARTech iroqueta@artech.uy

GeneXus and J2EE. Ing. Ignacio Roqueta ARTech iroqueta@artech.com.uy. Is GeneXus J2EE?. J2EE. Java 2 Platform, Enterprise Edition Specification defined by Sun to run applications in application servers It defines APIs group Servlets JSP (Java Server Page)

rkarr
Download Presentation

Ing. Ignacio Roqueta ARTech iroqueta@artech.uy

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. GeneXus and J2EE Ing. Ignacio Roqueta ARTech iroqueta@artech.com.uy

  2. Is GeneXus J2EE?

  3. J2EE • Java 2 Platform, Enterprise Edition • Specification defined by Sun to run applications in application servers • It defines APIs group • Servlets • JSP (Java Server Page) • JDBC (Java Database Connectivity) • EJB (Enterprise Java Beans) • JNDI (Java Naming and Directory Interface) • JMS (Java Messaging Service) • JTA (Java Transaction API)

  4. J2EE • 2 agents • J2EE Application Servers • J2EE Applications

  5. J2EE Application Servers • They implement J2EE specification • They provide a framework to run applications • Examples • Oracle Application Server • WebLogic • Websphere • Sun One • JRun • Jboss • Iplanet

  6. J2EE Applications • Applications that run within a J2EE application server • Web application (WAR) • Enterprise java beans applications (JAR) • Enterprise applications (EAR)

  7. J2EE Compatible? • J2EE compatible Applications Server • When it meets the entire J2EE specification • Sun certifies an application server as J2EE compatible • J2EE compatible Application • When it runs within a J2EE server

  8. Web GeneXus Java Applications • They use • Servlets • JDBC • JNDI • Deployment for J2EE servers • War Deployment

  9. GeneXus is J2EE

  10. J2EE Compatible? • J2EE and EJBs • A J2EE application does not have to use EJBs • Is GeneXus J2EE? <> Does GeneXus implement EJBs?

  11. Enterprise java beans • Reusable component that runs in a J2EE server • They implement • Business logic • Access to database • They run within container with middleware services • Security • Load balance • Persistency • Pool • They may be used locally or remotely

  12. Enterprise java beans types • Entity beans • They model business data • Session beans • They model business logic • Stateful • Stateless • Message-driven beans • They model business logic • They are asynchronically called

  13. Enterprise java beans types • What will we generate? • Session beans • Stateless • Message-driven beans

  14. Implementation • Main procedures with call protocol • Enterprise java bean • Session bean steteless • Message driven Bean • Business component • Session beans stateless • Interface may be local, remote or both • EAR Deployment • It can be called from GeneXus or from external applications • ¿Session beans stateful? • Data cache • Paging • Call external EJBs • Remote objects shown as EJBs (Rocha)

  15. Demo • Bank Account Application • Bank Account • Id • Owner • Balance • 4 EJBs • Local • getOwner • getBalance • ModifyBalance • Remote • Transfer • It uses getBalance and ModifyBalance

  16. Summary • GeneXus Java Web applications run in J2EE servers GeneXus is J2EE • Being J2EE does not imply using EJBs • EJBs will be generated in the next version

  17. Any question?

More Related