Tomcat JNDI +独立Java [英] Tomcat JNDI + Standalone Java

查看:86
本文介绍了Tomcat JNDI +独立Java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部

我知道不能从Tomcat外部访问Tomcat的JNDI提供程序,即不能使用独立的Java类来调用tomcat jndi.但这是旧版本的tomcat 5和6

I understand that one can't access Tomcat's JNDI provider from outside Tomcat i.e, can't use a stand-alone java class to invoke the tomcat jndi. But this was in older version tomcat 5 and 6

这里有没有人知道使用Tomcat7启动的最新版本是否可行?如果是这样,请告诉我.

Does anyone here has an idea if this is feasible with the latest versions staring from Tomcat7? If so, please let me know.

谢谢!

推荐答案

没有任何更改.通常只能从容器内部访问java:命名空间中的对象.

Nothing has changed. Objects in the java: namespace are only accessible from within the container as a rule.

这篇关于Tomcat JNDI +独立Java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆