J2EE TUTORIAL Learning Notes (Chapter 1 Overview) Chapter 1 Overview: One .web Service1. Introduction: For today's programmers, due to the fast speed of economic information technology, more enterprise version of the application is Designed, these procedures only need little fund investment, but can provide more information for us. In order to reduce expenses and follow this era?
Java 2 Platform Enterpirse Edition (J2EE) provides us with a platform-based platform. J2EE platform provides us with distributed model design. Accessible components. Unified security models. Flexible processing mechanism. Complete-switchable XML text protocols to support Web Service.2.Web Service support: Web Service usually communicates with clients through text protocols based on Extensible Markup Language. J2EE platform provides XML API Tools to facilitate programmers Development. And use standard XML language translation to make Web service and clients better communication. The XML protocol can transmit all binary data, such as sound, images, text, and other files .3.xml language: XML language It is a language cross-platform. Scalable, text-based transmission data. 4. HTTP-SOAP Transfer Protocol: The needs of the client and the WEB Serviece response is transmitted in the form of SOAP (Simple Object Acces Protocol, in the form of HTTP) Make information on different geographical platforms on the Internet and SOAP is based on XML-based text protocol transmission. And SOAP needs to process events: 1 Determine a XML-based Message, describe the content in Message, how to process This Message.2 should include XML encoding rules to express data types included in Message. 3. Determining an XML-based impact based on demand and ultimate response in remote services .5.wsdl standard format: Web Service Description Language is In describing the standard XML format of Network Service. This format includes: service name, service address, how to communicate. J2EE platform provides me with tools for generating WSDL by using RPC (Remote Procedure Calls) and client communication as Web Service Distributed Applications: J2EE components are: 1. Business-Tier.4 running on the web-tier.2.j2ee server running on the client-tier.2.j2ee server. On the EIS server Transport ES (Enterprise Imformation System) software. The relationship between them is as shown in Figure Fig1. 1.j2ee Components: 1.Application Client and Applet Run on The Client 2.javaservlet and Java Server Pasges (JSP Tech) Run on The Serve 3. ENTERPRISE JAVABEANS RUN The Server. J2EE Components Compilation in Java Application. 2.J2ee Client: Includes Web Client or Application Client. 3.Web Client: Composed of 2 parts Pages, such as XML HTML.2, a web browser .ie 4.applet: A web page contains an applet, applet is a very small Client Application written in Java language, which is running by JVM installed in the browser. 5 .Application client: J2EE Application is a user interface that is running on the client and can provide more and more multi-fold language, a typical example is directly provided by the GUI (Graphics User Interface) Application Client provided by Swing or AWT and in Business Tier Running Enterprise Beans Connections 6.J2ee Server Communication: The communication between J2EE Server can be clearly expressed by Fig 2. 7.Web Component:
The web component can be a servlet or a JAVA program that can communicate and process problems. JSP Pages are techniques for processing static content based on the text-based servlet but is more natural than servlet. 8. Static HTML PAGES And Applets are bind together in a web component, while web tier includes JavaBeans components that can be used to process users and business tier inputs and output. 9.bussiness Components: Bussiness Components are often used to resolve demand, In a special business, such as banks, retail, economies, which are running in Enterprise Beans processing in Bussiness Tier. Figure Fig 4 is well explained the relationship between these components. 10. Enterprise Beans For 3 species 1.Seesion Beans - provides a short communication with the client. 2.Entity Beans - provides stable Database data. 3.Message Beans - is a convergence of Session Beans and JMS2 Beans, allowing buissness Components accept communication. And these three beans are included in Bussniess Tier: J2eever Provide Unerlying Service In The Form of a Container For EVEY Component Type.Container is operational and support between components and low-end platforms Interface, between Enterprise, Application Client Componet, must be compiled into a J2EE application to put into the container. Here's J2EE Application in the J2EE container has the following components: J2EE Server / .Enterprise JavaBeans Container./web container./ Application Client Container.Applet Co Ntainer 12.Packaging package: J2EE application is named. peer as a suffix. Like J2SDK, J2EE's runtime enviroment is EAR, while J2SDK is JRE. The EAR includes J2EE's processing mechanism. Three .j2eeapi 1.enterprise JavaBeans Tech (EJB) includes three Beans: session beans, entity beans, message-driven beans.enteprisebeans, and Database, Entity Beans is written with JBDC API to write about databases 2.JBDC API allows you to call SQL commands, it Ben 2 Some Application-Level Interface / a Service Provider. 3.java servlet Tech is used to define http-speptionric servlet class can be used to extend the web servlet. 4.jsp Tech: JSP allows your servlet to load the text in the form of text , Is based on text-based, minute 2: Static text number It can be HTML.WML.XML and JSP Element. 5.java Message Service (JMS) Java message driver, allowing J2EE to create, send, read Message. 6.Java Naming and Directory Interface: (JNDI): Use Store and Retrieve any Java object 7.java TranscAction API provides standard border processing. 8.java mail API:
. Send email notification 9.JavaBeans Actiration Framework (JAF) 10.Java API for XML processing (JAXP) using the Document Object model (DOM) to provide XML code 11.Java API for XML Registies (JAXR): let you access and general purpose registries over the web 12.Java API for XML-Base RPC: use SOAP HTTP to make RPC (Remote Procedure Calls) 13.SOAP with Attachments API for java (SAAJ) 14.J2ee connector Architecture 15.Java Authentivation and Authorization service 16.simplefied System Intergration This is a note that I have seen J2EE Guide for a week, I hope everyone will refer to the mistakes and give a learning suggestion. Thank you for your next unit Understanding XML, I will do a good note.