Chapter 16 - Code Snippets ========================== p.541, top of the page: /* Instantiate an application module that you have * deployed to OC4J as a session facade */ ApplicationModule careerModule = Configuration.createRootApplicationModule( "hrbc4j.CareerPathListerModule", "CareerPathListerModule9iAS"); /* Find a pool of instances of an application module * that you have deployed to OC4J as a session facade. */ ApplicationPool acctPromPool = poolMgr.findPool( "hrbc4j.AccountantPromotionModule", "hrbc4j", "AccountantPromotionModule9iAS", null); In the sidebar at the bottom of the page: String mode = args[0]; String config; if (mode = "Local" || mode = "WebModule") { config = "AccountantPromotionModuleLocal"; } if (mode = "Remote") { config = "AccountantPromotionModule9iAS"; } ApplicationModule acctPromMod = Configuration.createRootApplicationModule( "hrbc4j.AccountantPromotionModule", config); ---------------------------------------------------------------------------------- p.548, step 3: cd \deployments\CareerPathListerLocal step 6: java -cp CareerPathListerLocal.jar careerpathlisterja.CareerPathLister IT_PROG ---------------------------------------------------------------------------------- p.549, top of page: java -cp "CareerPathListerLocal.jar;AccountantPromotionClient.jar" accountantpromotionclientja.AccountantPromotionClient ---------------------------------------------------------------------------------- p.553, step 12: Configuration.createRootApplicationModule( "hrbc4j.CareerPathListerModule", "CareerPathListerModule9iAS" ); ---------------------------------------------------------------------------------- p.554, step 2 under "RunCareerPathLister in Remote Mode" java -cp "HRBC4JEjbCommon.jar;CareerPathListerRemote.jar" careerpathlisterja.CareerPathLister IT_PROG ---------------------------------------------------------------------------------- p.558, step 16: SELECT * FROM EMPLOYEES WHERE JOB_ID IN('AC_ACCOUNT', 'AC_MGR') bottom of page: UPDATE employees SET job_id = 'AC_ACCOUNT' WHERE employee_id = 206; ----------------------------------------------------------------------------------