tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William <zhouhao64...@huawei.com>
Subject Failed to override global naming resources in specific app!
Date Wed, 27 Aug 2008 09:21:46 GMT
Hi,
 
description
webapp definition cannot override global one, even though
override attribute set to true.
Why? 
Is that the right way to define resource for common use and 
redefine it within specific webapp?
 
scenario
version: 5.5.20
global definition in conf/server.xml:
 
 <GlobalNamingResources>
  <Environment name="maxTTL" value="500"
         type="java.lang.Integer" override="true"/>
 </GlobalNamingResources>
 
webapp definition in WEB-INF/web.xml:
 
<env-entry>
  <env-entry-name>maxTTL</env-entry-name>
  <env-entry-value>800</env-entry-value>
  <env-entry-type>java.lang.Integer</env-entry-type>
</env-entry>
 
webapp reference of global in META-INF/context.xml:
<Context docBase="helloapp2" debug="5" reloadable="true">
 <ResourceLink name="maxTTL" global="maxTTL" type="java.lang.Integer">
 </ResourceLink>
</Context>
 
 
 
 
 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message