Accessing a Root-Level Application Module From a Java Batch Client

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:

  1. Make sure your client has imported the package oracle.jbo.client :

    import oracle.jbo.client.*;

  2. Create a 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";

  3. Create a String containing the name of the application module configuration to use. For example, in local mode, you would most likely use code like the following:

    String configName = "CheckInventoryModuleLocal";

    For more information about application module configurations, see the related topics list.

  4. Obtain an instance of the application module by calling the static method Configuration.createRootApplicationModule(), passing in the two strings you created.
    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.