On 09/03/18 08:42, Tarin Gamberini wrote:
> On 8 March 2018 at 20:44, Christopher Schultz <ch...@christopherschultz.net>
> wrote:
> 
>> [cut]
>> On 3/8/18 1:56 PM, Mark Thomas wrote:
>>> 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.
>> [cut]
>> each part has to have the expected type,
>> like this:
>>
>> comp:env -> context
>>             java -> context
>>                     jdbc -> context
>>                             abc -> DataSource
>>                                    [can't create a path below a DS]
>>
>> Hope that helps,
>>
> Yes, it have helped me a lot.
> 
> I know about JNDI hierarchy but not about the type.
> 
> Sorry for bothering you all, I'll review JNDI during this weekend.

No need to apologise. You asked a good (clear, well-written) question
and the community provided the answer. I learned something along the way
and I'm sure others did to. That is the mailing list worked exactly as
it is meant to.

Mark

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

Reply via email to