iBatis for Java [READ ONLY]
  1. iBatis for Java [READ ONLY]
  2. IBATIS-416

Ability to build SqlMapClient programmatically without SqlMapConfig.xml file

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.3.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I've looked over Spring's support for iBatis and I observed that I am required to have the SqlMapConfig.xml file. It'd be nice if SqlMapClientImpl and/or SqlMapExecutorDelegate had javabean get/set properties so that this could be programatically constructed (particularly via Spring), thus not requiring the SqlMapConfig.xml file. At first inspection, it would seem that the delegate class is already good for this purpose because it has quite a few get/sets, but then I look at your SqlMapConfigParser class and see the special way that, for example, defaultStatementTimeout is handled, is not workable for external programatic configuration. That's just one example. In order to enhance Spring to not need this xml file, it'll need to dynamically generate it in-memory to hand it to the builder. Clearly a hack.

        Activity

        Hide
        David Smiley added a comment -

        FYI: a conversation with the Spring - iBatis integration developer on their mailing list about this:
        http://www.nabble.com/iBatis%2C-inline-SqlMapConfig-configuration--tf3529186.html#a9856796

        Show
        David Smiley added a comment - FYI: a conversation with the Spring - iBatis integration developer on their mailing list about this: http://www.nabble.com/iBatis%2C-inline-SqlMapConfig-configuration--tf3529186.html#a9856796

          People

          • Assignee:
            Unassigned
            Reporter:
            David Smiley
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development