Use WebLogic Remote Console to manage services in a WebLogic Server domain.
You can connect WebLogic Server to databases by adding JDBC data sources to your domain. A data source is a Java EE standard method of configuring connectivity to a database.
Each WebLogic data source contains a pool of database connections. Applications look up the data source on the JNDI tree or in the local application context and then use a database connection from the pool of connections. Data sources and their connection pools provide connection management processes that help keep your system running efficiently.
You can manage the following JDBC data source types from WebLogic Remote Console:
JDBC Generic Data Sources
JDBC Multi Data Sources
Active GridLink Multi Data Sources
Universal Connection Pool (UCP) Data Sources
For more information on using data sources with WebLogic Server, see Understanding JDBC Data Sources in Understanding Oracle WebLogic Server and Configure Database Connectivityin Administering JDBC Data Sources for Oracle WebLogic Server.
Data sources require the use of JDBC drivers to gain access to various databases. WebLogic Server comes with a default set of JDBC drivers but you can also install third-party JDBC drivers.
For the types of JDBC drivers supported in WebLogic Server, see Types of JDBC Driver in Administering JDBC Data Sources for Oracle WebLogic Server.
For a list of the JDBC drivers installed in WebLogic Server, see JDBC Drivers Installed with WebLogic Server in Administering JDBC Data Sources for Oracle WebLogic Server.
For instructions on how to install third-party JDBC drivers, see Adding Third-Party JDBC Drivers Not Installed with WebLogic Server in Administering JDBC Data Sources for Oracle WebLogic Server.
A generic data source provides database access and database connection management. Generic data sources and their connection pools provide connection management processes that help keep your system running efficiently.
For more information on generic data sources, see Using JDBC Generic Data Sources in Administering JDBC Data Sources for Oracle WebLogic Server.
Generic is the term used to distinguish a simple data source from a Multi Data Source or Active GridLink data source.
If you need a JDBC driver that is not installed with WebLogic Server, you must install it before you can set up a data source. See Adding Third-Party JDBC Drivers Not Installed with WebLogic Server in Administering JDBC Data Sources for Oracle WebLogic Server.
In the Edit Tree, go to Services, then Data Sources.
Click New.
Enter a name for the new data source.
In the JNDI Names field, enter the JNDI path to the location where this JDBC data source will be bound. Applications look up the data source on the JNDI tree by this name when reserving a connection.
Choose the server instances or clusters where you want to deploy the data source.
Select Generic Data Source from the Data Source Type drop-down list.
From the Database Type drop-down list, select the database management system (DBMS) of the database that you want to connect to. If your DBMS is not listed, select Other.
From the Database Driver drop-down list, select a JDBC driver.
Enter the connection details for the database that you want to connect to:
Click Create.
A multi data source is an abstraction around a group of generic data sources. It provides failover and load balancing for connection requests between two or more data sources.
For more information on multi data sources, see Using JDBC Multi Data Sources in Administering JDBC Data Sources for Oracle WebLogic Server.
Before you create a multi data source, you should create the generic data sources that the multi data source will manage, and ensure they are deployed to same targets as where you plan to deploy the multi data source. See Create a Generic Data Source.
In the Edit Tree, go to Services, then Data Sources.
Click New.
Enter a name for the new data source.
In the JNDI Names field, enter the JNDI path to the location where this JDBC data source will be bound. Applications look up the data source on the JNDI tree by this name when reserving a connection.
Choose the server instances or clusters where you want to deploy the data source.
You must deploy the multi data source and the generic data sources to the same targets.
Select Multi Data Source from the Data Source Type drop-down list.
From the Algorithm Type drop-down list, choose an algorithm type to determine the connection request processing for the multi data source.
Specify whether this is an XA or non-XA JDBC multi data source.
Choose the data sources that you want the multi data source to use to satisfy connection requests.
Click Create.
You can add or remove data sources to a multi data source while the data source is deployed (referred to as dynamically changing the data source list in the multi data source).
The data sources that you add to a multi data source must be deployed on the same targets on which you intend to deploy the multi data source. You cannot include data sources in a multi data source that are deployed on different servers or clusters. See Target Data Sources.
In the Edit Tree, go to Services, then Data Sources.
Select the multi data source whose components you want to edit.
On the Data Sources tab, use the Data Source List field to modify which data sources are covered by this multi data source.
The order of data sources in the list determines the order that the multi data source uses to route connection requests. For multi data sources that use the Failover algorithm, the first data source in the list is considered the primary data source. Others are considered secondary, tertiary, and so forth.
Click Save.
An Active GridLink data source provides connectivity between WebLogic Server and an Oracle database.
For more information on GridLink data sources, see Using Active GridLink Data Sources in Administering JDBC Data Sources for Oracle WebLogic Server.
If you need a JDBC driver that is not installed with WebLogic Server, you must install it before you can set up a data source. See Adding Third-Party JDBC Drivers Not Installed with WebLogic Server in Administering JDBC Data Sources for Oracle WebLogic Server.
In the Edit Tree, go to Services, then Data Sources.
Click New.
Enter a name for the new data source.
In the JNDI Names field, enter the JNDI path to the location where this JDBC data source will be bound. Applications look up the data source on the JNDI tree by this name when reserving a connection.
Choose the server instances or clusters where you want to deploy the data source.
Select GridLink Data Source from the Data Source Type drop-down list.
From the Database Driver drop-down list, select JDBC drivers.
If you selected a non-XA driver, then select a Global Transactions Protocol.
See JDBC Data Source Transaction Options in Administering JDBC Data Sources for Oracle WebLogic Server.
Enter the connection details for the database that you want to connect to:
Configure any additional connection details that are applicable to your environment.
Click Create.
A Universal Connection Pool (UCP) data source provides an option for users who want to use Oracle Universal Connection Pooling to connect to Oracle databases. UCP provides an alternative connection pooling technology to Oracle WebLogic Server connection pooling.
For more information on UCP data sources, see Using Universal Connection Pool Data Sources in Administering JDBC Data Sources for Oracle WebLogic Server.
If you need a JDBC driver that is not installed with WebLogic Server, you must install it before you can set up a data source. See Adding Third-Party JDBC Drivers Not Installed with WebLogic Server in Administering JDBC Data Sources for Oracle WebLogic Server.
In the Edit Tree, go to Services, then Data Sources.
Click New.
Enter a name for the new data source.
In the JNDI Names field, enter the JNDI path to the location where this JDBC data source will be bound. Applications look up the data source on the JNDI tree by this name when reserving a connection.
Choose the server instances or clusters where you want to deploy the data source.
Select UCP Data Source from the Data Source Type drop-down list.
From the Database Type drop-down list, select the DBMS of the database that you want to connect to. If your DBMS is not listed, select Other.
From the Database Driver drop-down list, select JDBC drivers.
Enter the connection details for the database that you want to connect to:
Configure any additional connection details that are applicable to your environment.
Click Create.
After you create a JDBC data source, you can perform administrative tasks on instances of the data source in WebLogic Remote Console.
Table 1 describes the control operations that you can perform on a JDBC data source.
Operation | Description |
---|---|
Start |
Use Start to start an individual instance of a data source. For more information, see Starting a Data Source in Administering JDBC Data Sources for Oracle WebLogic Server . |
Resume |
Use Resume to resume individual data sources that are in a For more information, see Resuming a Connection Pool in Administering JDBC Data Sources for Oracle WebLogic Server . |
Suspend |
Use Suspend to pause individual instances of a data source. When you suspend a data source, applications can no longer get a database connection from the data source. You can choose how to handle active connections:
For more information, see Suspending a Connection Pool in Administering JDBC Data Sources for Oracle WebLogic Server . |
Shutdown |
Use Shutdown to shut down individual instances of a data source. You can choose how to handle active connections:
For more information, see Shutting Down a Data Source in Administering JDBC Data Sources for Oracle WebLogic Server . |
Shrink |
Use Shrink to shrink the pool of database connections in individual instances of a data source to the minimum capacity or the current number of connections in use, whichever is greater. For more information, see Shrinking a Connection Pool in Administering JDBC Data Sources for Oracle WebLogic Server . |
Reset |
Use Reset to reset the database connections in a JDBC data source by closing and then recreating all available database connections in the pool of connections in the data source. For more information, see Resetting a Connection Pool in Administering JDBC Data Sources for Oracle WebLogic Server . |
Clear cache |
Use Clear cache to clear the statement cache for all connections in the instance of the data source. Statement caching must be enabled for the data source for WebLogic Server to cache prepared and callable statements that are used in each connection in the data source. Each connection has its own cache, but the caches for each connection are configured and managed as a group. For more information, see Managing the Statement Cache for a Data Source and Increasing Performance with the Statement Cache in Administering JDBC Data Sources for Oracle WebLogic Server . |
You can monitor a variety of statistics for each data source instance in your domain, such as the current number of database connections in the connection pool, current number of connections in use, and the longest wait time for a database connection.
In the Monitoring Tree, go to Services, then Data Sources, then JDBC Data Source Runtime MBeans.
For multi data sources, you can also go to Services, then Data Sources, then JDBC Multi Data Source Runtime MBeans to review a multi data source and its associated sub data sources.
Select the data source for which you want to see statistics.
By default, this data source page will display all of the statistics that are available for the selected data source. To refine the information, customize the table to show only relevant statistics. See Customize a Table.
When you target a JDBC data source, a new instance of the data source is created on the target. When you select a server as a target, an instance of the data source is created on the server. When you select a cluster as a target, an instance of the data source is created on all servers in the cluster.
Make sure that the JDBC drivers that you want to use to create database connections are installed on all servers on which you want to deploy the data source. See Using JDBC Drivers with WebLogic Server in Administering JDBC Data Sources for Oracle WebLogic Server.
In the Edit Tree, go to Services, then Data Sources.
Select the data source whose targets you want to edit.
On the Targets tab, select each server or cluster where you want to deploy the data source and move them under Chosen. Move unwanted servers or clusters under Available.
Click Save.
You can manually test individual instances of a data source. When you test a data source, WebLogic Server reserves a connection from the data source, tests it using the standard testing query or the query specified in Test Table Name, and then returns the database connection to the pool of connections.
It is important to regularly check that the database connections in a data source remain healthy, which helps keep your applications running properly. See Testing Data Sources and Database Connections in Administering JDBC Data Sources for Oracle WebLogic Server.
Configure testing options for the JDBC data source.
You may want to modify the default database connection testing options to better match the needs of your environment.
In the Edit Tree, go to Services, then Data Sources.
Select the data source whose connection testing options you want to edit.
Select the Connection Pool tab, then the Advanced subtab.
Modify the following options as necessary for your environment.
In the Test Table Name field, enter the name of a small table to use in a query to test database connections. The standard query is select 1 from table_name
. If you prefer to use a different query as a connection test, enter SQL
followed by a space and the SQL code you want to use to test database connections.
Enable the Test Connections on Reserve option to test the database connection before giving it to your application when your application requests a connection form the data source.
The test adds a small delay in serving the client’s request for a connection from the pool, but ensures that the client receives a viable connection.
In the Test Frequency field, specify how frequently (in seconds) WebLogic Server should perform background connection tests.
In the Seconds to Trust an Idle Pool Connection field, enter the interval (in seconds) during which, if the database connection has been used or tested, WebLogic Server will skip the connection test. This option can help reduce the overhead of connection testing and improve application performance.
Click Save and commit your changes.
In the Monitoring Tree, go to Environment, then Servers, then choose the server where the data source you want to test is deployed.
Go to Services, then Data Sources, then JDBC Data Source Runtime MBeans.
Select the data source that you want to test.
Click the Test tab.
The test will occur immediately. Test results are shown on the Test tab page.
You can secure RMI JDBC communication with a data source using a check for administrator authentication.
For more information about using JDBC over RMI, see Using the WebLogic RMI Driver (Deprecated) in Developing JDBC Applications for Oracle WebLogic Server.
If you plan to choose the Secure
option, you must first configure an SSL/TLS listen port channel. See Specify Listen Ports.
In the Edit Tree, go to Environment, then Servers. Click Show Advanced Fields.
Select an option from the RMI JDBC Security drop-down list:
Secure
: Rejects all incoming application JDBC calls over RMI by remote clients and servers. Internal interserver JDBC calls over RMI operations are allowed for the Logging Last Resource, Emulate Two-Phase Commit and One-Phase Commit Global Transactions Protocol options. The Secure
option requires that all the servers are configured with an SSL listen port. If not, all operations fail with an exception.Compatibility
: Allows uncontrolled access to DataSource objects for all incoming JDBC application calls over RMI. This setting should only be used when strong network security is in place.Disabled
: Disables all JDBC calls over RMI, including the internal RMI operations for Logging Last Resource, Emulate Two-PhaseCommit and One-Phase Commit Global Transactions Protocol options.
For more information, see Security Considerations for WebLogic RMI Drivers in Developing JDBC Applications for Oracle WebLogic Server.As of WebLogic Server 14.1.2.0.0, the default value for RMI JDBC Security is Secure
.
Click Save.
The transaction protocol for a JDBC data source determines how connections from the data source are handled during transaction processing.
In the Edit Tree, go to Services, then Data Sources.
Select the data source whose targets you want to edit.
On the Transactions tab, select an option for transaction processing from the Global Transactions Protocol drop-down list.
To understand how transaction options differ, see JDBC Data Source Transaction Options in Administering JDBC Data Sources for Oracle WebLogic Server.
If the data source uses an XA JDBC driver to create database connections, connections from the data source will support the two-phase commit transaction protocol only.
Click Save.
WebLogic Server provides an enterprise-class messaging system that fully supports the Java Messaging Service (JMS) specification and which also provides numerous extensions that go beyond the standard JMS APIs.
It is tightly integrated into the WebLogic Server platform, allowing you to build highly secure Java EE applications that can be easily monitored and administered through WebLogic Remote Console. In addition to fully supporting XA transactions, WebLogic Server messaging also features high availability through its clustering and service migration features while also providing seamless interoperability with other versions of WebLogic Server and third-party messaging vendors.
WebLogic Server messaging is comprised of these areas:
weblogic-jmsmd.xsd
schema. JMS system modules are stored in DOMAIN_HOME/config/jms
and a reference to the module is added in the domain’s configuration file as a JMSSystemResource
element. System modules are globally available for targeting to servers and clusters configured in the domain, and therefore are available to all applications deployed on the same targets and to client applications.For more information, see:
JMS servers are environment-related configuration entities that act as management containers for the queues and topics in JMS modules that are targeted to them.
The primary responsibility of a JMS server for its destinations is to maintain information on which persistent store is used for any persistent messages that arrive on the destinations, and to maintain the states of durable subscribers created on the destinations.
JMS servers also manage message paging on destinations, and optionally, can manage message and byte thresholds, as well as server-level quota for its targeted destinations. As a container for targeted destinations, any configuration or run-time changes to a JMS server can affect all the destinations that it hosts.
For more information, see Overview of JMS Servers and Configure JMS Servers and Persistent Stores in Administering JMS Resources for Oracle WebLogic Server.
In the Edit Tree, go to Services, then JMS Servers.
Click New.
Enter a name for the new JMS Server and click Create.
From the Persistent Store drop-down list, choose the store where this JMS server should store its persistent messages.
If you want to use the default persistent store provided by WebLogic Server, leave Persistent Store set to None.
If you don’t have a custom persistent store configured yet, click the More ︙ button beside Persistent Store and then select either New File Store or New JDBC Stores. Then, follow the instructions at Create a File Store or Create a JDBC Store. Select the newly created store from the Persistent Store drop-down list.
When a JMS server is targeted to a:
Migratable target, it cannot use the default store. A custom store must be configured and targeted to the same migratable target.
Dynamic cluster, it requires a custom persistent store that must target the same dynamic cluster or use the default store available on each dynamic cluster member.
Use a custom store with Distribution Policy set to Singleton
to host stand-alone (non-distributed) destinations.
Use a custom store with Distribution Policy set to Distributed
to host distributed destinations.
Configure any additional JMS server attributes. Remember to click Show Advanced Fields to see all of the options.
Click Save.
On the Target tab, from the Target drop-down list, select the server instance, cluster, or migratable target where you want to deploy the JMS server.
You can target a JMS server to a standalone WebLogic Server instance, a cluster, or a migratable target server. Migratable targets define a set of WebLogic Server instances in a cluster that can potentially host a pinned service, such as a JMS server.
If you are using a JMS server in a clustered server environment, review the guidance provided at Configure JMS Servers and Persistent Stores in Administering JMS Resources for Oracle WebLogic Server.
Click Save.
You can monitor runtime statistics for an active JMS server. You can also access runtime information for a JMS server’s destinations, transactions, connections, and server session pools.
For more information, see Monitoring JMS Statistics and Managing Messages in Administering JMS Resources for Oracle WebLogic Server.
In the Monitoring Tree, go to Environment, then Servers and choose the server where the JMS server is deployed. Then proceed to Services, then Messaging, then JMS Runtime, then JMS Servers.
If you want to compare all of the JMS servers in the domain, instead go to Services, then Messaging, then JMS Runtime, then JMS Servers.
Select the JMS server whose runtime information you want to view.
JMS resources are configured and stored as modules similar to standard Java EE modules. Such resources include queues, topics, connection factories, templates, destination keys, quota, distributed queues, distributed topics, foreign servers, and JMS store-and-forward (SAF) parameters.
System modules are globally available for targeting to servers and clusters configured in the domain, and therefore are available to all applications deployed on the same targets and to client applications.
JMS configuration resources can also be managed as deployable application modules, either with a Java EE application as a packaged module, which is available only to the enclosing application, or as a stand-alone module that provides global access to the resources defined in that module.
For more information, see Overview of JMS Modules in Administering JMS Resources for Oracle WebLogic Server.
In the Edit Tree, go to Services, then JMS Modules.
Click New.
Enter a name for the new JMS system module and click Create.
On the Target tab, from the Target drop-down list, select a server instance or cluster on which to deploy the JMS system module.
Click Save.
A new node will appear under JMS Modules in the Navigation Tree for your JMS system module.
Expand the new node for your JMS system module to see its children which are the JMS system resources that you can configure. See Configure Resources for JMS System Modules.
After creating a JMS system module, you can configure resources for the module, including stand-alone queues and topics, distributed queues and topics, connection factories, JMS templates, destination sort keys, destination quota, foreign servers, and JMS SAF (store-and-forward) parameters.
For more information, see Configurable JMS Resources in Modules in Administering JMS Resources for Oracle WebLogic Server.
In the Edit Tree, go to Services, then JMS Modules.
Select the JMS system module that you want to configure resources for.
In the Navigation Tree, as child nodes of JMS system module that you selected, click the resource that you want to configure.
The following JMS system resources are available:
Enter any required information for the selected resource.
Certain resources may encourage you to configure an appropriate subdeployment. A subdeployment is the mechanism by which targetable JMS module resources (such as queues, topics, and connection factories) are grouped and targeted to a server resource (such as JMS servers, server instances, or cluster).
Most JMS resources have additional parameters that can be modified after they are created. For example, you can modify the default message threshold values or enable message logging for queues, topics, and templates.
Click Create.
The Store-and-Forward (SAF) service enables WebLogic Server to deliver messages reliably between applications that are distributed across WebLogic Server instances.
If the destination is not available at the moment the messages are sent, either because of network problems or system failures, then the messages are saved on a local server instance, and are forwarded to the remote destination once it becomes available.
SAF agents are responsible for store-and-forwarding messages between local sending and remote receiving endpoints. A SAF agent can be configured to have only sending capabilities, receiving capabilities, or both. JMS SAF only requires a sending agent on the sending side for JMS messages. Web Services Reliable Messaging (WSRM) SAF requires both a sending agent and a receiving agent.
For more information, see SAF Service Agents in Administering the Store-and-Forward Service for Oracle WebLogic Server.
In the Edit Tree, go to Services, then SAF Agents.
Click New.
Enter a name for the new SAF agent and click Create.
From the Persistent Store drop-down list, choose the store where this SAF agent will store its persistent messages.
If you want to use the default persistent store provided by WebLogic Server, leave Persistent Store set to None
.
If you don’t have a custom persistent store configured yet, click the More ︙ button beside Persistent Store and then either New File Store or New JDBC Stores. Then, follow the instructions at Create a File Store or Create a JDBC Store.
When a SAF agent is targeted to a cluster, a SAF Agent must use a custom store with Distribution Policy set to Distributed
and is targeted to the same cluster.
A SAF Agent can use a default store only when targeting a configured (non-dynamic) cluster.
When a SAF agent is targeted to a migratable target, a custom store must be configured and targeted to the same migratable target.
From the Agent Type drop-down list, choose one of the following options:
Configure any additional SAF agent attributes. Remember to click Show Advanced Fields to see all of the options.
Click Save.
On the Target tab, from the Target drop-down list, select the server instance, cluster, or migratable target where you want to deploy the SAF agent.
When targeting a cluster, a SAF Agent must use a custom store with Distribution Policy set to Distributed
and is targeted to the same cluster.
If a SAF agent is targeted to a migratable target, it cannot be targeted to any other server targets, including an entire cluster.
Click Save.
You can view runtime information for an active SAF agent .
For more information, see Monitoring SAF Agents in Administering the Store-and-Forward Service for Oracle WebLogic Server.
In the Monitoring Tree, go to Environment, then Servers and choose the server where the SAF agent is deployed. Then proceed to Services, then Messaging, then SAF Runtime, then Agents.
If you want to see all of the SAF agents in the domain, instead go to Services, then Messaging, then SAF Runtime, then Agents.
Select the SAF agent whose runtime information you want to view.
A JMS bridge destination instance defines the actual source and target JMS bridge destinations for a bridge instance.
You need to configure a JMS bridge destination instance for each source and each target destination to be mapped to a messaging bridge instance. Therefore, when you finish defining attributes for a source JMS bridge destination, repeat these steps to configure a target JMS bridge destination.
In the Edit Tree, go to Services, then JMS Bridge Destinations.
Click New.
Enter a name for the new JMS bridge destination and click Create.
In the Adapter JNDI Name field, specify the JNDI name of the adapter used to communicate with the bridge destinations.
For more information on which adapter name to enter, see Resource Adapters in Administering the WebLogic Messaging Bridge for Oracle WebLogic Server.
In the Connection URL field, specify the connection URL for this JMS bridge destination.
In the Connection Factory JNDI Name field, specify the connection factory’s JNDI name for this JMS bridge destination.
In the Destination JNDI Name field, specify the destination JNDI name for this JMS bridge destination.
Configure any additional attributes that are applicable to your environment.
Click Save.
Repeat these steps to create a matching JMS bridge destination.
If you first created a source JMS bridge destination, then now you should create a target destination.
If you first created a target JMS bridge destination, then now you should create a source destination.
The WebLogic messaging bridge allows you to configure a forwarding mechanism between any two messaging products. You can use the messaging bridge to integrate your messaging applications. A messaging bridge instance communicates with the configured source and target bridge destinations.
For each mapping of a source destination to a target destination, whether it is another WebLogic JMS implementation, or a third-party JMS provider, you must configure a messaging bridge instance.
Each instance defines the source and target destination for the mapping, a message filtering selector, a quality of service (QOS), transaction semantics, and reconnection parameters.
For more information, see Understanding the Messaging Bridge in Administering the WebLogic Messaging Bridge for Oracle WebLogic Server.
If you haven’t already, create and configure source and target JMS bridge destinations as described in Create a JMS Bridge Destination.
In the Edit Tree, go to Services, then Messaging Bridge.
Click New.
Enter a name for the new messaging bridge instance and click Create.
From the Source Bridge Destination drop-down list, select a source destination.
From the Target Bridge Destination drop-down list, select a target destination.
Configure any additional attributes that are applicable to your environment.
Click Save.
If you plan to use the messaging bridge to access destinations on different releases of WebLogic Server, or in remote WebLogic domains, then you may need to manually implement some of the interoperability guidelines described at Interoperating with Different WebLogic Server Releases or Foreign Providers in Administering the WebLogic Messaging Bridge for Oracle WebLogic Server.
A file store is a file-based repository for storing subsystem data, such as persistent JMS messages or durable subscriber information.
A persistent store provides a built-in, high-performance storage solution for WebLogic Server subsystems and services that require persistence. For example, it can store persistent JMS messages or durable subscriber information, as well as temporarily store messages sent to an unavailable destination using the store-and-forward feature.
The persistent store also supports persistence to a JDBC-enabled database (JDBC store). See Create a JDBC Store instead.
Create a directory on your file system for the file store.
The directory must be accessible from all candidate server members. For highest reliability, use a shared storage solution that is itself highly available. For example, a storage area network (SAN) or a dual-ported SCSI disk.
In the Edit Tree, go to Services, then File Stores.
Click New.
Enter a name for the new File Store and click Create.
In the Directory field, enter the path to the directory on the file system where the file store is kept.
Modify any additional settings that are applicable to your environment.
Click Save.
On the Target tab, from the Target drop-down list, select a server instance, dynamic cluster, or migratable target on which to deploy the file store.
When selecting a dynamic cluster, the store must be targeted to the same dynamic cluster as the JMS server.
When selecting a migratable target, the store must share the same migratable target as the migratable JMS server or SAF agent.
Click Save.
A JDBC store is a JDBC-accessible database for storing subsystem data, such as persistent JMS messages and durable subscriber information.
A persistent store provides a built-in, high-performance storage solution for WebLogic Server subsystems and services that require persistence. For example, it can store persistent JMS messages or durable subscriber information, as well as temporarily store messages sent to an unavailable destination using the store-and-forward feature.
The persistent store also supports persistence to a file-based store (file store). See Create a File Store instead.
If you haven’t already, create a JDBC data source. See Data Sources.
A JDBC store must use a JDBC data source that uses a non-XA JDBC driver and has Supports Global Transactions disabled. This limitation does not remove the XA capabilities of layered subsystems that use JDBC stores. For example, WebLogic JMS is fully XA-capable regardless of whether it uses a file store or any JDBC store.
Make sure the data source is accessible to all candidate servers.
In the Edit Tree, go to Services, then JDBC Stores.
Click New.
Enter a name for the new JDBC store.
In the Prefix Name field, specify a prefix name to add to the start of the table name in this JDBC store for use with multiple instances.
From the Data Source drop-down list, select a data source.
From the Target drop-down list, select a server instance, dynamic cluster, or migratable target on which to deploy the file store.
When selecting a dynamic cluster, the store must be targeted to the same dynamic cluster as the JMS server. When selecting a migratable target, the store must share the same migratable target as the migratable JMS server or SAF agent.
Modify the rest of the settings as needed.
Click Save.
A path service is persistent map that can be used to store the mapping of a group of messages to a messaging resource, such as a member of a distributed destination or a store-and-forward agent.
Path services provide a way to enforce message ordering by pinning messages to a member of a cluster hosting servlets, distributed queue members, or store-and-forward agents.
For more information, see Using the WebLogic Path Service in Administering JMS Resources for Oracle WebLogic Server.
If you haven’t already, create and configure at least one for each of the following: a cluster, a custom persistent store, and a store-and-forward (SAF) agent. You may also want to configure JMS system modules.
See:
In the Edit Tree, go to Services, then Path Services.
Click New.
Enter a name for the new Path Service and click Create.
From the Persistent Store drop-down list, choose the store where this path service will store its persistent messages.
If you plan to target the path service to a migratable target, then it must use a custom store. If you plan to target the path service to a cluster, then you must specify a custom store with the same target, a Migration Policy set to Always
, and a Distribution Policy set to Singleton
.
If you want to use the default persistent store provided by WebLogic Server, leave Persistent Store set to None
. However, it is recommended that you use a custom store instead of the default store.
Click Save.
On the Target tab, from the Target drop-down list, select the cluster, cluster member or migratable target where you want to deploy the path service.
Click Save.
You can use WebLogic Remote Console to view objects in the Java Naming and Directory Interface (JNDI) table.
WebLogic Server implements the JNDI of the Java EE platform as a means to provide a standard, unified interface to multiple naming and directory services in an enterprise. See Understanding WebLogic JNDI in Developing JNDI Applications for Oracle WebLogic Server.
You can load WebLogic Server Java EE services and components, such as RMI, JMS, EJBs, and JDBC Data Sources, in the JNDI table. Typically, these objects are bound in the JNDI table when you configure their JNDI Name attribute and deploy them to the server.
In the Monitoring Tree, go to Environment, then Servers, then myServer.
Click the JNDI tab to see the JNDI objects.
The JNDI tab is only visible on servers that are running and reachable by the Administration Server.
A foreign JNDI provider represents a JNDI tree that resides outside of a WebLogic Server environment. This could be a JNDI tree in a different server environment or within an external Java program.
By setting up a foreign JNDI provider, you can look up and use a remote object with the same ease as using an object bound in your WebLogic Server instance. In other words, you can access local and remote objects using a single WebLogic Server connection.
In the Edit Tree, go to Services, then Foreign JNDI Providers.
Click New.
Enter a name for the new Foreign JNDI provider and click Create.
In the Initial Context Factory field, enter the name of the class that must be instantiated to access the JNDI provider. This class name depends on the JNDI provider and the vendor that are being used. The value corresponds to the standard JNDI property, java.naming.factory.initial
.
In the Provider URL field, enter the URL that WebLogic Server will use to contact the JNDI provider. This value corresponds to the standard JNDI property, java.naming.provider.url
.
In the User field, enter the name of a user authorized to access the foreign JNDI, then in Password, enter the user account’s password.
Click the Targets tab and select the servers or clusters where you want to deploy this foreign JNDI provider.
If you want to specify additional properties for the JNDI provider, click the Properties tab.
These properties will be passed directly to the constructor for the JNDI provider’s InitialContext
class.
In the Properties table, click + to add a new row.
Double-click the cell under Properties Name and enter a name for the property.
Double-click the cell under Properties Value and enter a value for the property.
Click Save.
Next, you should create foreign JNDI object links which set up a relationship between a name in your local JNDI table and the object in the foreign (remote) table.
Expand the node in the Navigation Tree for the Foreign JNDI Provider you created and open the Foreign JNDI Links child node.
Click New.
Enter a name for the foreign JNDI link.
In the Local JNDI Name field, specify the name that the remote JNDI object will be bound to in the local server’s JNDI tree and used to look up the object on the local server.
In the Remote JNDI Name field, specify the name of the remote object that will be looked up in the foreign JNDI directory.
Click Create.
You can configure two different types of XML resources for WebLogic Server.
You can create as many XML registries and entity caches as you like. However, you can only associate one of each type with a particular server instance of WebLogic Server.
For more information on how XML resources are used in WebLogic Server, see Developing XML Applications for Oracle WebLogic Server.
An XML Registry is a facility for configuring and administering the XML resources of WebLogic Server. XML resources include the default parser, transformer factories, and external entity resolution.
In particular, use an XML registry to specify:
javax.xml.parsers.DocumentBuilderFactory
and javax.xml.parsers.SaxParserFactory
interfaces; these implementing classes are used to parse XML in DOM and SAX mode, respectively.javax.xml.transform.TransformerFactory
interface, used to transform XML documents.You can create as many XML Registries as you like; however, you can associate only one XML registry with a particular instance of WebLogic Server.
If an instance of WebLogic Server does not have an XML registry associated with it, then the default parser and transformer are used when parsing or transforming documents. The default parser and transformer are those included in the JDK.
Once you associate an XML registry with an instance of WebLogic Server, all its configuration options are available for XML applications that use that server.
In the Edit Tree, go to Services, then XML Registries.
Click New.
Enter a name for the XML registry and click Create.
If you don’t plan to use the default parser and transformer, you must specify your alternative settings.
In the Document Builder Factory field, enter the fully qualified name of the class that implements the javax.xml.parsers.DocumentBuilderFactory
interface.
In the SAX Parser Factory field, enter the fully qualified name of the class that implements the javax.xml.parsers.SaxParserFactory
interface.
In the Transformer Factory field, enter the fully qualified name of the class that implements the javax.xml.transform.TransformerFactory
interface.
Click Save.
Next, you must associate the XML registry with a WebLogic Server instance. See Target an XML Registry to a Server.
A WebLogic Server can only have one XML registry associated with it. However, you can target the same XML registry to multiple WebLogic Server instances.
If you haven’t done so already, create an XML registry. See Create an XML registry.
In the Edit Tree, go to Environment, then Servers.
Choose the server to which you want the XML registry.
Enable Show Advanced Fields and then from the XML Registry drop-down list, select the XML registry that you want to target to this server.
Click Save.
You can specify that WebLogic Server should cache external entities that are referenced with a URL or a pathname relative to the main directory of the EAR archive, either at server startup or when the entity is first referenced. You specify this by first creating an XML entity cache and then specifying when it should be cached for the particular entity.
Caching the external entity saves the remote access time and provides a local backup in the event that the Administration Server cannot be accessed while an XML document is being parsed, due to the network or the Administration Server being down.
In the Edit Tree, go to Services, then XML Entity Caches.
Click New.
Enter a name for the XML entity cache and click Create.
Update the configuration options for the new XML entity cache as needed.
Click Save.
Next, you must associate the XML entity cache with a WebLogic Server instance. See Target an XML Entity Cache to a Server.
A WebLogic Server instance can only have one XML entity cache associated with it.
If you haven’t already done so, create an XML entity cache. See Create an XML Entity Cache.
In the Edit Tree, go to Environment, then Servers.
Choose the server to which you want the XML entity cache.
Enable Show Advanced Fields and then from the XML Entity Cache drop-down list, select the XML entity cache that you want to target to this server.
Click Save.
You can configure a mail server or establish user credentials for an existing mail server. Mail sessions and the JavaMail API do not provide mail server functions. They merely enable applications to send and receive data from an existing mail server.
JavaMail APIs provide applications and other Java EE modules with access to Internet Message Access Protocol (IMAP) and Simple Mail Transfer Protocol (SMTP) capable mail servers on your network or the internet.
In the reference implementation of JavaMail, applications must instantiate javax.mail.Session
objects, which designate mail hosts, transport and store protocols, and a default mail user for connecting to a mail server. You can use WebLogic Remote Console to create a mail session, which configures a javax.mail.Session
object and registers it in the WebLogic Server JNDI table. Applications access the mail session through JNDI instead of instantiating their own javax.mail.Session
object.
In the Edit Tree, go to Services, then Mail Sessions.
Click New.
Enter a Name and a JNDI Name for the mail session.
Applications use the JNDI Name to look up the mail session. For example, if you enter myMailSession
as the JNDI name, applications perform the following look up:
InitialContext ic = new InitialContext();
Session session = (Session) ic.lookup("myMailSession");
Click Create.
In the Session Username field, specify the user account to use to create an authenticated JavaMail session. Then, in the Session Password field, enter the password for the user account.
If you do not specify a user account, it is assumed the session is not to be authenticated.
On the Targets tab, move the servers or clusters that you want this mail session to target over to Chosen.
The mail session is only registered in the JNDI table for the targeted WebLogic Server instances.
When you target all or part of a cluster, WebLogic Remote Console initiates a two-phase deployment. In general, such a deployment ensures that if the deployment fails for one active server, it fails for all active servers.
Click Save.
You can specify additional properties for connecting to an existing mail server.
Only specify a property if you want to override the default value. If you do not specify any properties, the mail session will use the JavaMail default property values.
On the Java Mail Properties tab, in the Java Mail Properties table, click + to add a new row.
Double-click the cell under Properties Name and enter a name for the property.
Double-click the cell under Properties Value and enter a value for the property.
Click Save.
Table 2 describes the valid properties and default values, derived from the JavaMail API Design Specification.
Property | Description | Default |
---|---|---|
mail.store.protocol
|
Protocol for retrieving email. For example, |
imap
|
mail.transport.protocol
|
Protocol for sending email. For example, |
smtp
|
mail.host
|
The name of the mail host machine. For example, |
Local machine |
mail.user
|
Name of the default user for retrieving email. For example, |
Value of the user.name Java system property. |
mail.protocol.host
|
The mail host for a specific protocol. You can set mail.SMTP.host and mail.IMAP.host to different machine names. For example, |
Value of the mail.host property. |
mail.protocol.user
|
Protocol-specific default user name for logging into a mailer server. For example, |
Value of the mail.user property. |
mail.protocol.user
|
The default return address. For example, |
username@host
|
mail.debug
|
Set to True to enable JavaMail debug output. |
False
|
Applications can override any properties set in the mail session by creating a Properties
object containing the properties you want to override. See Programming JavaMail with WebLogic Server in Developing Applications for Oracle WebLogic Server.
In WebLogic Server, you can set many options that affect transaction processing at the domain level so that they apply to all servers in the domain.
In the Edit Tree, go to Services, then JTA.
Specify new values for any or all of the available options. Click Show Advanced Fields to show all of the options.
Click Save.
You can monitor transactions and transaction statistics.
For more information, see Monitoring Transactions in Developing JTA Applications for Oracle WebLogic Server.
In the Monitoring Tree, go to Services, then Transactions, then JTA Runtime to see statistics for all transactions coordinated by server.
If you want to see the transaction statistics for only one server, click the server row in the table.
You can also expand the child nodes under JTA Runtime to view transaction details by transaction name or by resource, details about current transactions, or details about transaction recovery performed by the server.
You can view in-progress transactions coordinated by the selected server.
In the Monitoring Tree, go to Environment, then Servers, then choose the server whose transactions you want to view.
Under the server node, go to Services, then Transactions, then JTA Runtime.
Click the Transactions tab to see current transactions for the selected server.
Local domain security for JTA establishes trust between servers within a domain so that global transactions may occur across secure communication channels.
Local domain security extends the cross-domain protocol and its terminology and configuration reflect that origin. Nevertheless, local domain security is only applicable to local (intra-) domain communication.
If you need to secure JTA communication across separate domains, you should configure cross-domain security or the security interoperability mode. See How to Determine the Communication to Use for Inter-Domain Transactions in Developing JTA Applications for Oracle WebLogic Server.
In the Edit Tree, go to Services, then JTA.
Click Show Advanced Controls.
Turn on the Local Domain Security Enabled option.
To reduce the impact on performance, WebLogic Server caches the authenticated subject. If you want to modify the cache settings for your environment, change the following settings:
Click Save and then commit your changes.
Create a user for local domain security and assign it to the CrossDomainConnectors
group. See Create a User.
This user will be authorized to perform all JTA communication between servers in the domain.
Configure a local domain security credential mapping for the local domain security user. Use the default credential mapping provider or, if you want to configure your own credential mapping provider, see Configure a Credential Mapping Provider.
In the Security Data Tree, go to Realms, then myRealm, then Credential Mappers, then Remote Resources.
Click New.
Turn on the Use cross-domain protocol option.
In the Remote Domain field, enter the name of the local domain.
In the Remote User field, enter the username of the user you configured in step 5. Then, in the Remote Password field, enter their password.
Click Create.
Local domain security is now enabled for JTA communication.
The security interoperability (interop) mode determines the security subject for JTA communication between servers.
If local- or cross-domain security are enabled, they supersede the security interop mode.
In the Edit Tree, go to Services, then JTA.
Click Show Advanced Controls.
From the Security Interoperability Mode drop-down list, select a mode:
performance
mode. See Configure the Domain-Wide Administration Port.Click Save.