Web
Images
Videos
Academic
Dict
Maps
More
Flights
Notebook
javax.naming
Web
命名包
Web Definition
1.
命名包
+ + +
命名包
(
javax.naming
),包含访问基本的命名服务需要用到的Java类和接口。+ + + 目录包(javax.naming.directory)…
dev.sei.pku.edu.cn
|
Based on 1 page
Sample Sentence
Definition:
All
All
,
命名包
命名包
Category:
All
All
,
Oral
Oral
,
Written
Written
,
Title
Title
,
Technical
Technical
Source:
All
All
,
Dictionary
Dictionary
,
Web
Web
Difficulty:
All
All
,
Easy
Easy
,
Middle
Middle
,
Hard
Hard
More sentence filters
Hide sentence filters
1.
Fully
qualified
name
of
a
class
implementing
javax
.
naming
.
InitialContextFactory
interface
.
实现
javax.naming.InitialContextFactory
接口
的
类
的
完全
限定
名
。
shí xiàn
javax.naming.InitialContextFactory
jiē kǒu
de
lèi
de
wán quán
xiàn dìng
míng
。
www.ibm.com
2.
If
you
get
a
javax
.
naming
. CommunicationException
,
verify
the
host
name
and
port
of
the LDAP
server
.
如果
得到
一个
javax.naming.CommunicationException
,
那么
请
检查
此
LDAP
服务器
的
主机
名
和
端口
。
rú guǒ
dé dào
yī gè
javax.naming.CommunicationException
,
nà me
qǐng
jiǎn chá
cǐ
LDAP
fú wù qì
de
zhǔ jī
míng
hé
duān kǒu
。
www.ibm.com
3.
The
javax
.
naming
.
InitialContext
instance
is
created
using
specific
initial
context
factory
.
使用
特定
的
初始
上下文
工厂
创建
javax.naming.InitialContext
实例
。
shǐ yòng
tè dìng
de
chū shǐ
shàng xià wén
gōng chǎng
chuàng jiàn
javax.naming.InitialContext
shí lì
。
www.ibm.com
4.
To
do
this
,
SimpleJNDI
.
java
had
to
import
two
new
packages
:
javax
.
sql
and
javax
.
naming
.
要
完成
这
一
操作
,
SimpleJNDI.java
必须
导入
两个
新
包
:
javax.sql
和
javax.naming
。
yào
wán chéng
zhè
yī
cāo zuò
,
SimpleJNDI.java
bì xū
dǎo rù
liǎng gè
xīn
bāo
:
javax.sql
hé
javax.naming
。
www.ibm.com
5.
In
the Organize Imports
wizard
,
select
javax
.
naming
.
context
type
.
在
OrganizeImports
向导
中
,
选择
javax.naming.context
类型
。
zài
OrganizeImports
xiàng dǎo
zhōng
,
xuǎn zé
javax.naming.context
lèi xíng
。
www.ibm.com
6.
The
base
class
for
making a JNDI
connection
is
javax
.
naming
.
InitialContext
.
进行
JNDI
连接
的
基
类
是
javax
.
jìn xíng
JNDI
lián jiē
de
jī
lèi
shì
javax
.
www.ibm.com
7.
Use
the
javax
.
naming
.
InitialContext
class
lookup
methods
to
locate
the
resources
.
使用
javax.naming.InitialContext
类
查找
方法
以
定位
资源
。
shǐ yòng
javax.naming.InitialContext
lèi
chá zhǎo
fāng fǎ
yǐ
dìng wèi
zī yuán
。
www.ibm.com
8.
In
the
code
below
,
a
handle
to the
javax
.
naming
.
directory
. DirContext
object
is
obtained
.
在
下面
的
代码
中
,
将
获得
javax.naming.directory.DirContext
对象
的
一个
句柄
。
zài
xià mian
de
dài mǎ
zhōng
,
jiāng
huò de
javax.naming.directory.DirContext
duì xiàng
de
yī gè
jù bǐng
。
www.ibm.com
9.
It
is
through
the
javax
.
naming
. directory. DirContext
object
that
you
have
a
connection
to
your LDAP
server
.
通过
javax.naming.directory.DirContext
对象
,
您
就
有
了
一个
到
LDAP
服务器
的
连接
。
tōng guò
javax.naming.directory.DirContext
duì xiàng
,
nín
jiù
yǒu
liǎo
yī gè
dào
LDAP
fú wù qì
de
lián jiē
。
www.ibm.com