这里面包含了一百多个JAVA源文件

源代码在线查看: e490. getting an object's schema from the directory.txt

软件大小: 551 K
上传用户: maple_78
关键词: JAVA
下载地址: 免注册下载 普通下载 VIP

相关代码

				This example reads an object's schema from the directory. 
				    try {
				        // Get context containing class definitions for cn=Ted Geisel entry
				        DirContext tedClasses = ctx.getSchemaClassDefinition("cn=Ted Geisel, ou=People");
				    
				        // Enumerate class definitions
				        NamingEnumeration enum = tedClasses.search("", null);
				        while (enum.hasMore()) {
				            DirContext entry = (DirContext)enum.next();
				            process(entry);
				        }
				    } catch (NamingException e) {
				    }
							

相关资源