J2EE is the Java-centric enterprise platform specification.J2EE is a standard for building robust enterprise applications based on an evolving vision of application-server technology centered around the Java programming language. It has historically been used to build Web sites and applications around Enterprise JavaBeans (EJB). Recently it has been extended to include support for XML and Web services.
J2EE is now part of a collaborative process.While J2EE originated with Sun, changes to the J2EE specification are under the collaborative umbrella of the Java Community Process with input from vendors who have J2EE-compliant server products. Also as part of the Java Community Process, Sun is rolling out its Web Services Pack, a combination of applications and APIs designed to integrate Sun's Java programming language with XML and Web services. The Web Services Pack, illustrated in Figure 6.4, includes the following APIs:
Java API for XML Processing (JAXP): JAXP gives developers flexibility by letting them easily swap out XML parsers, which they may want to do if a parser that performs better for their application becomes available. Without JAXP, it's easy to get locked into one vendor's XML parser.
Java Architecture for XML Binding (JAXB): JAXB is a Java API and toolset for creating two-way mapping between XML documents and Java objects. JAXB simplifies the task of going from an XML document type definition or schema and creating a program to process a conformant XML document. For example, an XML schema for mortgage banking created by the Mortgage Industry Standards Maintenance Organization (MISMO) is used by the mortgage industry to exchange loan information. JAXB enables the creation of Java classes from the schema that will support the processing of XML data encoded in the MISMO format. Prior to JAXB, programmers were required to write Java code to format the parsed XML data into Java objects based on the XML schema. JAXB greatly simplifies the process, which was complex, error prone, and often not portable.
Java API for XML Messaging (JAXM): JAXM is designed to allow access to emerging XML messaging standards such as Electronic Business XML (ebXML) Transport/Packaging and Routing. It typically will be used along with JAX-RPC, which will give Java programmers a single interface to any XML-based Remote Procedure Call (RPC) mechanism, including the SOAP standard. Although SOAP is the acknowledged XML transport standard for Web services, developers using JAX-RPC will be better able to switch to any future XML-based RPC mechanism.
Java API for XML Remote Procedure Calls (JAX-RPC): JAX-RPC is the API for doing XML-based procedure calls via XML-RPC in Java. XML-RPC allows one network node to execute code on another node by transferring XML data. XML-RPC is discussed in detail in Chapter 4.
Java API for XML Registries (JAXR): JAXR provides a uniform standard interface to registries of XML business data such as the UDDI protocol. JAXR simplifies the development of e-business applications that can register and extract data from various registries, including those used with the ebXML modular business framework for global e-commerce.
J2EE is now part of a collaborative process.While J2EE originated with Sun, changes to the J2EE specification are under the collaborative umbrella of the Java Community Process with input from vendors who have J2EE-compliant server products. Also as part of the Java Community Process, Sun is rolling out its Web Services Pack, a combination of applications and APIs designed to integrate Sun's Java programming language with XML and Web services. The Web Services Pack, illustrated in Figure 6.4, includes the following APIs:
Java API for XML Processing (JAXP): JAXP gives developers flexibility by letting them easily swap out XML parsers, which they may want to do if a parser that performs better for their application becomes available. Without JAXP, it's easy to get locked into one vendor's XML parser.
Java Architecture for XML Binding (JAXB): JAXB is a Java API and toolset for creating two-way mapping between XML documents and Java objects. JAXB simplifies the task of going from an XML document type definition or schema and creating a program to process a conformant XML document. For example, an XML schema for mortgage banking created by the Mortgage Industry Standards Maintenance Organization (MISMO) is used by the mortgage industry to exchange loan information. JAXB enables the creation of Java classes from the schema that will support the processing of XML data encoded in the MISMO format. Prior to JAXB, programmers were required to write Java code to format the parsed XML data into Java objects based on the XML schema. JAXB greatly simplifies the process, which was complex, error prone, and often not portable.
Java API for XML Messaging (JAXM): JAXM is designed to allow access to emerging XML messaging standards such as Electronic Business XML (ebXML) Transport/Packaging and Routing. It typically will be used along with JAX-RPC, which will give Java programmers a single interface to any XML-based Remote Procedure Call (RPC) mechanism, including the SOAP standard. Although SOAP is the acknowledged XML transport standard for Web services, developers using JAX-RPC will be better able to switch to any future XML-based RPC mechanism.
Java API for XML Remote Procedure Calls (JAX-RPC): JAX-RPC is the API for doing XML-based procedure calls via XML-RPC in Java. XML-RPC allows one network node to execute code on another node by transferring XML data. XML-RPC is discussed in detail in Chapter 4.
Java API for XML Registries (JAXR): JAXR provides a uniform standard interface to registries of XML business data such as the UDDI protocol. JAXR simplifies the development of e-business applications that can register and extract data from various registries, including those used with the ebXML modular business framework for global e-commerce.

Different vendors implement J2EE.Vendors with server products that are based on J2EE include Sun, IBM, BEA, Oracle, and HP. Each vendor provides additional features not found in the J2EE specification, which may create problems for organizations looking to switch J2EE vendors. In the following sections, we'll look at how some vendors have used J2EE to integrate their application server offerings with the world of Web services.
No comments:
Post a Comment