java - Significance of Resource name in tomcat context -
can please explain me significance of resource name in context.xml. question similar "how resource name attribute in tomcat's context.xml work?"
explaination: in server.xml have 2 contexts 2 different applications.
1.<context> <resource name="jdbc/app1"></resource></context> 2.<context> <resource name="jdbc/app2"></resource></context>
when use app1 both context resource name, both applications works fine. if give app2 application gives me error "cannot create jdbc driver of class '' connect url 'null'"
what problem?
the resource's name
more appropriately called path. path, rooted @ java:comp/env
, within jndi namespace. value used code locate object within jndi namespace @ same location.
ref: http://tomcat.apache.org/tomcat-8.0-doc/config/globalresources.html#resource_definitions
Comments
Post a Comment