:14 AM
To: user-java@ibatis.apache.org
Subject: Re: Select environment using XML
This is not run-time. You must redeploy the application. Why not select the
environment
based on a property file? This way you only need to restart the application.
Looks like a nice feature. Is there anything to
That's not runtime, either. :)
I think Alex's solution is adequate for the original question, but if
you really want to change it up on the fly, you should be able to
easily replace the SSF (assuming you have it as a singleton) the same
way - and if you add a function to your app that does it...ba
This is not run-time. You must redeploy the application. Why not select the
environment
based on a property file? This way you only need to restart the application.
Looks like a nice feature. Is there anything to be said against it?
On Apr 28, 2010, at 3:02 AM, Alex Park wrote:
> Hi,
>
> S
Hi,
SqlSessionFactoryBuilder.build() method can select a specific environment in
XML.
For example,
private Reader reader;
private SqlSessionFactory sqlSessionFactorys;
private SqlSession session;
reader = Resources.getResourceAsReader("ibatis-config.xml");
sqlSessionFactorys = new SqlSessionF