tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Strange behavior on Tomcat 9.0.5 about ResourceLink's "name" attribute in server.xml
Date Thu, 08 Mar 2018 18:56:31 GMT
On 08/03/18 18:53, Tarin Gamberini wrote:
> On 08/03/2018 17:52, Rémy Maucherat wrote:
>> On Thu, Mar 8, 2018 at 5:26 PM, Tarin Gamberini
>>> [cut]
>>> # PROBLEM
>>>
>>> I have two datasources in the same web application:
>>>
>>>     <ResourceLink global="jdbc/abc/ABC" name="jdbc/abc"
>>> type="javax.sql.DataSource"/>
>>>     <ResourceLink global="jdbc/abc/jkl/XXX_YYY" name="jdbc/abc/jkl"
>>> type="javax.sql.DataSource"/>
>>> [cut]
>>
>> Well, you have "abc" that s already bound and is a datasource, then you try
>> to create a subcontext "abc" and it doesn't work. 
> Sorry, I'm not sure I have understood what you mean. Just for clarification:
> 
> 1.
> By «you have "abc" that s already bound and is a datasource» are you
> thinking about the "abc" just after "jdbc/" in «global="jdbc/abc/ABC"» ?
> 
> 2.
> By «then you try to create a subcontext "abc"» are you thinking about
> the ending ABC in «global="jdbc/abc/ABC"» ?

No. Look at the names, not the global names.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message