initialcontext
-
You simply create an InitialContext ( with no parameters ) and start using it .
您只需创建InitialContext(不含参数)就可开始使用。
-
The middle section contains the events that result from the InitialContext . lookup () method .
中间部分包含InitialContext.lookup()方法中产生的事件。
-
Once you 've created the properties , you 're ready to create the InitialContext instance and use it .
创建好属性之后,就可以创建并使用InitialContext实例了。
-
Then , the code gets the reference to the JMS topic using the same lookup method on the InitialContext object .
然后,代码使用InitialContext对象上相同的查询方法(lookup)来获取JMS主题的引用。
-
For the creation of the InitialContext object in the top section , there are no obvious differences between this scenario and the first one .
对于上方部分的InitialContext对象创建,此场景与前一个场景之间不存在明显的区别。
-
Instead of using the ActiveMQConnectionFactory concrete implementation , this Java code uses the InitialContext object to " look up " the specific connection factory implementation .
以上Java代码没有使用ActiveMQConnectionFactory的具体实现,而是使用了InitialContext对象来“查找(lookup)”指定的连接器工厂实现。
-
By default , the InitialContext factory is defined in jndi . properties , and the factory class has defaults for a server URL and a port number .
在默认情况下,InitialContext工厂是在jndi.properties中定义的,这个工厂类有默认的服务器URL和端口号默认值。
-
To make the connection through JNDI , you must use a number of Geronimo-specific properties to create the InitialContext instance , which is then used to perform lookups .
要通过JNDI进行连接,必须使用大量特定于Geronimo的属性来创建InitialContext实例,该实例用于执行查询。
-
This class , along with details of nameserver URL and port number , is used to generate the InitialContext class that you use to interact with the namespace .
这个类连同命名服务器URL和端口号的详细信息,用于生成与名称空间交互的InitialContext类。
-
While there are subclasses of InitialContext that are specific to directory operations , such as InitialDirContext , the generic class will do the job .
尽管有一些特定于目录操作的InitialContext子类(如InitialDirContext),但通用类将完成此任务。