I have an administration page in my site that allows me to reload the whole Spring application context at runtime. I keep it open in another tab in my browser if I need it. The relevant code looks like this:
AbstractApplicationContext applicationContext = (AbstractApplicationContext) WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext()); applicationContext.close(); applicationContext.refresh(); Of course, if most of your application is Spring-managed, then you're really only saving the server shutdown and startup time. I guess this will vary from server to server. Geoff --- Paul Benedict <[EMAIL PROTECTED]> wrote: > I have the same problem. I've seen this requested before but I don't > think there is a solution. > > --- Ming Xue <[EMAIL PROTECTED]> wrote: > > > Hi > > > > I am using Spring with SqlMap, the sqlMapClient is configured as a > Spring bean, during > > development, I need to modify the sqlMap xml file (actual SQLs) > very often, but in order to > > apply the change, I need to restart my Jboss server, so > sqlMapClient can reload those xmls. Is > > there a way to reload sqlMap xmls without restarting server (on > demand)? > > > > thanks > > > > Mingyuan XUE > > Plateau Systems. > > > > > > <bean id="sqlMapClient" > class="org.springframework.orm.ibatis.SqlMapClientFactoryBean" > > lazy-init="true"> > > <property name="configLocation" > value="WEB-INF/sqlmap-config.xml"/> > > <property name="dataSource"><ref bean="DS"/></property> > > <property name="lobHandler"><ref > bean="LOBHandler"/></property> > > </bean> > > > > > > > __________________________________ > Yahoo! FareChase: Search multiple travel sites in one click. > http://farechase.yahoo.com > ____________________________________________________ Do you Yahoo!? Take your Mail with you - get Yahoo! Mail on your mobile http://au.mobile.yahoo.com/mweb/index.html
