[ http://issues.apache.org/jira/browse/IBATIS-270?page=comments#action_12417697 ]
adamb commented on IBATIS-270: ------------------------------ We are having a problem where our sql-map-config references lots* of sqlMaps ad so the initial build of the client takes a long time, and because the sqlMapClient gets cached it also takes up a lot of memory. The above code looks good for lazy loading, but note that it has a bug/feature that you must have at least one sqlMap still defined in sql-map-config.xml otherwise you will get the following error: Error parsing XML. Cause: org.xml.sax.SAXParseException: The content of element type "sqlMapConfig" is incomplete, it must match "(properties?,settings?,typeAlias*,typeHandler*,transactionManager?,sqlMap+)+". > Loading SqlMap XML to existing SqlMapClient > ------------------------------------------- > > Key: IBATIS-270 > URL: http://issues.apache.org/jira/browse/IBATIS-270 > Project: iBatis for Java > Type: New Feature > Components: SQL Maps > Environment: any > Reporter: Richard Lin > Priority: Minor > Attachments: DynamicSqlMapClient.java, DynamicSqlMapExecutorDelegate.java > > Ability to dynamically load more SqlMap XML files not included in > sqlmap-config.xml. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira