ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Lamey <cla...@localmatters.com>
Subject Re: ibatis in web application
Date Wed, 26 Sep 2007 19:05:32 GMT

Another route is to configure your database connection information via a
DataSource in JNDI.  Then your webapp just references the JNDI name
(something like java:/comp/env/jdbc/OrderDS) and you can change it as you
like outside the webapp.

Lookup JNDI DataSource in your weblogic docs to see more.


On 9/26/07 12:56 PM, "Ashish Kulkarni" <ashish.kulkarni13@gmail.com> wrote:

> Hi
> I need some information about using ibatis in web application, i am using
> sql maps for java. i have SqlMapConfig.xml and SqlMapConfig.properties file
> under src folder,
> SqlMapConfig.properties has database connection information,
> Now the question is when i create the war file, i do not know what database
> it is going to connect, so normally i would install this war file and then
> change the SqlMapConfig.properties file ( which is under WEB-INF\classes)
> after installing it on application server.
> Is this the right way to do it, since i am having issues in doing so with
> weblogic,
> What is the standard practise, or do i have to create war file after i get
> the database information, which will be very difficult.
> Ashish

View raw message