6 Developing Applications in WebLogic Server
WebLogic Server implements Jakarta Platform, Enterprise Edition (Jakarta EE) Version 9.1 technologies. Jakarta EE is the standard platform for developing multitier enterprise applications based on the Java programming language.
This chapter includes the following topics:
WebLogic Server and the Jakarta EE Platform
https://jakarta.ee/learn/
.
Starting in earlier versions and continuing in Jakarta EE 9.1, the focus has been ease of development. There is less code to write – much of the boilerplate code has been removed, defaults are used whenever possible, and annotations are used extensively to reduce the need for deployment descriptors.
-
EJB 4.0 provides simplified programming and packaging model changes. The mandatory use of Java interfaces from previous versions has been removed, allowing plain old Java objects to be annotated and used as EJB components. The simplification is further enhanced through the ability to place EJB modules directly inside web applications, removing the need to produce archives to store the web and EJB components and combine them together in an EAR file.
-
Jakarta EE 9.1 continues the focus on modern web applications and broadening the range of such applications. The key goals of the Jakarta EE platform are to modernize the infrastructure for enterprise Java for the cloud and microservices environments, emphasize HTML5 and HTTP/2 support, and enhance the ease of development through new Contexts and Dependency Injection (CDI) features, and further enhance the security and reliability of the platform.
-
Constructing web applications is made easier with Jakarta Server Faces (JSF) technology and the JSP Standard Tag Library (JSTL). Jakarta EE 9.1 supports rich thin-client technologies such as AJAX, for building applications for Web 2.0.
WebLogic Server Jakarta EE applications are based on standardized, modular components. WebLogic Server provides a complete set of services for those modules and handles many details of application behavior automatically, without requiring programming. Jakarta EE defines module behaviors and packaging in a generic, portable way, postponing runtime configuration until the module is actually deployed on an application server.
Jakarta EE includes deployment specifications for web applications, EJB modules, web services, enterprise applications, client applications, and connectors. Jakarta EE does not specify how an application is deployed on the target server—only how a standard module or application is packaged. For each module type, the specifications define the files required and their location in the directory structure.
Jakarta EE is platform independent, so you can edit and compile code on any platform, and test your applications on development WebLogic Servers running on other platforms. For example, it is common to develop WebLogic Server applications on a PC running Windows or Linux, regardless of the platform where the application is ultimately deployed.
For more information, refer to the Jakarta EE specification at: https://jakarta.ee/specifications/platform/9.1/
.
Overview of Jakarta EE Applications and Modules
-
Web application modules—HTML pages, servlets, JavaServer Pages, and related files. See Web Application Modules in Developing Applications for Oracle WebLogic Server.
-
Jakarta Enterprise Beans (EJB) modules—entity beans, session beans, and message-driven beans. See Jakarta Enterprise Bean Modules in Developing Applications for Oracle WebLogic Server.
-
Connector modules—resource adapters. See Connector Modules in Developing Applications for Oracle WebLogic Server.
-
Enterprise applications—web application modules, EJB modules, resource adapters and web services packaged into an application. See Enterprise Applications in Developing Applications for Oracle WebLogic Server.
-
Web services—See WebLogic Web Services in Developing Applications for Oracle WebLogic Server.
A WebLogic application can also include the following WebLogic-specific modules:
-
JDBC and JMS modules—See JMS and JDBC Modules in Developing Applications for Oracle WebLogic Server.
-
Coherence Grid modules—See Packaging Coherence Applications in Developing Oracle Coherence Applications for Oracle WebLogic Server.
-
WebLogic Diagnostic FrameWork (WLDF) modules—See WebLogic Diagnostic Framework Modules in Developing Applications for Oracle WebLogic Server.
Roadmap for Developing Applications in WebLogic Server
The WebLogic Server documentation set includes several introductory, procedural, and reference topics, including examples, that help you understand how to develop Jakarta EE applications on WebLogic Server.
Table 6-1 Roadmap for Developing Applications in WebLogic Server
Major Task | Subtasks and Additional Information |
---|---|
Learning more about application development |
|
Setting up your development environment |
|
Designing your application |
|
Building your application |
|
Using development tools |
|
Moving your application to a production environment |
|
Application examples |
Note: The WebLogic Server code examples include a naming convention, which indicates the path names where the samples are located. Jakarta EE 8 Examples, Java EE 7 Examples, and Java EE 6 Examples refers to the names of the folders where these examples are installed and not the version of Java EE or Jakarta EE that the examples support. All the WebLogic Server examples remain relevant for developing WebLogic Server 15.1.1.0.0 applications.
|
Jakarta EE API programming guides |
|
Javadoc and API reference |
|
General reference |