So, has anyone ever gotten <DefaultContext> to work? I've read about a
lot of people not getting it to work in various forums, but I've never
heard a success story.
--Evan
Evan Kirkconnell wrote:
Hello all,
I've been struggling to setup a datasource that is accessible from all
my webapps. As I understand it, I define a
<Resource>(/Server/GlobalNamingResources/Resource)
and then a link it in a
<DefaultContext>(/Server/Engine/Host/DefaultContext) like so:
<mailto:users@tomcat.apache.org><DefaultContext>
<ResourceLink name="jdbc/apps" global="jdbc/apps"
type="javax.sql.DataSource"/>
</DefaultContext>
The above doesn't work, but this does:
<Context path="/apply">
<ResourceLink name="jdbc/apps" global="jdbc/apps"
type="javax.sql.DataSource"/>
</Context>
I have nothing special in my servlet's web.xml file. Is there any
reason this servlet wouldn't be using the declared default context?
Any help other than, "Don't use global resources", would be much
appreciated.
Thanks,
--Evan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]