This content has been marked as final. Show 2 replies
It is more the container that is knowing which settings to use. The container understands the Context.xml (it's structure was determined by the container authors) and every time you do
in your application the container will create a context object that has ability to look up many things configured inside the container. In your xml file you specified
so the container makes available a context object that is capable of looking up the resource that you named above.
<Resource auth="Container" ... name="jdbc/bd_tutorias" password...
i don't think that the resource in xml is a jndi configaration. I think it is the configaration for data source. data source uses that configaration to connect to the database to fetch the data. It is no way related to context, I mean jndi.