这个压缩包里的都是超级经典的java例子
源代码在线查看: lookup.htm
Looking Up an Object from the Naming Service (Java Developers Almanac Example)
The Java Developers Almanac 1.4
Order this book from Amazon.
google_ad_client = "pub-6001183370374757";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_channel = "4777242811";
google_ad_type = "text_image";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "6666CC";
google_color_url = "6666CC";
google_color_text = "000000";
//-->
Home
>
List of Packages
>
javax.naming
[9 examples]
e473. Looking Up an Object from the Naming Service
This example looks up an object from the naming service.
try {
Object obj = ctx.lookup("Sample");
} catch (NamingException e) {
}
Related Examples
e472.
Creating an Initial Context to the Naming Service
e474.
Listing a Context in the Naming Service
e475.
Adding, Replacing, Removing, and Renaming a Binding in the Naming Service
e476.
Creating and Destroying a Subcontext in the Naming Service
e477.
Getting an Object's Fully Qualified Name
e478.
Using a URL as a Name to the Initial Context
e479.
Parsing a JNDI Composite Name
e480.
Parsing a JNDI Compound Name
© 2002 Addison-Wesley.