There's nothing like this in iBatis Java right now. With the configuration
changes we're planning in iBatis V3 this should be possible - but that's a
long way off.
In the meantime, you could look at this JIRA ticket for some iBATIS mods
that purport to allow you to add to the configuration dynamically:
https://issues.apache.org/jira/browse/IBATIS-270
Jeff Butler
On 1/26/07, Tom Henricksen <[EMAIL PROTECTED]> wrote:
A co-worker of mine who use's the iBatis .Net mentioned the
ConfigureAndWatch method. They can change xml files and the server
dynamically picks up the changes.
.Net Sample Code:
Protected Shared Sub InitMapper()
Dim handler As New ConfigureHandler(AddressOfConfigure)
mapper = SqlMapper.*ConfigureAndWatch*(handler)
End Sub 'InitMapper
In our Java code we get the SqlMapClientBuilder
Java Code:
public synchronized static void initSqlMaps()
throws IOException {
if (singleton == null) {
String resource = "sqlmaps-config.xml";
Reader reader = Resources.getResourceAsReader(resource);
singleton = SqlMapClientBuilder.buildSqlMapClient(reader);
}
Is there anything similar to this in the iBatis Java side?
Thanks,
Tom