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("http://xmlns.oracle.com/adfm/config");  
 Long rowLimit=(Long)map.get("jbo.row.limit");  

Comments

Anonymous said…
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.

Disclaimer

The views expressed on this blog are my own and do not necessarily reflect the views of my employer.