Administrators Guide For Oracle Application Develpment Framework
Administrators Guide For Oracle Application Develpment Framework
August 2012
Documentation for Oracle Application Development
Framework (Oracle ADF) administrators that describes how
to deploy, monitor, and configure ADF applications.
Oracle Fusion Middleware Administrator's Guide for Oracle Application Development Framework 11g
Release 2 (11.1.2.3.0)
E16179-04
Copyright © 2009, 2012 Oracle and/or its affiliates. All rights reserved.
Contributors: Lynn Munsinger, Duncan Mills, Dipankar Bajpai, Harry Hsu, Ray Maslinski
This software and related documentation are provided under a license agreement containing restrictions on
use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your
license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license,
transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse
engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is
prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If
you find any errors, please report them to us in writing.
If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it
on behalf of the U.S. Government, the following notice is applicable:
U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data
delivered to U.S. Government customers are "commercial computer software" or "commercial technical data"
pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As
such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and
license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of
the Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software
License (December 2007). Oracle America, Inc., 500 Oracle Parkway, Redwood City, CA 94065.
This software or hardware is developed for general use in a variety of information management
applications. It is not developed or intended for use in any inherently dangerous applications, including
applications that may create a risk of personal injury. If you use this software or hardware in dangerous
applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other
measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages
caused by use of this software or hardware in dangerous applications.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of
their respective owners.
Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks
are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD,
Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced
Micro Devices. UNIX is a registered trademark of The Open Group.
This software or hardware and documentation may provide access to or information on content, products,
and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly
disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle
Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your
access to or use of third-party content, products, or services.
Contents
iii
2.2.4 How to Create a JDBC Data Source for IBM WebSphere Application Server ............ 2-9
2.3 Deploying Using Oracle Enterprise Manager Fusion Middleware Control ...................... 2-9
2.4 Deploying Using Scripting Commands................................................................................... 2-9
2.5 Deploying Using Scripts and Ant.......................................................................................... 2-10
2.6 Deploying Using the Application Server Administration Tool ........................................ 2-10
iv
4.2.5.1 Description .................................................................................................................... 4-4
4.2.5.2 Syntax ............................................................................................................................. 4-4
4.2.5.3 Example.......................................................................................................................... 4-5
4.2.6 exportJarVersions ................................................................................................................ 4-6
4.2.6.1 Description .................................................................................................................... 4-6
4.2.6.2 Syntax ............................................................................................................................. 4-6
4.2.6.3 Example.......................................................................................................................... 4-6
4.2.7 exportApplicationJarVersions ........................................................................................... 4-6
4.2.7.1 Description .................................................................................................................... 4-6
4.2.7.2 Syntax ............................................................................................................................. 4-6
4.2.7.3 Example.......................................................................................................................... 4-7
4.2.8 exportApplicationSelectedJarVersions ............................................................................. 4-7
4.2.8.1 Description .................................................................................................................... 4-7
4.2.8.2 Syntax ............................................................................................................................. 4-7
4.2.8.3 Example.......................................................................................................................... 4-7
v
B.2.5.2 Syntax ............................................................................................................................ B-4
B.2.5.3 Example......................................................................................................................... B-5
vi
Preface
Audience
This document is intended for system administrators who need to deploy, manage,
monitor, and configure Oracle ADF applications using the Oracle Application
Development Framework (Oracle ADF).
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.
Related Documents
For more information, see the following documents:
Oracle Fusion Middleware Fusion Developer's Guide for Oracle Application Development
Framework
Oracle Fusion Middleware Administrator's Guide
Oracle Fusion Middleware Web User Interface Developer's Guide for Oracle Application
Development Framework
Oracle Fusion Middleware Desktop Integration Developer's Guide for Oracle Application
Development Framework
Oracle Fusion Middleware Security Guide
Oracle Fusion Middleware WebLogic Scripting Tool Command Reference
Oracle Fusion Middleware High Availability Guide
Oracle Fusion Middleware Third-Party Application Server Guide
vii
Oracle JDeveloper 11g Online Help
Oracle JDeveloper 11g Release Notes, included with your JDeveloper 11g installation, and
on Oracle Technology Network
Oracle Fusion Middleware Java API Reference for Oracle ADF Model
Oracle Fusion Middleware Java API Reference for Oracle ADF Controller
Oracle Fusion Middleware Java API Reference for Oracle ADF Lifecycle
Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
Oracle Fusion Middleware JavaScript API Reference for Oracle ADF Faces
Oracle Fusion Middleware Java API Reference for Oracle ADF Data Visualization
Components
Oracle Fusion Middleware Java API Reference for Oracle ADF Share
Oracle Fusion Middleware Java API Reference for Oracle ADF Business Components Browser
Oracle Fusion Middleware Java API Reference for Oracle Generic Domains
Oracle Fusion Middleware interMedia Domains Java API Reference for Oracle ADF Business
Components
Oracle Fusion Middleware Java API Reference for Oracle Metadata Service (MDS)
Conventions
The following text conventions are used in this document:
Convention Meaning
boldface Boldface type indicates graphical user interface elements associated
with an action, or terms defined in text or the glossary.
italic Italic type indicates book titles, emphasis, or placeholder variables for
which you supply particular values.
monospace Monospace type indicates commands within a paragraph, URLs, code
in examples, text that appears on the screen, or text that you enter.
viii
What's New in This Guide in Release
11.1.2.3.0
For Release 11.1.2.3.0, this guide has been updated in several ways. The following
table lists the sections that have been added or changed.
For changes made to Oracle JDeveloper and Oracle Application Development
Framework (Oracle ADF) for this release, see the What’s New page on the Oracle
Technology Network at
http://www.oracle.com/technetwork/developer-tools/jdev/documenta
tion/index.html.
ix
x
Part I
Part I Understanding Oracle ADF
This chapter describes the administrative tasks you can perform and the tools you can
use to deploy, manage, monitor, and configure applications developed for the Oracle
Application Development Framework (Oracle ADF).
This chapter includes the following sections:
■ Section 1.1, "Introducing Oracle ADF"
■ Section 1.2, "Oracle ADF Architecture"
■ Section 1.3, "Administering Oracle ADF Applications"
This chapter describes how to deploy Oracle ADF applications packaged as an EAR
file to a target application server. It also describes how to use scripts and Ant to
automate the deployment process. This chapter focuses on deploying ADF
applications for production and later stage testing. For information about deploying
ADF applications for development, see the Oracle Fusion Middleware Developer's Guide
for Oracle Application Development Framework.
For deploying to third-party application servers, such as IBM WebSphere Application
Server, see the Oracle Fusion Middleware Third-Party Application Server Guide.
This chapter includes the following sections:
■ Section 2.1, "Introduction to Deploying ADF Applications"
■ Section 2.2, "Preparing the Standalone Application Server for Deployment"
■ Section 2.3, "Deploying Using Oracle Enterprise Manager Fusion Middleware
Control"
■ Section 2.4, "Deploying Using Scripting Commands"
■ Section 2.5, "Deploying Using Scripts and Ant"
■ Section 2.6, "Deploying Using the Application Server Administration Tool"
testing purposes using JDeveloper, see the Oracle Fusion Middleware Developer's Guide
for Oracle Application Development Framework.
If your application uses customization, you may need to set up the MDS repository in
the application server. For more information about MDS, see the Oracle Fusion
Middleware Administrator's Guide.
Note: Developers, Test, and QA personnel may also use these tools
and the methods in this chapter to deploy ADF applications to staging
application servers.
■ After WebSphere Application Server has the ADF runtime installed, you can
create a new WebSphere cell or you can extend an existing WebSphere cell for
ADF.
■ If the servers are on a different node than the Deployment Manager, you must
perform additional configuration tasks for the servers to enable them to host ADF
applications.
■ An ADF application will use either a JDBC data source or a JDBC URL to access its
data. You can configure WebSphere Application Server with the data source using
the WebSphere Administrative Console.
2.2.1 How to Install the ADF Runtime to the Application Server Installation
The application server requires the ADF runtime to run ADF applications.
Installing the ADF runtime is not required if you are using JDeveloper to run
applications in Integrated WebLogic Server.
For WebLogic Server, you can install the ADF runtime using the following installers:
■ Oracle Fusion Middleware 11g Application Developer Installer: Installs the ADF
runtime and Oracle Enterprise Manager. You should use the Oracle Fusion
Middleware 11g Application Developer Installer if you want to use Oracle
Enterprise Manager to manage standalone ADF applications (without Oracle SOA
Suite or Oracle WebCenter components). You must have already installed Oracle
WebLogic Server before you can use this installer.
Note: The Oracle 11g Installer for JDeveloper can also be used to
install the ADF runtime to the application server installation.
However, it does not include all the components that are typically
needed for production and full test environments. Therefore, this
installer should not be used for anything other than for development
purposes.
For WebSphere Application Server, you can install the ADF runtime using the
following installer:
■ Oracle Fusion Middleware 11g Application Developer Installer: Installs the ADF
runtime and Oracle Enterprise Manager. You must have already installed
WebSphere Application Server before you can use this installer. For more
information, see the Oracle Fusion Middleware Third-Party Application Server Guide.
2.2.1.1 Installing the ADF Runtime into an Existing WebLogic Server Installation
Using the Oracle Fusion Middleware Application Developer Installer
You can use the Oracle Fusion Middleware 11g Application Developer Installer to
install the ADF runtime and Enterprise Manager.
Install Oracle WebLogic Server. You must also have obtained the Oracle Fusion
Middleware 11g Application Developer Installer.
Use the instructions in the Oracle Fusion Middleware Installation Planning Guide to obtain
the software, start the installer, and to complete the installation.
In the installer you will perform several tasks including:
■ Adding any software updates
■ Selecting the WebLogic Server directory for installation
2.2.1.2 Installing the ADF Runtime into an Existing WebSphere Application Server
Installation Using the Oracle Fusion Middleware Application Developer Installer
You can use the Oracle Fusion Middleware 11g Application Developer Installer to
install the ADF runtime and Enterprise Manager.
Before you begin, you must already have a WebSphere Application Server installation.
Use the instructions in the Oracle Fusion Middleware Installation Planning Guide to obtain
the software and to start the installer.
In the installer you will perform several tasks including:
■ Adding any software updates
■ Selecting the WebSphere directory for installation
■ Verifying installation information
After you have installed the ADF runtime, configure the cells and perform other tasks
as described in the Oracle Fusion Middleware Third-Party Application Server Guide and
the Oracle Fusion Middleware Configuration Guide for WebSphere.
2.2.2.2 Extending the Oracle WebLogic Server Domain for Oracle ADF
You can now start Oracle WebLogic Server by running the command-line script
ORACLE_HOME\user_projects\domains\domain_
name\bin\startWebLogic.cmd, and you can stop the server using the
stopWebLogic.cmd script in the same directory. For Linux platforms, use
\bin\startWebLogic.sh and stopWebLogic.sh respectively.
Access the Oracle WebLogic Server Administration Console using the URL
http://localhost:7001/console.
5. On the local host, pack the Managed Server configuration information into a JAR
and then copy the JAR to the remote host. This JAR contains the JRF template
information.
For example,
cd ORACLE_HOME/oracle_home/common/bin
cp ../../../base_domain_managed.jar remote_machine_ORACLE_HOME/
If the Managed Server was created after the domain was, you must delete the
entire domain configuration directory of the Managed Server before running
unpack.
7. On the remote host, start the Node Manager.
For example,
cd ORACLE_HOME/wlserver_10.3/server/bin
./startNodeManager.sh
8. On the remote host, if the Managed Server was not created with the JRF template
applied, run the applyJRF WLST command to extend the Managed Server with
the JRF template.
Also, if the Managed Server was created after the domain was, you must delete
the entire domain configuration directory of the Managed Server before running
applyJRF.
9. On the both hosts, start the Managed Servers.
For example,
cd ORACLE_HOME/user_projects/domains/base_domain/bin
./startManagedWebLogic.sh ManagedServer_2 http://<adminServerHost>:7001
2.2.3 How to Create a JDBC Data Source for Oracle WebLogic Server
Use the Oracle WebLogic Server Administration Console to set up a JDBC data source
in the WebLogic Server instance for your applications.
Or, from the Application Server Navigator, right-click an Oracle WebLogic Server
instance and choose Launch Admin Console.
2. Start the Oracle WebLogic Server Administration Console by choosing Oracle
Fusion Middleware > User Projects > Domain > Admin Server Console from the
Windows Start menu.
3. Log in to the Oracle WebLogic Server Administration Console.
4. In the WebLogic Server Administration Console page, select JDBC > Data
Sources.
5. Click New.
6. In the JDBC Data Source Properties page:
■ In the Name field, enter the name of the JDBC data source.
■ In the JNDI field, enter the name of the connection in the form
jdbc/connection DS.
■ For the Database Type, select Oracle.
■ For the Database Driver, select Oracle Driver (thin), and click Next.
7. In the Transactions Options page, accept the default options and click Next.
8. In the Connection Properties page:
■ For Database Name, enter the Oracle SID. For example, orcl.
2.2.4 How to Create a JDBC Data Source for IBM WebSphere Application Server
To configure a JDBC data source for WebSphere Application Server, see the Oracle
Fusion Middleware Third-Party Application Server Guide.
There are specific wsadmin commands (WebSphere Application Server) for working
with ADF applications. For a list of these commands, see Appendix B, "wsadmin
Command Reference for ADF Applications."
This chapter describes how to monitor ADF application performance. It also describes
how to configure an ADF application’s properties after it has been deployed to Oracle
WebLogic Server using Fusion Middleware Control. It also describes configuration
tasks required for applications deployed to IBM WebSphere Application Server.
This chapter includes the following sections:
■ Section 3.1, "Introduction to ADF Application Monitoring and Configuration"
■ Section 3.2, "Monitoring Performance Using Fusion Middleware Control"
■ Section 3.3, "Configuring Application Properties Using Fusion Middleware
Control"
■ Section 3.4, "Configuring Application Properties Using the MBean Browser"
■ Section 3.5, "How to Edit Credentials Deployed with the Application"
■ Section 3.6, "Diagnosing Problems using the Diagnostic Framework"
■ Section 3.7, "Viewing Application Metric Information with DMS SPY"
■ Section 3.8, "Configuring WebSphere Application Server"
By default, the post-deployment changes made using MBeans are stored in MDS with
a layer name of adfshare and a layer value of adfshare. You can provide a specific
layer name by specifying the adfAppUId property in the application’s
adf-config.xml.
Example 3–1 shows the adf-properties-child code in adf-config.xml.
If you are moving data between MDS repositories (for example, from a test to a
production system), use the MDS exportMetadata and importMetadata
commands as described in the chapter on managing the Oracle metadata repository in
the Oracle Fusion Middleware Administrator's Guide and in the chapter on Metadata
Services custom WLST commands in the Oracle Fusion Middleware WebLogic Scripting
Tool Command Reference.
Use the Application Module Pools page to display active application module
pools, a collection of application module instances of the same type. The
Application Module Pools page:
■ Displays size and performance information about pool connections
■ Specifies settings that affect how application module pools behave
■ Specifies credential information for the application module pools
Element Description
Module Displays the active application module pool name, for example,
model.BugTest5PM.
Click a module to display additional information about it, for example,
Lifetime, State Management, Pool Use, Application Module Pools page.
Requests Displays the number of requests that were made for the application during
the selected time interval.
Average Displays the average time (in milliseconds) required to complete a request
Creation Time for the application module pool.
(ms)
Maximum Displays the longest time (in milliseconds) required to complete any of the
Creation Time requests for the application module pool.
(ms)
Free Instances Displays the number of available instances of the application module pool.
By default, Task Flow Performance charts on the tab display data for the
preceding 15 minutes. To set a different interval, click the time at the top of the
page or move the slider to another interval, for example, from 08:00 AM to 08:30
AM.
7. Click TF Charts.
■ Request Processing Time displays the average request processing time for all
ADF task flows that execute during the selected interval.
■ Active Task Flows displays the number of active instances of each ADF task
flow during the selected interval.
If the application module uses data sources, you can configure the data sources by
clicking Edit Datasource from the Core tab.
The ADF Business Components configurations page is arranged with the following
sections or tabs:
■ Application Modules section
■ Pooling and Scalability tab - Application Pool Properties
■ Pooling and Scalability tab - Connection Pool Properties
■ Core tab
■ Database Properties tab
■ Security Properties tab
Element Description
Application Displays the active application module name. Click the module name to
Modules display the applications in the module.
Element Description
AmpoolDoampooling Select to enable application module pooling by default.
Whenever you deploy your application in a production
environment the default setting of
jbo.ampool.doampooling is true and is the way
you will run your application. But, as long as you run
your application in a test environment, setting the
property to false can play an important role in your
testing. When this property is false, there is effectively
no application pool.
AmpoolWritecookietoclient Select to write the SessionCookie value to the client
browser.
Element Description
AmpoolMaxavailablesize Enter the maximum number of available application
modules that should be referenced by an application
pool. This is the ideal maximum number of available
application module instances in the pool when not under
abnormal load.
When the pool monitor wakes up to do resource cleanup,
it will try to remove available application module
instances to bring the total number of available instances
down to this ideal maximum. Instances that have been
not been used for a period longer than the idle instance
timeout will always get cleaned up at this time, and then
additional available instances will be removed, if
necessary to bring the number of available instances
down to this size.
The default maximum available size is 25 instances.
Configure this value to leave the maximum number of
available instances desired after a resource cleanup. A
lower value generally results in more application module
instances being removed from the pool on a cleanup.
AmpoolSessioncookiefactoryclass Enter a custom session cookie factory implementation.
This class creates the session cookies that allow clients to
retrieve application modules in stateful mode
AmpoolMaxinactiveage Enter the maximum amount of time (in milliseconds)
that an application module may remain inactive before it
is removed from the pool.
The default is 600000 milliseconds of idle time (which is
600 seconds, or ten minutes). A lower value results in
more application module instances being marked as
candidates for removal at the next resource cleanup. A
higher value results in fewer application module
instances being marked as candidates for removal at the
next resource cleanup.
AmpoolMinavailablesize Enter the minimum number of available application
modules that should be referenced by an application
pool. This is the minimum number of available
application module instances that the pool monitor
should leave in the pool during a resource cleanup
operation.
Set to 0 (zero) if you want the pool to shrink to contain
no instances when all instances have been idle for longer
than the idle timeout after a resource cleanup.
The default is 5 instances.
Doconnectionpooling Select if the application pool should release the
application module connection upon checkin. This forces
the application module pool to release the JDBC
connection used each time the application module is
released to the pool.
Recyclethreshold Enter the maximum number of application module
instances in the pool that attempt to preserve session
affinity for the next request made by the session. This
session used them last before releasing them to the pool
in managed-state mode.
AmpoolConnectionstrategyclass Enter a custom connection strategy implementation, for
example
oracle.jbo.common.ampool.DefaultConnection
Strategy. This is the class that implements the
connection strategy.
Element Description
Maxpoolcookieage Enter the maximum browser cookie age for pooled
application module sessions. This is the maximum age of
the browser cookies used to help clients retrieve stateful
application modules. If these cookies do not time out, the
value is -1. It is recommended that the maximum cookie
age be always set less than or equal to the session cookie
age. It is set that way by default (both are -1). If you
change the maximum cookie age, then you must also
change the session cookie age to the same value.
AmpoolInitpoolsize Enter an initial number of application module instances
to be created in a pool. This is the number of application
module instances to created when the pool is initialized.
The default is 0 (zero) instances. A general guideline is to
configure this value to 10% more than the anticipated
number of concurrent application module instances
required to service all users.
Creating application module instances during
initialization takes the CPU processing costs of creating
application module instances during the initialization
instead of on-demand when additional application
module instances are required.
AmpoolDynamicjdbccredentials Select if an application pool may support multiple JDBC
users. This property enables additional pooling lifecycle
events to allow developer-written code to change the
database credentials (username/password) each time a
new user session begins to use the application module.
This feature is enabled by default (true); however this
setting is a necessary but not sufficient condition to
implement the feature. The complete implementation
requires additional developer-written code.
AmpoolIsuseexclusive Select if application module use is exclusive.
AmpoolResetnontransactionalstat Select if the nontransactional application module state
e should be reset upon an unmanaged checkin. This forces
the application module to reset any nontransactional
state like view object runtime settings, JDBC prepared
statements, bind variable values, and so on. when the
application module is released to the pool in unmanaged,
or "stateless" mode.
This feature is enabled by default (true). Disabling this
feature can improve performance; however, since it does
not clear bind variable values, your application needs to
ensure that it systemically sets bind variable values
correctly. If your application does not do so, and this
feature is disabled, then it is possible for one user to see
data with another user’s bind variable values.
AmpoolMaxpoolsize Enter the maximum number of application module
instances that the pool can allocate. The pool will never
create more application module instances than this limit
imposes.
The default is 5000 instances. A general guideline is to
configure this value to 20% more than the initial pool size
to allow for some additional growth. If the value is set
too low, then some users may see an error when they
tries to access the application if no application module
instances are available.
Element Description
AmpoolTimetolive Enter the connection pool time to live for connection
instances. This is the number of milliseconds after which
an application module instance in the pool is considered
as a candidate for removal during the next resource
cleanup, regardless of whether it would bring the
number of instances in the pool below
minavailablesize.
The default is 3600000 milliseconds of total time to live
(which is 3600 seconds, or one hour). The default value is
sufficient for most applications.
AmpoolMonitorsleepinterval Enter the length of time (in milliseconds) between pool
resource cleanups.
Dofailover Select if failover should occur upon checkin to the
application module pool. This feature enables eager
passivation of pending transaction state each time an
application module is released to the pool in managed
state mode. Web applications should set enable failover
(true) to allow any other application module to activate
the state at any time. This feature is disabled by default
(false).
Best Practice: When enabling application module state
passivation, a failure can occur when Oracle WebLogic
Server is configured to forcibly release connection back
into the pool. A failure of this type produces a
SQLException (Connection has already been closed) that
is saved to the server log. The exception is not reported
through the user interface. To ensure that state
passivation occurs and users' changes are saved, set an
appropriate value for the
weblogic-application.xml deployment descriptor
parameter
inactive-connection-timeout-seconds on the
<connection-check-params> pool-params element.
Setting the deployment descriptor parameter to several
minutes, in most cases, should avoid forcing the inactive
connection timeout and the resulting passivation failure.
Adjust the setting as needed for your environment.
poolClassName Enter the custom application pool implementation class.
Show Connection Pool Properties Expand to display fields containing current advanced
connection pool properties, or enter new values in the
fields.
Hide Connection Pool Properties Click to hide all Connection Pool Properties fields.
Element Description
Initpoolsize Enter the initial size of a JDBC connection pool. This is
the number of JDBC connection instances created
when the pool is initialized.
The default is an initial size of 0 instances.
Element Description
Maxpoolsize Enter the maximum size of a JDBC connection pool.
This is the maximum number of JDBC connection
instances that the pool can allocate. The pool will
never create more JDBC connections than this allows.
The default is 5000 instances.
Poolmaxinactiveage Enter the maximum amount of time (in milliseconds)
that a connection may remain inactive before it is
removed from the pool. This is the number of
milliseconds after which to consider an inactive
application module instance in the pool as a candidate
for removal during the next resource cleanup.
The default is 600000 milliseconds of idle time (which
is 600 seconds, or ten minutes). A lower value results
in more application module instances being marked as
candidates for removal at the next resource cleanup. A
higher value results in fewer application module
instances being marked as candidates for removal at
the next resource cleanup.
Poolmaxavailablesize Enter the maximum number of available connections
that should be referenced by a connection pool. This is
the ideal maximum number of JDBC connection
instances in the pool when not under abnormal load.
When the pool monitor wakes up to do resource
cleanup, it will try to remove available JDBC
connection instances to bring the total number of
available instances down to this ideal maximum.
Instances that have been not been used for a period
longer than the idle instance timeout will always get
cleaned up at this time, and then additional available
instances will be removed, if necessary, to bring the
number of available instances down to this size.
The default is an ideal maximum of 25 instances
(when not under load).
Poolrequesttimeout Enter the time (in milliseconds) that a request should
wait for a JDBC connection to be released to the
connection pool.
Poolminavailablesize Enter the minimum number of available connections
that should be referenced by a connection pool. This is
the minimum number of available JDBC connection
instances that the pool monitor should leave in the
pool during a resource cleanup operation.
Set to zero (0) if you want the pool to shrink to contain
no instances when instances have been idle for longer
than the idle time-out.
The default is to not let the minimum available size
drop below 5 instances.
Poolmonitorsleepinterval Enter the time (in milliseconds) that the connection
pool monitor should sleep between pool checks. This
is the length of time in milliseconds between pool
resource cleanup.
While the number of application module instances in
the pool will never exceed the maximum pool size,
available instances which are candidates for getting
removed from the pool do not get "cleaned up" until
the next time the application module pool monitor
wakes up to do its job.
Element Description
ConnectionPoolManager Enter the implementation of the connection pool
manager which will be used.
Pooltimetolive Enter the application pool time to live (in
milliseconds) for application module instances.
Core Tab
Use the core tab to view or edit core properties for the application module.
Element Description
DefaultLanguage Enter the default business components session
language, which is part of the locale.
Passivationstore Enter the type of store, file, or database file that
should be used for application module passivation.
database is the default choice. While it may be a
little slower than passivating to file, it is by far the
most reliable choice.
file may offer faster performance because access to
the file is faster then access to the database.
Default Country Enter the default business components session
country, which is part of the Locale.
AssocConsistent Select if entity row set associations have been kept
consistent.
XmlValidation Select to determine the validation mode for the XML
parser. If selected, the XML parser uses strict XML
validation.
DatabaseConfig Database Configuration.
Name Enter the name of the application module.
OracleSchema Enter the name of the schema in which the business
components runtime libraries are deployed.
Show Advanced Properties Expand to display fields containing current advanced
core properties, or enter new values in the fields.
PersMaxRowsPerNode Enter the maximum size of a node for view row
spillover.
PassivationTrackInsert If selected when an application module is activated, it
will be updated to include rows inserted into the
database while it was passive.
ApplicationPath For EJB deployment, enter the JNDI path to the
business components.
ViewlinkConsistent If selected, the view object row sets retrieved through
view link accessors will include rows that have been
added, even if these changes have not been posted to
the database.
ConnectionMode Deprecated property, formerly used for deployment
to VisiBroker. VisiBroker deployment is no longer
supported.
Maxpassivationstacksize Enter the maximum size of the passivation stack
(default is 10)
Element Description
TxnHandleafterpostexc Select to cause ADF Business Components to take a
transaction snapshot before beginning a commit
operation. If an exception is thrown after changes
have been posted to the database, ADF Business
Components will use this snapshot to roll back the
in-memory state of your application module to the
point before commit operation began.
SnapshotstoreUndo Enter the target for undo snapshots
{transient|persistent}
Project Enter the name of the project containing extended
business components to be substituted for base ones,
if Factory-Substitution-List is not empty.
Tmpdir Enter the directory for temporary Oracle ADF
Business Components files.
DeployPlatform The deployment platform: select LOCAL, EJB_IAS
(for an EJB deployed to Oracle Application Server), or
WLS (for an EJB deployed to Oracle WebLogic
Server).
PersMaxActiveNodes Enter the maximum number of nodes that will be
cached in memory for view row spillover.
Saveforlater Select Save snapshots for the lifetime of the
transaction.
ViewCriteriaAdapter Enter a custom class that will be used by view objects
to convert between view criteria and view object SQL.
Connectfailover Select business components transparent JDBC
connection failover
Hide Advanced Properties Click to hide all Connection Pool Properties fields.
Element Description
MaxCursors Enter the maximum number of cursors to be used by
the session. This is the maximum number of cursors the
business components may have open. The framework
will clean up free JDBC statements as the number of
cursors approaches this number.
Sql92DbTimeQuery Enter the database system time SQL query string.
SQLBuilder Enter the SQLBuilder implementation (Oracle, OLite,
DB2, or SQL92 for other SQL92-compliant databases).
Sql92LockTrailer Enter the SQL statement trailer clause for locking.
JdbcTrace Select to trace all JDBC activity with lines flagged by +
PropertyConstants.JDBC_MARKER +
oracleDefineColumnLength Enter the column length for all JDBC CHAR or
VARCHAR2 columns. Use as_bytes to make column
precision specifications in bytes. Use as_chars to
make column precision specifications in characters.
This is important for larger character sets, such as
Unicode.
Element Description
Sql92JdbcDriverClass Enter the name of the class implementing JDBC Driver,
for example, sun.jdbc.odbc.JdbcOdbcDriver.
TypeMapEntries Enter the type map implementation. This specifies a
custom type map between Java types and SQL types.
ControlTableName Enter the persistent collection control table name.
FetchMode Enter the control fetch behavior of View Objects (+
PropertyConstants.ENV_FETCH_AS_NEEDED +
"|" + PropertyConstants.ENV_FETCH_ALL + ).
AS.NEEDED causes view objects to fetch rows only
when they are requested. ALL causes them to fetch the
entire results of their queries.
LockingMode Enter the default locking mode for an application
module. This prevents the application module pool
from creating a pending transaction state on the
database with row-level locks each time the application
module is released to the pool.
Fusion web applications should set the locking mode to
optimistic to avoid creating the row-level locks.
JdbcBytesConversion Indicate whether to use JDBC default bytes conversion
or to perform such conversion in the framework.
Show Advanced Properties Expand to display fields containing current advanced
database properties, or enter new values in the fields.
TxnSeqInc Select persistent transaction sequence increment.
UsePersColl Select enable view row spillover to help manage large
rowsets.
TxnSeqName Enter persistent transaction sequence name.
Hide Advanced Properties Click to hide all advanced property fields.
Element Description
SecurityContext Enter the JAAS context. This element specifies a
particular JAAS implementation.
The default is JAZN.
Show Advanced Properties Expand to display fields containing current advanced
security properties, or enter new values in the fields.
UserPrincipal Enter the authenticated user principal name.
SecurityConfig Enter the complete path and file name of JAZN
configuration, for example,
k:\j2ee\home\config\jazn.xml.
If this property value is null or length 0, runtime will
assume that jazn.xml is in the same path as
jazn.jar and append /config/jazn.xml before it
accesses login module or gets the JAZN context for
getting permission manager.
javaNamingSecurityCredentials For EJB deployment, enter the password for the
application server connection.
Element Description
AppModuleJndiName For EJB deployment, enter the JNDI name used to look
up the application module factory.
SecurityLoginmodule Enter a custom login module for authentication, for
example,
oracle.security.jazn.realm.RealmLoginModu
le.
The default is the JAZN login module.
ServerUseNullDbTransaction Use 9.0.2 compatible
oracle.jbo.server.NullDbtransactionImpl
when not connected to the database.
SecurityEnforce Enter one of the following values:
None - No authentication.
Test - Requires authentication. If using the tester or
ADF Swing, a dialog will prompt for login. If
authentication fails, the application module is still
instantiated.
Must - Like Test, but if authentication fails, the
application module will not be instantiated. Instead,
you will get an exception.
Auth - Like Must, but in addition, if you have used the
Entity Wizard Authorization editor to define entity or
attribute permissions, the permissions will be checked.
For example if the permission on Dept.Deptno was
granted update_while_new to role users, then the
users role can set the Deptno value only when the
row is new. Otherwise, it is not editable.
Note that even if there are permissions granted via the
wizard, they will not be enforced unless
jbo.security.enforce is set to Auth.
javaNamingSecurityPrincipal For EJB deployment, enter the password for the
application server connection.
Hide Advanced Properties Click to hide all advanced property fields.
■ URL connection
■ Web Service connection
Element Description
serviceEndpointProvider Enter the provider of the service endpoint.
Valid types are ADFBC, Fabric, SOAP.
serviceConnectionName Enter the service connection name.
jndiName Enter the JNDI name of the EJB that
implements the service interface. Applicable
when the endpoint is ADF BC.
jndiFactoryInitial Enter the class name of initial context factory
for JNDI lookup. Applicable when the
endpoint is ADF BC.
jndiProviderURL Enter configuration information for the JNDI
lookup. Applicable when endpoint is ADF BC.
jndiSecurityPrincipal Enter the identity of the principal (e.g. user)
for the JNDI lookup. Applicable when the
endpoint is ADF BC.
jndiSecurityCredentials Enter the principal's credentials for JNDI
lookup. Applicable when the endpoint is ADF
BC.
fabricAddress Enter the service name of the SOA composite.
Applicable when the endpoint is Fabric.
serviceInterfaceName Enter the class name of the service endpoint
interface.
serviceSchemaName Enter the name of the service schema file.
serviceSchemaLocation Enter the relative path of the service schema
file.
Essbase Connection
You cannot create an Essbase connection; however, you can edit an existing Essbase
connection that was deployed with the application.
Element Description
Host Enter the host that this connection represents.
Port Displays the default port that this connection uses to connect to
Essbase. Clear the Default option to enter a port other than the default.
Username Enter the user name authorized to connect to Essbase during design
time. This user name is replaced at runtime with the user name
specified by the application.
Password Enter the password of the user. An asterisk (*) is displayed for each
character you enter in this field.
Element Description
Name Enter a unique name for the connection.
Element Description
Server URL Enter the URL of the discussion server hosting the discussion forums.
For example: http://discuss-server.com:8888/owc_discussions
Administrator Enter the user name of the discussion server administrator.
User Name
Administrative privileges are required for this connection so that operations
can be performed on behalf of WebCenter users.
Connection .Enter the connection timeout in seconds. The default is -1.
Timeout (in
Seconds)
Connection Indicate whether or not the discussion server connection is secure.
Secured
Element Description
Cache Size (in Specify the amount of space reserved for the cache (in MB).
MB)
The default is 0.
ache Expiration Specify a suitable expiration period for the cache.
Time (in
This is the maximum length of time (in minutes) that cached content is
Minutes)
valid.
The default is 0.
Connection Specify a suitable timeout for the connection.
Timeout (in
This is the length of time (in seconds) that the WebCenter application waits
Seconds)
for a response from the discussion server before issuing a connection
timeout message.
The default is 60 seconds.
Element Description
Root Path Enter the full path to a folder on a local file system in which your
content is placed. For example: C:/MyContent
Caution: File system content must not be used in production or
enterprise application deployments. This feature is provided for
development purposes only.
Element Description
IMAP Host Enter the host name of the machine where the IMAP service (Internet
Message Access Protocol) is running.
IMAP Port Enter the port on which the IMAP service listens.
IMAP Secured Indicate whether a secured connection (SSL) is required for incoming mail
over IMAP.
SMTP Host Enter the host name of the machine on which the SMTP service (Simple Mail
Transfer Protocol) is running.
SMTP Port Enter the port on which the SMTP service listens.
SMTP Secured Indicate whether a secured connection (SSL) is required for outgoing mail
over SMTP.
Associated Associate the mail server with an external application. External application
External credential information is used to authenticate users against the IMAP server.
Application
Element Description
LDAP Domain Enter the LDAP domain.
LDAP Host Enter the host name of the LDAP (Lightweight Directory Access Protocol)
server.
LDAP Port Enter the port on which the LDAP service listens.
LDAP Secured Indicate whether a secured connection (SSL) is required for the LDAP
connection.
LDAP Enter the user name of the LDAP server administrator.
Administrator
User Name
LDAP Enter the password for the LDAP server administrator.
Administrator
Password
LDAP Base Enter the base-distinguished name for the LDAP schema.
DN
LDAP Default Enter the LDAP default user.
User
Element Description
Connection Specify a suitable timeout for the connection.
Timeout (in
This is the length of time (in seconds) that the WebCenter application waits
Seconds)
for a response from the mail server before issuing a connection timeout
message. The default is 60 seconds.
Cache Specify a suitable expiration period for the cache.
Expiration
This is the maximum length of time (in minutes) that cached content is
Time (in
valid. The default value (-1) means that the cache never expires.
Minutes)
Element Description
Connection Enter a unique name for the connection.
Name
Active Select to use this connection for search-related services in the WebCenter
Connection application.
You can register multiple search connections through Oracle Enterprise
Manager Fusion Middleware Control, but only one connection is active at a
time.
Element Description
SOAP URL Enter the Web Service URL that Oracle Secure Enterprise Search exposes to
enable search requests.
Use the format:
http://<host>:<port>/search/query/OracleSearch
For example: http://myHost:7777/search/query/OracleSearch
Application Enter the name of a valid user.
User Name
You can specify the name of any user in the identity store. The user must be
present in both the Oracle Identity Management server configured for your
WebCenter application and the Oracle Identity Management server
configured for Oracle SES.
The WebCenter application must authenticate itself as a trusted application
to Oracle Secure Enterprise Search so that it may perform searches on behalf
of WebCenter users.
Application Enter the appropriate user password.
Password
Element Description
Oracle Secure Enter the Secure Enterprise Search data group in which to search.
Enterprise
Search Data
Group
Execution Enter the search execution timeout in milliseconds.
Timeout
Executor Enter the search executor preparation timeout in milliseconds.
Preparation
Timeout
Number of Enter the number of saved searches displayed.
Saved Searches
Simple Search Enter the number of results displayed from a simple search, for each service.
Result Rows
Search Result Enter the number of search results displayed for each service.
Rows
Global Search Enter the number of search results displayed (on the toolbar) for each service.
Result Rows
URL Connection
Use the URL Connection pages to configure URL connections.
Element Description
URL Enter the URL of the desired data stream, but omit any URL
parameters.
Username Enter the username require to enter the web site.
Password Enter the password required to enter the web site.
AuthenticationRealm Defines the Realm as in HTTP authentication. Defined by the
server hosting the protected resources.
Proxy Defines the proxy to be used for connecting to HTTP/HTTPS
resources. Specifies the host/port and any authentication
details needed to authenticate against the proxy itself.
ProxyUseDefault Uses the default proxy at the system level instead of the
connection level at both DT or RT, or wherever the connection
instance is active. At design time, the default proxy will be the
JDeveloper IDE proxy settings, at runtime, it will be the one
configured for WLS.
ConnectionClassName Indicates the type of challenge authentication. The two
supported modes are Basic and Digest authentication (HTTP
basic & digest).
ChallengeAuthenticationTyp The class name of the connection that gets loaded into the
e reference to be used by the factory to construct the connection
instance.
Use the Configure Web Service dropdown list to configure the Web Service Client,
including attaching and detaching policy. After you have finished the configuration in
the web services page, you can use the breadcrumbs to navigate back to the ADF
Connections page.
Element Description
Model Enter the WebService MDDS model elements generated based on the
service WSDL.
WsdlUrl Enter the WebService service WSDL URL.
DefaultServiceName Enter the default service Name of the service WSDL.
6. In the left pane of the System MBean Browser, expand the parent ADF MBean
ADFConfig and then the ADFConfig folder to expose the child ADF MBeans.
You may see the child ADF MBeans ADFcConfiguration and MDSAppConfig.
7. In the left pane, select the ADFcConfiguration MBean, and in the right pane,
select the attribute you want to view or modify.
Figure 3–1 shows an ADF Configuration MBean in the Fusion Middleware Control
MBean Browser.
If you deployed an application to several nodes within a cluster, any ADF connection
changes to a single node via an MBean will be propagated to all the other nodes. MDS
will store a single set of ADF application configuration information for all versions of
an application.
9. In the right pane, click the Operations tab and click save.
The new values you have edited are written to MDS after you click save.
Attribute Description
Transport The method by which data will be delivered to the client.
Value values are:
■ streaming (default)
■ polling
■ long-polling
For more information, see the "What You May Need to Know
About Transport Modes" section of the Oracle Fusion
Middleware Fusion Developer's Guide for Oracle Application
Development Framework.
LatencyThreshold Latency threshold in milliseconds. Active data messages with
network delays greater than this threshold will be treated as
being "late".
KeepAliveInterval Frequency in milliseconds for sending keep-alive messages
when no events are generated.
PollingInterval Frequency in milliseconds of the poll request; only used when
clients are set to use polling
MaxReconnectAttemptTime Maximum period of time in milliseconds a client will keep
attempting to reconnect to server upon getting disconnected
ReconnectWaitTime Time interval in milliseconds to wait between reconnect
attempts.
Example 3–2 Sample Code for Invoking ADFConfig Diagnostic Dump in Exception
Handler
IllegalArgumentException e = new IllegalArgumentException("test exception");
LoggerFactory.getFrameworkLogger().log(ODLLevel.INCIDENT_ERROR,
"Test error message", e);
For more information about the Diagnostic Framework, see the chapter on diagnosing
problems in the Oracle Fusion Middleware Administrator's Guide.
If you are using the Diagnostic Framework on an IBM WebSphere application server,
you need to perform additional tasks. For more information, see the Oracle Fusion
Middleware Third-Party Application Server Guide.
2. Navigate to Data sources > DB2 Universal JDBC Driver XA DataSource >
WebSphere Application Server data source properties and set Non-transactional
data source to enabled.
3. Save the configuration.
4. Navigate to Application servers > server_name > Web Container > Custom
Properties and set DisableMultiThreadedServletConnectionMgmt to true.
5. Save the configuration.
6. Restart WebSphere Application Server.
Setting these two properties will enable your deployed application to reuse result sets
across requests.
Applications
This chapter describes the WLST commands you can use to deploy, manage, and
configure Oracle ADF applications to Oracle WebLogic Server.
For wsadmin commands reference for the IBM WebSphere Application Server, see
Appendix B, "wsadmin Command Reference for ADF Applications."
This chapter includes the following sections:
■ Section 4.1, "Overview of Custom WSLT Commands for Oracle ADF"
■ Section 4.2, "ADF-Specific WLST Commands"
4.2.1 adf_createFileUrlConnection
Use with WLST: Online or Offline.
4.2.1.1 Description
Use this command to creates a new connection based on the
oracle.adf.model.connection.url.FileURLConnection connection class.
4.2.1.2 Syntax
adf_createFileURLConnection(appName, name, URL)
Argument Definition
appName Application name for which the connection will be created.
name The name of the new connection.
URL The URL associated with this connection.
4.2.1.3 Example
adf_createFileURLConnection('myapp','tempDir','/scratch/tmp')
4.2.2 adf_createHttpUrlConnection
Use with WLST: Online or Offline.
4.2.2.1 Description
Use this command to create a new connection based on the
oracle.adf.model.connection.url.HttpURLConnection connection type
class.
4.2.2.2 Syntax
adf_createHttpURLConnection (appName, name, [URL], [authenticationType], [realm],
[user], [password])
Argument Definition
appName Application name for which the connection will be created.
name The name of the new connection.
url (Optional) The URL associated with this connection.
authenticationType (Optional) The default is basic.
realm (Optional) If this connection deals with authentication,
then this should be set. The default is basic.
user (Optional)
password (Optional)
4.2.2.3 Example
adf_createHttpURLConnection('myapp','cnn','http://www.cnn.com')
4.2.3 adf_setURLConnectionAttributes
Use with WLST: Online or Offline.
4.2.3.1 Description
Use this command to set or edit the attributes of a newly created or existing ADF
connection.
4.2.3.2 Syntax
adf_setURLConnectionAttributes(appname, connectionname, attributes)
Argument Definition
appname Application name.
connectionname The name of the connection.
attributes The array containing attributes to set in key/value pairs.
4.2.3.3 Example
adf_setURLConnectionAttributes
('myapp','cnn',’ChallengeAuthenticationType:digest’,
’AuthenticationRealm:XMLRealm’
4.2.4 adf_listUrlConnection
Use with WLST: Online or Offline.
4.2.4.1 Description
Use this command to list the connections of the application.
4.2.4.2 Syntax
adf_listURLConnection(appname)
Argument Definition
appname Application name.
4.2.4.3 Example
adf_listURLConnection ('myapp')
4.2.5 getADFMArchiveConfig
Use with WLST: Online or Offline.
4.2.5.1 Description
Returns a handle to the ADFMArchiveConfig object for the specified archive. The
returned ADFMArchiveConfig object's methods can be used to change application
configuration in an archive.
The ADFMArchiveConfig object provides the following methods:
■ setDatabaseJboSQLBuilder([value]) - Sets the Database
jbo.SQLBuilder attribute.
■ getDatabaseJboSQLBuilder() - Returns the current value of the
jbo.SQLBuilder attribute.
■ setDatabaseJboSQLBuilderClass([value]) - Sets the Database
jbo.SQLBuilderClass attribute. Value is the full name of the custom builder
class.
■ getDatabaseJboSQLBuilderClass() - Returns the current value of the
jbo.SQLBuilderClass attribute.
■ setDefaultRowLimit([value]) - Sets the defaults rowLimit attribute.
Value is a long specifying the row limit (Default -1).
■ getDefaultRowLimit() - Returns the current value of the rowLimit attribute.
■ save([toLocation]) - If you specify the toLocation, then the changes will
be stored in the target archive file and the original file will remain unchanged.
Otherwise, the changes will be saved in the original file itself.
4.2.5.2 Syntax
archiveConfigObject = ADFMAdmin.getADFMArchiveConfig(fromLocation)
Argument Definition
fromLocation The name of the ear file, including its complete path.
Argument Definition
value The value of the jbo.SQLBuilder attribute. Valid values are:
'Oracle' (Default), 'OLite', 'DB2', 'SQL92', 'SQLServer', or 'Custom. If
'Custom' is specified, then the jbo.SQLBuilderClass attribute
should also be set.
Argument Definition
value The value of the jbo.SQLBuilderClass attribute.
Argument Definition
value The value of the rowLimit attribute.
Argument Definition
toLocation The file name along with the absolute path to store the changes.
4.2.5.3 Example
In the following example. the jbo.SQLBuilder attribute is set to 'DB2'.
wls:/offline> archive =
ADFMAdmin.getADFMArchiveConfig(fromLocation='/tmp/testArchive.ear')
wls:/offline> archive.setDatabaseJboSQLBuilder(value='DB2')
wls:/offline> archive.save()
In the following example, the jbo.SQLBuilder attribute is set to 'Custom', and the
jbo.SQLBuilderClass attribute is set to the class 'com.example.CustomBuilder'.
wls:/offline> archive =
ADFMAdmin.getADFMArchiveConfig(fromLocation='/tmp/testArchive.ear')
wls:/offline> archive.setDatabaseJboSQLBuilder('Custom')
wls:/offline> archive.setDatabaseJboSQLBuilderClass('com.example.CustomBuilder')
wls:/offline> archive.save(toLocation='/tmp/targetArchive.ear')
4.2.6 exportJarVersions
Use with WLST: Offline.
4.2.6.1 Description
Use to export CSV format of JARs versions from current ORACLE_HOME at a specified
location. Exported JARs versions information can be opened in Oracle OpenOffice or
MicroSoft Excel.
4.2.6.2 Syntax
exportJarVersions(path)
Argument Definition
path Location to extract JARs versions.
4.2.6.3 Example
This example shows how JARs versions are exported to
/tmp/export-MyApp-Versions.csv. R/W privileges for the CSV file need to be
verified.
wls:/offline>exportJarVersions('/tmp/export-MyApp-Versions.csv')
4.2.7 exportApplicationJarVersions
Use with WLST: Online.
4.2.7.1 Description
Used to export CSV format of runtime JARs versions of a specified application at a
specified location.
4.2.7.2 Syntax
exportApplicationJarVersions(applicationName, path)
Argument Definition
applicationName Application name to export JARs versions
path Location to export JARs versions.
4.2.7.3 Example
This example shows how MyApp runtime JARs versions are exported to
/tmp/export-MyApp-Versions.csv. R/W privileges for the CSV file need to be
verified.
wls:/DefaultDomain/serverConfig>exportApplicationJarVersions('MyApp',
'/tmp/export-MyApp-Versions.csv')
4.2.8 exportApplicationSelectedJarVersions
Use with WLST: Online.
4.2.8.1 Description
Used to export CSV format of JARs versions of selected JARs at a specified location.
4.2.8.2 Syntax
exportApplicationSelectedJarVersions(applicationName, path, jarsLocation)
Argument Definition
applicationName Application name to export JARs versions.
path Location to extract JARs versions.
jarsLocation Optional list of selected JARs. If not specified, default JARs runtime
version list from
%WLSDOMAIN%/config/fmwconfig/Versions.xml will be
exported.
If the selectedJars property in Versions.xml is empty, version
information of adfm.jar, adf-richclient-impl-11.jar,
adf-controller.jar, adf-pageflow-impl.jar,
adf-share-support.jar and mdsrt.jar will be exported.
4.2.8.3 Example
This example shows how JARs versions are exported to
/tmp/export-MyApp-Versions.csv using the selectedJars property of the
Versions.xml file. In this case, since the jarsLocation parameter is not specified,
the libraries listed in the selectedJars property of the Versions.xml file will be
exported. R/W privileges for the CSV file need to be verified.
wls:/offline>exportApplicationSelectedJarVersions('MyApp',
'/tmp/export-MyApp-Versions.csv')
Versions.xml
<Diagnostics xmlns="xmlns.oracle.com/adf/diagnostics">
<Versions xmlns="xmlns.oracle.com/adf/diagnostics/versions"
exportVersionsOnApplicationStartup="true"
selectedJars="$ORACLE_HOME$/modules/oracle.adf.model_11.1.1/adfm.jar;
$ORACLE_HOME$/modules/oracle.adf.view_11.1.1/adf-richclient-impl-11.jar;
$ORACLE_HOME$/modules/oracle.adf.controller_11.1.1/adf-controller.jar;
$ORACLE_HOME$/modules/oracle.adf.pageflow_11.1.1/adf-pageflow-impl.jar;
$ORACLE_HOME$/modules/oracle.adf.share_11.1.1/adf-share-support.jar;
$ORACLE_HOME$/modules/oracle.mds_11.1.1/mdsrt.jar" />
</Diagnostics>
This appendix provides a reference of the contents of ADF runtime libraries that are
deployed into Oracle WebLogic Server to support ADF applications.
The following ADF runtime libraries are described:
■ Section A.1, "Using JDeveloper to Find the ADF Runtime Library"
■ Section A.2, "adf.oracle.domain.webapp.war Library"
■ Section A.3, "adf.oracle.domain.ear Library"
■ Section A.4, "System Classpath"
■ Section A.5, "adf.desktopintegration.war Library"
2. In the Manage Libraries dialog Libraries tab, click the Search icon and select Jar
name from the dropdown list.
3. In the search field, enter the name of the JAR and click the search icon.
Applications
This chapter describes the wsadmin commands you can use to deploy, manage, and
configure Oracle ADF applications. wsadmin commands are intended to be used with
the IBM WebSphere Application Server.
This chapter includes the following sections:
■ Section B.1, "Overview of Custom wsadmin Commands for Oracle ADF"
■ Section B.2, "ADF-Specific WebSphere Commands"
B.2.1 createFileUrlConnection
Use with wsadmin: Online or Offline.
B.2.1.1 Description
Use this command to creates a new connection based on the
oracle.adf.model.connection.url.FileURLConnection connection class.
B.2.1.2 Syntax
URLConnection.createFileURLConnection(appName, name, URL)
Argument Definition
appName Application name for which the connection will be created.
name The name of the new connection.
URL The URL associated with this connection.
B.2.1.3 Example
URLConnection.createFileURLConnection('myapp','tempDir','/scratch/tmp')
B.2.2 createHttpUrlConnection
Use with wsadmin: Online or Offline.
B.2.2.1 Description
Use this command to create a new connection based on the
oracle.adf.model.connection.url.HttpURLConnection connection type
class.
B.2.2.2 Syntax
URLConnection.createHttpURLConnection (appName, name, [URL], [authenticationType],
[realm], [user], [password])
Argument Definition
appName Application name for which the connection will be created.
name The name of the new connection.
url (Optional) The URL associated with this connection.
authenticationType (Optional) The default is basic.
realm (Optional) If this connection deals with authentication,
then this should be set. The default is basic.
user (Optional)
password (Optional)
B.2.2.3 Example
URLConnection.createHttpURLConnection('myapp','cnn','http://www.cnn.com')
B.2.3 setURLConnectionAttributes
Use with wsadmin: Online or Offline.
B.2.3.1 Description
Use this command to set or edit the attributes of a newly created or existing ADF
connection.
B.2.3.2 Syntax
URLConnection.setURLConnectionAttributes(appname, connectionname, attributes)
Argument Definition
appname Application name.
connectionname The name of the connection.
attributes The array containing attributes to set in key/value pairs.
B.2.3.3 Example
URLConnection.setURLConnectionAttributes
('myapp','cnn',’ChallengeAuthenticationType:digest’,
’AuthenticationRealm:XMLRealm’
B.2.4 listUrlConnection
Use with wsadmin: Online or Offline.
B.2.4.1 Description
Use this command to list the connections of the application.
B.2.4.2 Syntax
URLConnection.listURLConnection(appname)
Argument Definition
appname Application name.
B.2.4.3 Example
URLConnection.listURLConnection ('myapp')
B.2.5 getADFMArchiveConfig
Use with wsadmin: Online or Offline.
B.2.5.1 Description
Returns a handle to the ADFMArchiveConfig object for the specified archive. The
returned ADFMArchiveConfig object's methods can be used to change application
configuration in an archive.
The ADFMArchiveConfig object provides the following methods:
■ setDatabaseJboSQLBuilder([value]) - Sets the Database
jbo.SQLBuilder attribute.
■ getDatabaseJboSQLBuilder() - Returns the current value of the
jbo.SQLBuilder attribute.
B.2.5.2 Syntax
archiveConfigObject = ADFMAdmin.getADFMArchiveConfig(fromLocation)
Argument Definition
fromLocation The name of the ear file, including its complete path.
Argument Definition
value The value of the jbo.SQLBuilder attribute. Valid values are:
'Oracle' (Default), 'OLite', 'DB2', 'SQL92', 'SQLServer', or 'Custom. If
'Custom' is specified, then the jbo.SQLBuilderClass attribute
should also be set.
Argument Definition
value The value of the jbo.SQLBuilderClass attribute.
Argument Definition
toLocation The file name along with the absolute path to store the changes.
B.2.5.3 Example
In the following example, if the adf-config.xml file in the archive does not have
the application and shared metadata repositories defined, then you should provide the
complete connection information.
# Open something.ear and return an object which can be used
# manipulate it
archive = ADFMAdmin.getADFMArchiveConfig('/path/to/something.ear')
archive = ADFMAdmin.getADFMArchiveConfig('/path/to/something.ear')
archive.getDatabaseJboSQLBuilder()
In the following example, the jbo.SQLBuilder attribute is set to 'Custom', and the
jbo.SQLBuilderClass attribute is set to the class 'com.example.CustomBuilder'.
wsadmin> archive =
ADFMAdmin.getADFMArchiveConfig(fromLocation='/tmp/testArchive.ear')
wsadmin> archive.setDatabaseJboSQLBuilder('Custom')
wsadmin> archive.setDatabaseJboSQLBuilderClass('com.example.CustomBuilder')
wsadmin> archive.save(toLocation='/tmp/targetArchive.ear')
This appendix describes how to configure GlassFish Server for Oracle ADF Essentials.
It describes how to obtain the Oracle ADF Runtime and how to install these files into
the GlassFish Server.
This appendix contains the following sections:
■ Section C.1, "About Configuring GlassFish"
■ Section C.2, "Obtaining GlassFish Server and Oracle ADF Runtime"
■ Section C.3, "Configuring GlassFish with ADF Runtime Libraries"
■ Section C.4, "Additional Configuration Tasks"
■ Section C.5, "Deploying an ADF Application to GlassFish"