ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yusuf" <Yu...@ekalife.co.id>
Subject Reloading sqlmaps
Date Thu, 15 Jun 2006 03:58:46 GMT
Hello, congrats for the successfull implementation of iBatis as one of
the tools used on the dzone website :)

i'm sorry if this is not the right place to ask (spring-related), but is
there anyway to reload the sqlmaps definition without reloading the
entire application?
for example, we use spring to load the bean definitions, like this : 

    <bean id="sqlMapClient"
        <property name="configLocation"
		<property name="dataSource" ref="dataSource"/>

but usually if we have some minor changes, like additional column to
tables, we have to reload the entire context,
is there anyway or some utils from ibatis that can be used to reload the

i also tried like this

WebApplicationContext wac =
SqlMapClient sqlMapClient = (SqlMapClient) wac.getBean("sqlMapClient");
Reader reader = Resources.getResourceAsReader("../sql-map-config.xml");
sqlMapClient = SqlMapClientBuilder.buildSqlMapClient(reader);

to reinstantiate the new sqlmap, but the sqlmap still referenced to the
old one..

thank you,

View raw message