I have several groups of webapps -- all webapps in the same group access the same database. I am defining a <Resource> and <ResourceParams> in server.xml and using JNDI to acquire a DataSource (I'm using the Jakarta Commons database connection pool).
The question is, should I define a <Resource>/<ResourceParams> for each webapp Context, or should I just define a single <Resource>/<ResourceParams> for each database within the <GlobalNamingResources> element. The former would be a lot more maintenance, since I would have multiple copies of the <Resource>/<ResourceParams> definition for the same database (for every webapp that used that database). But I was wondering if there were any advantages/disadvantages to having a single global <Resource>/<ResourceParams> shared among a group of webapps, or each webapp defining its own <Resource> /<ResourceParams>. Ideally, in my case, all webapps that use the same database use the same host, so I would define the <Resource>/<ResourceParams> within the <Host>, but that is not permitted --- they can only be defined globally or within a Context. Thanks, Charlie --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
