The first thing a client must do when it accesses business components is find an instance of the root application module. To access a root-level application module from a Java batch client, you need to obtain an instance of the application module, passing in the application module definition and configuration.
To access a root-level application module:
oracle.jbo.client
:
import oracle.jbo.client.*;
String
containing the package-qualified name of
the application module definition. For example, if the application
module definition is called CheckInventoryModule
and is
in the package orderentry.datamodel
, you would use the
following code:
String amDefName = "orderentry.datamodel.CheckInventoryModule";
String configName = "CheckInventoryModuleLocal";
For more information about application module configurations, see the related topics list.
ApplicationModule myAM = Configuration.createRootApplicationModule
(
amDefName, configName
);
// To release, rather than create, the root application module:
// Configuration.releaseRootApplicationModule(...);
Accessing Data from Clients
About Oracle ADF Application Modules-
Finding a Nested Application Module Instance
Finding View Object Instances in the Data Model
Copyright © 1997, 2004, Oracle. All rights reserved.