Skip to main content

Posts

Showing posts from February, 2014

Accessing the BindingContext through Servlet in ADF Application

Follow the following steps to access the BindingContext in your Servlet 1. Create one seprate pageDef file without any fragement or page.We don't have any option to create  pagedef directly without any page. So go to the folder(on the drive C/D) where you want to add pagedef inside the application and copy one existig pagedef and paste.Rename this copied file with new name ex. MyPageServletPageDef. After that in jDev you can see this file in the same folder where you created through backend. 2. Add the method binding or iterator binding which you want to access in the servlet on the created pageDef file that is MyPageServletPageDef. 3.Next step is to register this pagedef in DataBindings.cpx file.   Open your DataBindings.cpx  file code through source and add follwoing code ex. MyPageServlet is the servlet and  MyPageServletPageDef is the page definition file which we created. First create the id for your pageDef file inside the tag <pageDefinitionUsages> <pageD

Improving the ADF Application Performance

Following are some of the important points to increase the performance of your ADF Application. 1. In view object tuning section always set the fetchSize to value which will be greater than the no of rows you are showing on the grid Because Default fetchSize is 1 with this fetch size for each row it goes to DB and fetch the records, that is one by one as shown in above diagram. I you want to increase the performance set some value for this fetchSize attribute so that it will fetch the rows in batches.      If you are showing 10 rows in a grid then in that ViewObject set fetchSize as 11 (row needed+1).  FetchSize is nothing but how many rows have to be fetched from DB in one trip.Using this no of Db trips will be reduced. 2. Remove unwanted bindings from pagedef and refresh conditions on iterator(only keep the required value of this property). 3. Activation and Passivation :     - when you run your ADF application first time,bydefault ADF creates PS_TXN table in the