Re: [OT] Need suggestion about designing web application

2007-09-27 Thread Larry Meadors
With iBATIS, you can supply configuration properties at runtime - look at the API for the constructors of the sqlmapclient - one of them allows you to pass a properties object into it - those can be used to configure the data source. Larry On 9/27/07, Ashish Kulkarni <[EMAIL PROTECTED]> wrote: >

Re: [OT] Need suggestion about designing web application

2007-09-27 Thread Ashish Kulkarni
Hi This sounds intresting I am also working on an application which is suppose to get data from more then one database and then merge and create one xml file and send it back. So in this case, i will have to work with more then one JNDI, Has anyone experience with working this kind of application,

Re: [OT] Need suggestion about designing web application

2007-09-27 Thread Nils-Helge Garli
The idea of the local JNDI reference (which exists for the application instance only) is to decouple it from the actual, physical JNDI name of the resource. The mapping of the datasource name is (usually) done when the application is deployed. I am not familiar with how WebLogic handle this, but ma

Re: [OT] Need suggestion about designing web application

2007-09-27 Thread Ashish Kulkarni
Hi But suppose i have to install the same war file on same application server, one installtion pointing towards database1, and other installation pointing towards database 2. And this is quite possible to happen, if database 1 is prodution database for site1 and database 2 is production database f

Re: [OT] Need suggestion about designing web application

2007-09-27 Thread Nils-Helge Garli
As Antonio said, _you_ as the application developer/assembler decide the local JNDI name of the data source. Then it's the task of the deployer to link this local defined JNDI name to an actual JNDI resource in the container. Nils-H On 9/27/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > 2007/9

Re: [OT] Need suggestion about designing web application

2007-09-27 Thread Antonio Petrelli
2007/9/27, Ashish Kulkarni <[EMAIL PROTECTED]>: > Hi > We a to develop a web application which we want to be able to deploy on any > J2EE compatiable application server. > We would create a war file for deployment, but there is a issue with > database connection, > We do not know the JNDI name, > S

[OT] Need suggestion about designing web application

2007-09-26 Thread Ashish Kulkarni
Hi We a to develop a web application which we want to be able to deploy on any J2EE compatiable application server. We would create a war file for deployment, but there is a issue with database connection, We do not know the JNDI name, So we thought we would put xml file under WEB-INF folder, and a