只要确保在每次需要建立连接时,重用命名服务而不是实例化远程上下文。
Just be sure to reuse the naming service rather than instantiating a remote context every time you need to employ one.
Spring 还利用一个以 XML 编写的应用程序上下文来实例化、配置和组装应用程序中的对象。
Spring also utilizes an application context written in XML to instantiate, configure, and assemble the objects in your application.
实例化本地jndi上下文。
应用推荐