How to get the proper JNDI initial context.
如何获取适当的JNDI初始环境。
Next you will learn how to configure the initial context.
接下来将了解如何配置初始上下文。
The node you configure in the initial context is taken as the root node.
在初始上下文配置的节点将作为根节点。
This property points to a class that provides an initial context factory.
该属性指向一个提供初始上下文工厂的类。
Obtain a JNDI initial context, supplied by the client application container.
获得客户机应用程序容器提供的JNDI初始上下文。
The initial context is a DN that specifies a particular node within the LDAP directory.
初始上下文是一个DN,它指定了LDAP目录内某个节点。
Different application servers provide their own initial context factories, as we'll see later.
我们在后面将会看到,不同的应用服务器提供它们自己的初始上下文工厂。
So far, you have used an initial context in three places: in Listing 5, Listing 6, and Listing 7.
目前为止,我们在三个位置使用了初始上下文:清单5、清单6和清单7。
It is not mandatory to use the same initial context for both the authenticator and populator beans.
并不强制要求authenticator和populatorbean使用相同的初始上下文。
If you specify the partners node as the initial context, Acegi looks for users only among child nodes of the partners node.
如果将partners节点指定为初始上下文,Acegi将只在partners节点的子节点中查找用户。
Spring will look up the connection factory in Jndi using the environment property and initial context specified in the JndiTemplate.
Spring将用JndiTemplate中指定的环境属性和初始上下文在JNDI中查询连接工厂。
The first constructor parameter specifies the initial context that the populator bean uses to read the business roles of an authenticated user.
构造函数的第一个参数指定了populatorbean用来读取经过验证用户的业务角色的初始上下文。
The third parameter is a reference to the same initial context that I introduced while discussing the BindAuthenticator constructor in Listing 5.
第三个参数是对讨论清单5中的BindAuthenticator构造函数时引入的相同初始上下文的引用。
Recall that once the initial context has been specified, all later search operations take place within the child nodes of that initial context node.
回想一下,当指定了初始上下文后,稍后将在该初始上下文节点的子节点内进行所有的搜索操作。
Once you specify the initial context, all later search operations (such as locating a particular user) take place within the child nodes of that node.
指定初始上下文后,将在该节点的子节点中执行所有的搜索操作(例如查找特定用户)。
The above configuration specifies the initial context factory as com.sun.jndi.fscontext.RefFSContextFactory and the provider URL as the file-based file:/C:/JNDI-Directory for JNDI lookup.
以上配置进行JNDI 查询时用 com.sun.jndi.fscontext.RefFSContextFactory指定初始上下文工厂,用基于文件的 file:/C:/JNDI-Directory作为提供者URL。
The above configuration specifies the initial context factory as com.sun.jndi.fscontext.RefFSContextFactory and the provider URL as the file-based file:/C:/JNDI-Directory for JNDI lookup.
以上配置进行JNDI 查询时用 com.sun.jndi.fscontext.RefFSContextFactory指定初始上下文工厂,用基于文件的 file:/C:/JNDI-Directory作为提供者URL。
应用推荐