This property points to a class that provides an initial context factory.
该属性指向一个提供初始上下文工厂的类。
Sounds simple -- but this is where the specific context factory that you chose could start to affect matters.
听起来简单 ――但是这里您所选择的特定上下文工厂就要产生影响了。
This program is invoked with three parameters: the context factory to be used, the provider URL, and the string containing the name to look for.
这个程序是用三个参数调用的:要使用的上下文工厂、providerURL和包含要查询的名字的字符串。
However, without the provider URL it will simply connect to localhost at port 900 (or whatever the default port number for your context factory is).
不过,如果没有providerURL,那么它将连接到localhost的900端口(或者您的上下文工厂的其他默认端口)。
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。
Registers the data context that is specified by a context factory.
注册上下文工厂指定的数据上下文。
Registers the data context that is specified by a context factory.
注册上下文工厂指定的数据上下文。
应用推荐