To instantiate the application module and a view object:
1- Add the following code to the main() method:
ApplicationModule am_Ord = Configuration.createRootApplicationModule("OnlineOrders.OnlineOrdersModule","OnlineOrdersModuleLocal");
This creates an instance of OnlineOrdersModule in local mode, using the connection information stored in the configuration OnlineOrdersModuleLocal. If you deploy your business components to another platform (for example, an EJB session facade), JDeveloper creates another configuration for you to use here.
2- Add the following code immediately after the code you just entered:
ViewObject vo=am_Ord.findViewObject("CustomersView1");
This searches the data model of OnlineOrdersModule for a view object useage named CustomersView1.
Now you are ready to use your batch client to find a row of CustomersView1 by primary key