在tomcat服务器上,我需要通过从Context.xml/Server.xml/Web.xml的弹出应用程序的jndi值来填充单身字符串列表。我发现没有标签携带列表参数不是环境/资源/参数。如何 - 从上下文填充单身字符串列表
我找到了一个解决
<context-param>
<param-name>SystemVariables</param-name>
<param-value>ex1.com,ex2.com,ex3.com</param-value>
</context-param>
从哪里捡的价值后,我不得不拆分然后填充列表。
但是以前我们使用的树脂,我们把JNDI像下面
<resource jndi-name="SystemVariables">
<type>com.example.SystemVariables</type>
<init>
<VarDescList>ex1.com</VarDescList>
<VarDescList>ex2.com</VarDescList>
<VarDescList>ex3.com</VarDescList>
</init>
</resource>
我们如何让它在Tomcat的工作吗?