Understanding Oracle WebLogic Server
Understanding Oracle WebLogic Server
Understanding Oracle WebLogic Server
June 2016
This document provides an overview of Oracle WebLogic
Server features and describes how you can use them to create
enterprise-ready solutions.
Contents
Preface ............................................................................................................................................................... vii
vii
Conventions.................................................................................................................................................
vii
Introduction
1.1
Product Overview............................................................................................................................
1-1
1.2
1-2
1.3
1-3
1.4
Diagnostic Framework....................................................................................................................
1-4
1.5
Security..............................................................................................................................................
1-4
1.6
1-5
1.7
1-5
1.8
1-5
1.9
1-6
1.10
1-6
1.11
Upgrade...........................................................................................................................................
1-6
System Administration
2.1
2-1
2.2
2-2
2.3
2-5
2.4
2-8
3.2
3-1
3.1.1
3-1
3.1.2
3-2
3.1.3
3-3
3.1.4
3-6
3-8
3.2.1
3-8
iii
4-1
4.2
4-1
4.3
Contents of a Domain......................................................................................................................
4-2
4.3.1
4-3
4.3.2
4-3
4.3.3
4-4
4.3.4
4-4
4-5
4.4
5-1
5.2
5-1
5.3
5-2
5.4
5-2
5.5
5-3
5.6
5-3
5.7
5-3
5.8
5-4
5.9
5-4
6-1
6.2
6-2
6.3
6-3
7-1
7.2
7-1
7.3
7-2
7.3.1
7-3
7.3.2
7-3
7.3.3
JSP/HTML Deployment......................................................................................................
7-4
7.3.4
7-4
7-4
7.4
iv
8-1
8.2
8-1
8.3
8-2
8.4
8-2
8.5
8-2
8.6
8-3
8.7
8-3
9-1
9.2
9-1
9.2.1
9-1
9-3
9.3
10
10.2
10.3
10.4
11
12
10.3.1
10.3.2
Single Sign-on with the WebLogic Server Security Framework ............................... 10-4
10.3.3
10.3.4
10.3.5
10.4.2
10.5
10.6
10.7
11.2
11.3
11.4
12.2
12.1.2
12.1.3
12.1.4
12.2.2
12.2.3
12.2.4
12.2.5
12.3
13
14
vi
12.3.2
12.4
12.5
13.2
13.3
13.4
13.5
13.6
Roadmap for Monitoring, Diagnosing, and Troubleshooting in WebLogic Server .......... 13-3
15
Overview....................................................................................................................................... 14-1
14.1.1
14.1.2
14.1.3
14.2
Conventions.................................................................................................................................. 14-2
14.3
14.4
14.5
14.6
14.7
15.2
15.3
15.3.2
15.3.3
15.3.4
15.4
15.5
15.6
Preface
This preface describes the document accessibility features and conventions used in this
guideUnderstanding Oracle WebLogic Server.
Documentation Accessibility
For information about Oracle's commitment to accessibility, visit the Oracle
Accessibility Program website at http://www.oracle.com/pls/topic/lookup?
ctx=acc&id=docacc.
Access to Oracle Support
Oracle customers that have purchased support have access to electronic support
through My Oracle Support. For information, visit http://www.oracle.com/pls/
topic/lookup?ctx=acc&id=info or visit http://www.oracle.com/pls/
topic/lookup?ctx=acc&id=trs if you are hearing impaired.
Conventions
The following text conventions are used in this document:
Convention
Meaning
boldface
italic
monospace
vii
1
Introduction
This chapter provides an overview of Oracle WebLogic Server features and describes
how you can use them to create enterprise ready-solutions.
This chapter includes the following sections:
Product Overview
Programming Models
High Availability
Diagnostic Framework
Security
Client Options
Integration with Oracle WebLogic Suite
Integration with Other Systems
Integration with Web Servers
WebLogic Server API Examples and Sample Application
Upgrade
Introduction 1-1
Programming Models
itself. You can also configure WebLogic Server to monitor and tune application
throughput automatically without human intervention. Extensive security features
protect access to services, keep enterprise data secure, and prevent malicious attacks.
Figure 1-1 shows how WebLogic Server fits into the overall Oracle Fusion Middleware
stack.
Figure 1-1
High Availability
Introduction 1-3
Diagnostic Framework
1.5 Security
The WebLogic Server security architecture provides a comprehensive, flexible security
infrastructure designed to address the security challenges of making applications
available on the Web. WebLogic security can be used standalone to secure WebLogic
Server applications or as part of an enterprise-wide, security management system that
represents a best-in-breed security management solution. See "Overview of the
WebLogic Security Service."
Client Options
Introduction 1-5
1.11 Upgrade
Tools and documentation are provided to help you migrate applications implemented
on earlier versions of WebLogic Server to the current WebLogic Server environment.
See the Upgrading Oracle WebLogic Server.
2
System Administration
This chapter provides an overview of system administration for the WebLogic Server
component of your development and production environments.
This chapter includes the following sections:
Overview of WebLogic Server System Administration
Choosing the Appropriate Technology for Your Administrative Tasks
Summary of System Administration Tools and APIs
Roadmap for Administering the WebLogic Server System
To do this...
Create domains
Migrate domains
from development
environments to
production
environments
Track changes in a
domain's
configuration
Configure
connections to
databases or other
systems
Within individual applications, you can define your own data sources
or database connections using JDBC, or connect to external systems
using resource adapters. When you deploy such an application,
WebLogic Server creates the data sources and connections for you.
See:
"Configuring WebLogic JDBC Resources" in Administering JDBC
Data Sources for Oracle WebLogic Server
"Understanding Resource Adapters" in Developing Resource
Adapters for Oracle WebLogic Server
If you have not defined your own data sources or connections within
an application, you can use the WebLogic Server Administration
Console or the WebLogic Scripting Tool to create the resources. See
Oracle WebLogic Server Administration Console Online Help or "Using
the WebLogic Scripting Tool" in Understanding the WebLogic Scripting
Tool.
Table 2-1
To do this...
Configure Coherence
Clusters
Modify or add
services to an active
domain
Monitor application
server services and
resources
Table 2-1
To do this...
Deploy applications
Modify applications
in an active domain
Monitor activity
within applications
Optimize the
performance of your
application and
maintain service level
agreements.
Table 2-1
To do this...
Configure logging
and view log files
Management Utilities
Utility
Description
WebLogic Server
Administration
Console
Table 2-2
Utility
Description
Fusion Middleware
Control
Enterprise Manager
Cloud Control
WebLogic Scripting
Tool
Configuration
Wizard
Table 2-2
Utility
Description
Configuration
Template Builder
You can use two Ant tasks provided with WebLogic Server to help
you perform common configuration tasks in a development
environment. Ant is a Java-based build tool similar to Make. The
configuration tasks let you start and stop WebLogic Server instances
as well as create and configure WebLogic Server domains. When
combined with other WebLogic Ant tasks, you can create powerful
build scripts for demonstrating or testing your application with
custom domains.
See "Using Ant Tasks to Configure a WebLogic Server Domain" in
Developing Applications for Oracle WebLogic Server.
SNMP Agents
WebLogic Server includes the ability to communicate with enterprisewide management systems using Simple Network Management
Protocol (SNMP). WebLogic Server SNMP agents let you integrate
management of WebLogic Servers into an SNMP-compliant
management system that gives you a single view of the various
software and hardware resources of a complex, distributed system.
See Monitoring Oracle WebLogic Server with SNMP.
Table 2-3 describes APIs that you can use to create your own management utilities.
Table 2-3
Management APIs
API
Description
JMX
Java EE Management
API
Table 2-3
API
Description
Deployment API
WebLogic Diagnostic
Service APIs
Logging APIs
Major Task
Understanding
WebLogic Server
system
administration
Installing or
upgrading WebLogic
Server
Table 2-4
Major Task
Configuring a server
environment
Learning about
server startup and
shutdown
Starting or stopping a
WebLogic Server
instance
Configuring
Coherence clusters
Configuring security
Configuring system
resources
Configuring and
deploying
applications
Monitoring your
domain
Table 2-4
Major Task
Configuring server
environments for
high availability
Understanding the
WebLogic persistent
store
Troubleshooting
Reference
3
Overview of Administration Consoles
This chapter introduces and describes the WebLogic Server Administration Console
and Fusion Middleware Control.
This chapter includes the following sections:
Using the WebLogic Server Administration Console
Using Fusion Middleware Control
where hostname is the DNS name or IP address of the Administration Server and
port is the listen port on which the Administration Server is listening for requests
(port 7001 by default). If you have configured a domain-wide administration port,
use that port number. If you configured the Administration Server to use Secure
Socket Layer (SSL) you must add s after http as follows:
https://hostname:port/console
Note:
start the Administration Server (you may have specified this user name and
password during the installation process) or enter a user name that belongs to one
of the following security groups: Administrators, Operators, Deployers, or
Monitors. These groups provide various levels of access to system administration
functions in the WebLogic Server Administration Console.
Using the security system, you can add or delete users to one of these groups to
provide controlled access to the Console.
Note:
If you have your browser configured to send HTTP requests to a proxy server,
then you may need to configure your browser to not send Administration
Server HTTP requests to the proxy. If the Administration Server is on the same
machine as the browser, then ensure that requests sent to localhost or 127.0.0.1
are not sent to the proxy.
connect("username","password")
edit()
startEdit()
cmo.setConsoleEnabled(true)
save()
activate()
The following attribute(s) have been changed on MBeans which require server re-start.
MBean Changed : com.bea:Name=mydomain,Type=Domain Attributes changed :
ConsoleEnabled
Activation completed
disconnect()
exit()
For information about using WLST, see Understanding the WebLogic Scripting Tool.
Change Center
Domain Structure
Figure 3-3
How do I...
Description
Welcome message
Indicates user name with which you have logged into the Console.
Connected to:
Home
Log Out
Preferences
Record
Help
Search
A text field in which you can enter a string to find any WebLogic
Server Configuration MBeans that contain the string you specified in
their name.
Figure 3-4
Tool Bar
Breadcrumb Navigation
which you can access from the WebLogic Server Administration Console at
Diagnostics > Log Files.
Figure 3-6
System Status
Locate the Change Center in the upper left of the WebLogic Server Administration
Console screen.
2.
Click the Lock & Edit button to lock the configuration edit hierarchy for the
domain.
3.
Make the changes you desire on the relevant page of the Console. Click Save on
each page where you make a change.
4.
When you have finished making all the desired changes, click Activate Changes
in the Change Center.
Changes to dynamic configuration attributes become available once they are activated,
without restarting the affected server or system restart. These changes are made
available to the server and run-time hierarchies once they are activated. Changes to
non-dynamic configuration attributes require that the affected servers or system
resources be restarted before they become effective.
If a change is made to a non-dynamic configuration setting, no changes to dynamic
configuration settings will take effect until after restart. This is to assure that a batch of
updates having a combination of dynamic and non-dynamic attribute edits will not be
partially activated.
Note that WebLogic Server's change management process applies to changes in
domain and server configuration data, not to security or application data.
4
WebLogic Server Domains
This chapter describes WebLogic Server domains, logically related groups of Oracle
WebLogic Server resources.
This chapter includes the following sections:
Understanding Domains
Organizing Domains
Contents of a Domain
Roadmap for Understanding WebLogic Server Domains
Contents of a Domain
Figure 4-1
How you organize your Oracle WebLogic Server installations into domains depends
on your business needs. You can define multiple domains based on different system
administrators' responsibilities, application boundaries, or geographical locations of
the machines on which servers run. Conversely, you might decide to use a single
domain to centralize all Oracle WebLogic Server administration activities.
Depending on your particular business needs and system administration practices,
you might decide to organize your domains based on criteria such as:
Logical divisions of applications. For example, you might have one domain
devoted to end-user functions such as shopping carts and another domain devoted
to back-end accounting applications.
Physical location. You might establish separate domains for different locations or
branches of your business. Each physical location requires its own Oracle
WebLogic Server installation.
Size. You might find that domains organized in small units can be managed more
efficiently, perhaps by different system administrators. Contrarily, you might find
that maintaining a single domain or a small number of domains makes it easier to
maintain a consistent configuration.
For development or test environments, you can create a simple domain that consists of
a single server instance. This single instance acts as an Administration Server and
hosts the applications that you are developing. The wl_server domain that you can
install with Oracle WebLogic Server is an example of this type of domain.
Contents of a Domain
Although the scope and purpose of a domain can vary significantly, most Oracle
WebLogic Server domains contain the components described in this section.
Figure 4-2
Contents of a Domain
Contents of a Domain
of Managed Servers. For more information about the benefits and capabilities of an
Oracle WebLogic Server cluster, see "Understanding WebLogic Server Clustering" in
Administering Clusters for Oracle WebLogic Server.
Mail sessions.
XML entity caches and registry of XML parsers and transformer factories.
Messaging services such as JMS servers and store-and-forward services.
Persistent store, which is a physical repository for storing data, such as persistent
JMS messages. It can be either a JDBC-accessible database or a disk-based file.
Startup classes, which are Java programs that you create to provide custom,
system-wide services for your applications.
Work Managers, which determine how an application prioritizes the execution of
its work based on rules you define and by monitoring actual run-time performance.
You can create Work Mangers for entire Oracle WebLogic Server domains or for
specific application components.
Work Contexts, which enable applications to pass properties to a remote context
without including the properties in a remote call.
Major Task
Creating domains
Configuring domains
Working with
domain templates
Examples
5
WebLogic Server Clustering
This chapter introduces WebLogic Server clusters, groups of WebLogic Server server
instances running simultaneously and working together to provide increased
scalability and reliability.
This chapter includes the following sections:
Overview of WebLogic Server Clusters
Relationship Between Clusters and Domains
Relationship Between Coherence and WebLogic Server Clusters
Benefits of Clustering
Key Capabilities of Clusters
Objects That Can Be Clustered
Objects That Cannot Be Clustered
Overview of Dynamic Clusters
Roadmap for Clustering in WebLogic Server
You can use a variety of criteria for organizing WebLogic Server instances into
domains. For instance, you might choose to allocate resources to multiple domains
based on logical divisions of the hosted application, geographical considerations, or
the number or complexity of the resources under management. For additional
information about domains see Understanding Domain Configuration for Oracle WebLogic
Server.
In each domain, one WebLogic Server instance acts as the Administration Serverthe
server instance which configures, manages, and monitors all other server instances
and resources in the domain. Each Administration Server manages one domain only.
If a domain contains multiple clusters, each cluster in the domain has the same
Administration Server. All server instances in a cluster must reside in the same
domain; you cannot "split" a cluster over multiple domains. Similarly, you cannot
share a configured resource or subsystem between domains.
Clustered WebLogic Server instances behave similarly to non-clustered instances,
except that they provide failover and load balancing. The process and tools used to
configure clustered WebLogic Server instances are the same as those used to configure
non-clustered instances. However, to achieve the load balancing and failover benefits
that clustering enables, you must adhere to certain guidelines for cluster configuration.
Major Task
Configuring a cluster
Configuring elasticity
for a dynamic cluster
Migrating servers
and services in a
cluster
Troubleshooting
Reference
6
Developing Applications in WebLogic
Server
This chapter describes application development in WebLogic Server.
This chapter includes the following sections:
WebLogic Server and the Java EE Platform
Overview of Java EE Applications and Modules
Roadmap for Developing Applications in WebLogic Server
Major Task
Setting up your
development
environment
Designing your
application
Building your
application
Using development
tools
Moving your
application to a
production
environment
Development software
Ant
Oracle WebLogic Server Administration Console Online Help
Command Reference for Oracle WebLogic Server
Creating WebLogic Domains Using the Configuration Wizard
EJBGen
Creating Domain Templates Using the Domain Template Builder
Understanding the WebLogic Scripting Tool
Table 6-1
Major Task
Application
examples
Java EE 7 Examples
Additional API Examples
Avitek Medical Records
A complete and functional Java EE application including source
code. The MedRec (Spring) sample application demonstrates
Spring 3.0.x application development practices.
Java EE API
programming guides
Table 6-1
Major Task
General reference
7
Deploying Applications in WebLogic Server
This chapter describes application deployment in WebLogic Server.
This chapter includes the following sections:
Overview of the Deployment Process
Java EE 7 Deployment Implementation
Fast Track Deployment Guide
Roadmap for Deploying Applications in WebLogic Server
Figure 7-1
resources such as named JDBC data sources or JMS queues. If the application
requires external resources, you must configure them in the target WebLogic
Server domain before deploying the application.
2. Copy the archive file or exploded archive directory for the Java EE application or
module into the /autodeploy directory of the examples server domain directory,
ORACLE_HOME/user_projects/domains/wl_server/autodeploy.
application.
7.3.1.1 Auto-Deployment
When running in development mode, WebLogic Server automatically deploys
applications copied into the /autodeploy subdirectory of the domain directory. Autodeployment is a simple and quick method of deploying an application for testing or
evaluation. See "Auto-Deploying Applications in Development Domains" in Deploying
Applications to Oracle WebLogic Server.
Use the WebLogic Server Configuration Wizard to create new domains, and to
create templates for automating domain configuration. For more information, see
Creating WebLogic Domains Using the Configuration Wizard.
such resources require additional deployment steps that are beyond the scope of
these Fast Track procedures. HTML files do not have this restriction.
http://localhost:port/myFile
where:
localhost is the host name of the machine running WebLogic Server.
port is the port number where WebLogic Server is listening for requests (7001 by
default).
myFile is the full name, including the .jsp or .html extension, of the JSP or HTML
file you copied in step 2.
The JSP or HTML file has been automatically deployed from a directory preconfigured
to target the Examples Server. mainWebApp is deployed by default and you can place
your own JSP and HTML files into the mainWebApp exploded directory in order to
quickly view or test them.
Table 7-1
Major Task
Deployment terminology
Java EE 7 deployment implementation
WebLogic Server deployment features
Understanding the deployment configuration process
Overview of the export process
Best practices for deploying applications
Packaging
applications
Using deployment
tools
Advanced topics
Reference
8
WebLogic Server Data Sources
This chapter describes WebLogic Java Database Connectivity (JDBC) data sources.
This chapter includes the following sections:
Understanding JDBC Data Sources.
Understanding Generic Data Sources.
Understanding GridLink Data Sources.
Understanding JDBC Multi Data Sources.
Understanding Proxy Data Sources.
Understanding Universal Connection Pool Data Sources.
Roadmap for WebLogic Server Data Sources.
the local application context and then calling getConnection(). When finished with
the connection, the application should call connection.close() as early as
possible, which returns the database connection to the pool for other applications to
use.
Oracle generally recommends the use of Active GridLink data source, Multi Data
Source, or Generic data source, and Oracle WebLogic Server connection pooling
included in these data source implementations to establish connectivity with Oracle
Databases
The implementations of UCP data sources are loosely coupled, allowing the swapping
of the ucp.jar to support the use of new UCP features by the applications. UCP data
sources are not supported in an application-scoped/packaged or stand-alone module
environment. For information see in Using Universal Connection Pool Data
Sources in Administering JDBC Data Sources for Oracle WebLogic Server.
Major Task
Configuring JDBC
Java EE DataSources
Managing JDBC
Performance and
tuning
Using WebLogic
Server with Oracle
RAC
Table 8-1
Major Task
9
WebLogic Server Messaging
This chapter describes the Java Messaging System (JMS) in WebLogic Server.
This chapter includes the following sections:
Overview of JMS and WebLogic Server
Java Message Service
Roadmap for WebLogic Server Messaging
Figure 9-1
send and receive messages to these destinations using their respective JMS
connections. A single logical WebLogic destination can be configured to be
distributed across multiple JMS servers within the same cluster. A WebLogic JMS
client can transparently communicate with any WebLogic JMS destination that is
hosted in the same cluster as the client's connection host.
JMS modules: contain configuration resources, such as standalone queue and topic
destinations, distributed destinations, and connection factories, and are defined by
XML documents that conform to the weblogic-jms.xsd schema. For more
information, see "What are JMS Configuration Resources?" in Administering JMS
Resources for Oracle WebLogic Server.
Client JMS applications: either produce messages to destinations or consume
messages from destinations.
JNDI (Java Naming and Directory Interface): provides a lookup facility for JMS
connection factories and destinations.
WebLogic persistent storage: a server instance's default store, a user-defined file
store, or a user-defined JDBC-accessible store for storing persistent message data.
Major Task
Programming
WebLogic messaging
Understanding
clients for WebLogic
messaging
Table 9-1
Major Task
Configuring
WebLogic messaging
Performance and
tuning
Reference
10
Understanding WebLogic Server Security
This chapter introduces the WebLogic Server security service and methods for
securing your WebLogic Server environments.
This chapter includes the following sections:
Java EE 7 Security Feature Support in WebLogic Server
Overview of the WebLogic Server Security Service
WebLogic Server Security Service Architecture
Managing WebLogic Server Security
Oracle Platform Security Services (OPSS)
Security for Coherence
Roadmap for Securing WebLogic Server
A foundation for Web services security including support for Security Assertion
Markup Language (SAML) 1.1 and 2.0.
Capabilities which allow WebLogic Server to participate in single sign-on (SSO)
with Web sites, Web applications, and desktop clients
A framework for managing public keys which includes a certificate lookup,
verification, validation, and revocation as well as a certificate registry.
developers to define security services. Within that context, the WebLogic Security
Framework also acts as an intermediary between the WebLogic containers (Web and
EJB), the Resource containers, and the security providers.
Major Task
Auditing
Authentication
Security Assertion Markup Language (SAML)
Single sign-on (SSO)
Authorization
Identity and trust
Secure Sockets Layer (SSL)
WebLogic security framework
Single sign-on with the WebLogic Server security framework
SAML token support in WebLogic Web services
Security Service Provider Interfaces (SSPIs)
WebLogic security providers
Table 10-1
Major Task
Administering
WebLogic Server
security
Authenticating users
Configuring SSL
Configuring
authorization
Programming
applications for
security
Best practices
11
WebLogic Server Web Services
This chapter offers an introduction to WebLogic Server Web services.
This chapter includes the following sections:
Overview of Web Services
Anatomy of a Web Service
Web Service Standards
Roadmap for Web Services
consumer does not have to know anything more about a Web service than the WSDL
file that describes what it can do.
A Web service client (or consumer)--such as, a desktop application or a Java Platform,
Enterprise Edition portlet-- invokes a Web service by submitting a request in the form
of an XML document to the Web service. The Web service processes the request and
returns the result to the Web service client in an XML document.
The Web service client can send a request in the form of a Simple Object Access
Protocol (SOAP) message. SOAP is an XML messaging framework designed to allow
heterogeneous applications to exchange structured information in a distributed
environment. In turn, the Web service processes the request and returns the response
in a SOAP message.
You can also develop Representational State Transfer (REST) Web services, or
"RESTful" Web services. REST describes any simple interface that transmits data over
a standardized interface (such as HTTP) without an additional messaging layer, such
as SOAP. REST provides a set of design rules for creating stateless services that are
viewed as resources, or sources of specific information, and can be identified by their
unique URIs. A client accesses the resource using the URI, a standardized fixed set of
methods, and a representation of the resource is returned. The client is said to transfer
state with each new resource representation.
To secure the message exchange, the Web service may require credentials to access the
service, for example a username and a password, or encrypt the response.
Major Task
Table 11-1
Major Task
Developing Web
services using JAXWS
Developing RESTful
Web services
Table 11-1
Major Task
Developing Web
services using JAXRPC
Deploying and
administering
WebLogic Web
services
Securing WebLogic
Web services
Interoperability with
WebLogic Web
services
12
Enterprise JavaBeans (EJBs)
This chapter introduces Enterprise JavaBeans.
This chapter includes the following sections:
Understanding EJBs
EJB Anatomy and Environment
EJBs Clients and Communications
Securing EJBs
Roadmap for EJBs in WebLogic Server
Understanding EJBs
singletons, you can easily share state between multiple instances of an enterprise bean
component or between multiple enterprise bean components in the application.
Singleton session beans offer similar functionality to stateless session beans but differ
from them in that there is only one singleton session bean per application, as opposed
to a pool of stateless session beans, any of which may respond to a client request. Like
stateless session beans, singleton session beans can implement web service endpoints.
Singleton session beans maintain their state between client invocations but are not
required to maintain their state across server crashes or shutdowns.
Example: An Internet application that provides a central counter service. A stateless
singleton bean can be called from a Java client, with the count being consistently
incremented by 1 as the client is invoked multiple times.
The EJB 2.1 and earlier API required that Local and Remote clients access the
stateful or stateless session bean by means of the session bean's local or remote
home and the local or remote component interfaces. These interfaces remain
available for use with EJB 3.x; however, the EJB 2.1 Remote and Local client
view is not supported for singleton session beans.
For more information see "Create EJB Classes and Interfaces" in Developing
Enterprise JavaBeans, Version 2.1, for Oracle WebLogic Server.
Table 12-1
EJB
Component
Description
Stateless
Session
Stateful
Session
Singleton MDB
Session
Remote
business
interface
Yes
Yes
Yes
No
Local
business
interface
Yes
Yes
Yes
No
Local Nointerface
Yes
Yes
Yes
Yes
Bean class
Yes
Yes
Yes
Yes
Transaction management
Locking and concurrency control
Securing EJBs
that object as though it were co-located with the client on the same JVM locally in
the client's virtual machine.
An EJB with a remote interface is an RMI object. An EJB's remote interface extends
java.rmi.remote. For more information on WebLogic RMI, see Developing RMI
Applications for Oracle WebLogic Server.
HTTPAn EJB can obtain an HTTP connection to a Web server external to the
WebLogic Server environment by using the java.net.URL resource connection
factory. For more information, see "Configuring EJBs to Send Requests to an URL"
in Developing Enterprise JavaBeans, Version 2.1, for Oracle WebLogic Server.
You can specify the attributes of the network connection an EJB uses by binding the
EJB to a WebLogic Server custom network channel. For more information, see
"Configuring Network Resources" in Administering Server Environments for Oracle
WebLogic Server.
Major Task
Understanding EJB
3.1
Table 12-2
Major Task
Iterative EJB
developing
Programming the
annotated EJB class
Deployment
guidelines for EJBs
Using an embedded
EJB container in
Oracle WebLogic
Server
Configuring the
Persistence Provider
in Oracle WebLogic
Server
Reference
Table 12-2
Major Task
Note: Oracle
TopLink, a JPA 2.0
persistence provider,
is now the default
JPA provider,
replacing Kodo,
which was the
default provider in
previous releases. For
more information,
see "Configuring the
Persistence Provider
in Oracle WebLogic
Server."
Information about
EJB 2.x
13
Monitoring, Diagnosing, and
Troubleshooting
This chapter describes monitoring, diagnosing, and troubleshooting in WebLogic
Server.
This chapter includes the following sections:
WebLogic Server Diagnostics Framework
Logging Services
SNMP Support
Custom JMX Applications
Java EE Management APIs
Roadmap for Monitoring_ Diagnosing_ and Troubleshooting in WebLogic Server
Logging Services
SNMP Support
specific events. For example, you can use WebLogic logging services to report error
conditions or listen for log messages from a specific subsystem.
By default, WebLogic logging services use an implementation based on the Java
Logging APIs. In addition, WebLogic Server also provides the Server Logging Bridge,
which provides a lightweight mechanism for applications that currently use Java
Logging to have their log messages redirected to WebLogic logging services.
Applications can use the Server Logging Bridge with their existing configuration; no
code changes or programmatic use of the WebLogic Logging APIs is required.
Creating JMX
applications to
manage WebLogic
Server
JMO hierarchy
JMO object names
Optional features of JMOs
Accessing JMOs
Accessing the MEJB on WebLogic Server
WebLogic Server extensions
14
Sample Applications and Code Examples
This chapter describes WebLogic Server code examples and sample applications that
offer several approaches to learning about and working with WebLogic Server. These
examples and sample applications are available through performing a custom
installation and selecting to install the Server Examples.
This chapter includes the following sections:
Overview
Conventions
Java EE 6 Examples
Java EE 7 Examples
Additional API Examples
Avitek Medical Records
Derby Open-Source Database
14.1 Overview
This section provides an overview of installing and using the WebLogic Server code
examples.
This section contains the following topics:
Installing the WebLogic Server Code Examples
Starting the WebLogic Server Samples Domain
Running the WebLogic Server Code Examples
Conventions
Note:
By default, the examples server uses port 7001 to listen for incoming
connections. The MedRec server also uses the same listen port by default,
which means that you cannot run both domains at the same time without
changing one of the listen ports. If you want to run both domains at the same
time, use the Oracle WebLogic Server Administration Console to change the
listen port of the examples server to something other than 7001, and then
restart it. You can then run the MedRec server using its default listen port at
the same that you run the examples server.
14.2 Conventions
The following conventions are used throughout the instructions for the WebLogic
Server code examples:
The instructions generally are for Windows command shells. If you are using a
UNIX or Linux-based shell, substitute / for \ in path names.
ORACLE_HOME represents the directory you specified as the Oracle Home when
you installed WebLogic Server; for example, C:\Oracle\Middleware
\Oracle_Home.
WL_HOME represents the top-level installation directory for Oracle WebLogic
Server. The default path is ORACLE_HOME/wlserver. (However, you are not
required to install WebLogic Server in the Oracle Home directory.)
EXAMPLES_HOME represents the directory in which the WebLogic Server code
examples are configured. The default path is ORACLE_HOME\wlserver\samples
\server.
Java EE 6 Examples
Java EE 7 Examples
JPA 2.1: Use JPA criteria update and delete and stored procedures.
JSF 2.2: Use Java Server Faces (JSF) resource library contracts, file upload, faces
flows, and HTML5 features.
JSON-P: Use the Java API for JSON processing with JAX-RS.
Servlet 3.1: Use the HTTP protocol upgrade API, use non-blocking I/O for
asynchronous reads and writes, change a session ID, and handle uncovered HTTP
methods.
WebSocket: Process JSON-format data, using CDI and EJBs in WebSocket
endpoints, enable a server to echo text sent by a client, and enable fallback to HTTP
long polling as an alternative for WebSocket messaging.
15
WebLogic Server Compatibility
This chapter describes WebLogic Server compatibility.
Oracle attempts to support binary and source-level compatibility between WebLogic
Server 12c (12.1.3) and versions 10.3, 10.3.x, 12.1.1, and 12.1.2 in the areas of persistent
data, generated classes, and API compatibility. In some cases, it is impossible to avoid
incompatibilities. Where incompatibilities arise, they are fully documented in the
Upgrading Oracle WebLogic Server.
This chapter includes the following sections:
Java EE 7 Compatibility
Generated Classes Compatibility
Compatibility Within a Domain
Persistent Data Compatibility
API Compatibility
Protocol Compatibility
For a domain, you can view the value of the <domain-version> element in the
domain configuration file, config.xml. For example:
<domain-version>12.2.1.0.0</domain-version>
Note:
Note:
Protocol Compatibility
Protocol Compatibility