Re: Context.xml for multiple datasources

2011-02-09 Thread Stephan Beutel
Am 09.02.2011 15:02, schrieb Caldarale, Charles R: From: Stephan Beutel [mailto:beu...@axivion.com] Subject: Re: Context.xml for multiple datasources But I thought it could be defined by a map in context.xml like in Spring. Even if you did, that wouldn't solve your problem. You would

RE: Context.xml for multiple datasources

2011-02-09 Thread Caldarale, Charles R
> From: Stephan Beutel [mailto:beu...@axivion.com] > Subject: Re: Context.xml for multiple datasources > But I thought it could be defined by a map in > context.xml like in Spring. Even if you did, that wouldn't solve your problem. You would still have to stop and restart

Re: Context.xml for multiple datasources

2011-02-09 Thread Stephan Beutel
Am 09.02.2011 12:12, schrieb chris derham: That's right, my code doesn't support a variable amount of databases at the moment because the databases are configured in Spring (inside my war file). But if I use the context to configure this list of datasources, the admin can create databases as h

Re: Context.xml for multiple datasources

2011-02-09 Thread chris derham
> > That's right, my code doesn't support a variable amount of databases at > the moment because > the databases are configured in Spring (inside my war file). > But if I use the context to configure this list of datasources, the admin > can create databases as he need. > And that's the reason why

Re: Context.xml for multiple datasources

2011-02-09 Thread Stephan Beutel
Am 09.02.2011 11:03, schrieb chris derham: And the question is: How to build the context to move the existing Spring configuration to the Tomcat context to get all datasources with JNDI. The problem is, that it must be possible to set a variable amount of databases. I can't set the number of dat

Re: Context.xml for multiple datasources

2011-02-09 Thread chris derham
> And the question is: > How to build the context to move the existing Spring configuration to the > Tomcat context to get all datasources with JNDI. > The problem is, that it must be possible to set a variable amount of > databases. I can't set the number of databases to a fixed amount. > Building

Re: Context.xml for multiple datasources

2011-02-09 Thread Stephan Beutel
Am 09.02.2011 10:30, schrieb chris derham: I need some help creating my context.xml file in a correct way. My application is based on Spring and Hibernate. I need to configure more than one datasource to access multiple databases at the same time. We use JNDI to set up our datasource. So in

Re: Context.xml for multiple datasources

2011-02-09 Thread chris derham
> > I need some help creating my context.xml file in a correct way. > > My application is based on Spring and Hibernate. I need to configure more > than one datasource > to access multiple databases at the same time. > > We use JNDI to set up our datasource. So in spring configuration, we have