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

  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.

    ReplyDelete

Post a Comment