Konstantin,
thx for your reply.

Do you know name of such a tool and application server which offers
configuration of database connection on basis of web.xml.resource-ref ?

regards
Jakub


On Thu, Apr 18, 2013 at 11:05 AM, Konstantin Kolinko <knst.koli...@gmail.com
> wrote:

> 2013/4/18 Jakub 1983 <jjaku...@gmail.com>:
> > I have tried google, but this links don't explain me, eg 4 states
> >
> > <resource-ref>
> >   <res-ref-name>jdbc/primaryDB</res-ref-name>
> >   <jndi-name>jdbc/PrimaryDBInTheContainer</jndi-name></resource-ref>
> >
> > I have already tried it, and it doesn't work.
> >
> > In my opinion <resource-ref> is useless under tomcat,
> >
> > or better said, it has only informative value, at least in case of
> > database connection.
> >
>
> Yes, it has only informative value.
>
> E.g. if you have to deploy your web application to some other web
> server, not Tomcat, and you have to use a tool to do such deployment,
> this element says that your application needs a database connection.
> Thus the tool will offer you to configure one.
>
> Configuration of connection itself is always server-specific. Thus it
> is in context.xml, not web.xml.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to