I found several examples how to connect a custom ResultHandler to a MyBatis Query:
e.g. https://code.google.com/p/mybatis/wiki/ResultHandlerExample
Unfortunately the ResultHandler given in the example never gets invoked. (As the last comment already stated)
So I searched for a solution and found this: MyBatis - ResultHandler is not invoked
But this does not quite fit to my problem since I'm using MyBatis the xml-style way rather than the API-style way. So in my case I have no
SqlSession session = MyBatisConnectionFactory.getSqlSessionFactory().openSession(true);
Is there a way to connect my custom handler in the xml file, for example the <resultMap />
oder <select />
node?