<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 97,  comments - 93,  trackbacks - 0
    Today with tomcat admin, a Graphic interface for us to config the JNDI for our program,I configured the context and connection pool jioning IBM DB2 ExC-9.Actually,JNDI is an API specified in Java technology that provides naming and directory functionality to applications written in the Java programming language. It is designed especially for the Java platform using Java's object model. Using JNDI, applications based on Java technology can store and retrieve named Java objects of any type. In addition, JNDI provides methods for performing standard directory operations, such as associating attributes with objects and searching for objects using their attributes (Name-Value,context).JNDI is also defined independent of any specific naming or directory service implementation. It enables applications to access different, possibly multiple, naming and directory services using a common API. Different naming and directory service providers can be plugged in seamlessly behind this common API. This enables Java technology-based applications to take advantage of information in a variety of existing naming and directory services, such as LDAP, NDS, DNS, and NIS(YP), as well as enabling the applications to coexist with legacy software and systems. Using JNDI as a tool, we can build new powerful and portable applications that not only take advantage of Java's object model but are also well-integrated with the environment in which they are deployed.
    A directory is typically used to associate attributes with objects. A person object, for example, can have a number of attributes, such as the person's surname, fisrtName,telephone numbers, electronic mail address and so on. Using JNDI, to retrieve the email address of a person object, the code looks as follows.
    1 Attribute personAttribute=directory.getAttributes(personName).get("email");
    2 String email = (String)personAttribute.get();
    (Recently,finding that blogjava can help us format our code,that's perfect,but if can max the editor area which will enhance the function and coursely be better:).)
    An intuitive model for the Java programmer is to be able to lookup objects like printers and databases from the naming/directory service. Using JNDI, to lookup a printer object, the code looks as follows. (it's important and most used)
    1 Printer printer =(Printer)namespace.lookup(printerName);
    2 printer.print(document);

    posted on 2007-04-08 15:10 wqwqwqwqwq 閱讀(471) 評論(0)  編輯  收藏 所屬分類: Simple Java
    <2007年4月>
    25262728293031
    1234567
    891011121314
    15161718192021
    22232425262728
    293012345




    常用鏈接

    留言簿(10)

    隨筆分類(95)

    隨筆檔案(97)

    文章檔案(10)

    相冊

    J2ME技術網站

    java技術相關

    mess

    搜索

    •  

    最新評論

    閱讀排行榜

    校園夢網網絡電話,中國最優秀的網絡電話
    主站蜘蛛池模板: 深夜免费在线视频| 精品无码专区亚洲| 无码A级毛片免费视频内谢| 亚洲精品一品区二品区三品区| 亚洲免费视频一区二区三区| 久久亚洲2019中文字幕| 国产成人自产拍免费视频| 亚洲一区二区三区自拍公司| 三级网站免费观看| 老色鬼久久亚洲AV综合| 黄色网址免费大全| 亚洲欧美日韩自偷自拍| 国产三级免费电影| 狠狠躁狠狠爱免费视频无码| 亚洲乱码中文字幕综合| 人妻丰满熟妇无码区免费| 亚洲午夜精品一区二区公牛电影院| 日韩精品无码区免费专区| 亚洲AV无码一区二区三区电影| 内射无码专区久久亚洲| 免费在线中文日本| 亚洲制服丝袜第一页| 亚洲а∨天堂久久精品| 永久免费av无码网站yy| 国产成人精品亚洲日本在线| 国产做床爱无遮挡免费视频| 精品免费久久久久国产一区| 亚洲一本综合久久| 永久免费毛片手机版在线看| a高清免费毛片久久| 亚洲精品一卡2卡3卡三卡四卡| 日本特黄特色免费大片| 999zyz**站免费毛片| 精品亚洲456在线播放| 亚洲欧洲日产国码一级毛片| 亚洲免费观看网站| 国产成人 亚洲欧洲| 久久亚洲AV成人出白浆无码国产 | 亚洲Av无码国产情品久久 | 亚洲无线码一区二区三区| 国产精品免费观看|