How to - Tomcat JNDI resource for a spreadsheet/any simple file?
I would like to configure a spreadsheet or some simple file as a resource for my we开发者_Python百科b application through Tomcat. Something like JDBC data source. Is it possible? How?
If you want to pass the path to some resource, you can use the VM argument: something like this...
-D<property_name>=<path_to_resource>
See the documentation for Tomcat Resources. You just have to write yourself an LdapObjectFactory, very easy, and refer to it in a Resource entry in context.xml.
精彩评论