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"» ? > Try using better paths > instead so that "abc" doesn't have to be both a subcontext and a datasource. To get things works I have already used a different path, something like the once tagged with "WORKS FINE" in the ending note of the original email. Trying to rephrasing the problem: Am I wrong asking Tomcat to understand JNDI name with subcontext for datasources, or should Tomcat accept global/name attributes values with subcontext? > Rémy > Thank you in advance for your kind help. Tarin www.taringamberini.com/en/blog --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org