开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜