Reading adf-config.xml entires...

If you want to read the adf-config.xml entries from Java code, try getting ADFConfig object from ADFContext and read the map of entries by passing specific name spaces. An example is copied below-
 ADFContext aDFContext = ADFContext.getCurrent();  
 ADFConfig adfConfig= aDFContext.getADFConfig();  
 Map map= adfConfig.getConfigObject("");  
 Long rowLimit=(Long)map.get("jbo.row.limit");  


  1. What are the pre-conditions required to get the map from ADFConfig for a custom namespace defined in adf-config.xml? I tried for a custom namespace, it returns a null value.


Post a Comment