<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 閱讀(470) 評(píng)論(0)  編輯  收藏 所屬分類: Simple Java
    <2007年4月>
    25262728293031
    1234567
    891011121314
    15161718192021
    22232425262728
    293012345




    常用鏈接

    留言簿(10)

    隨筆分類(95)

    隨筆檔案(97)

    文章檔案(10)

    相冊(cè)

    J2ME技術(shù)網(wǎng)站

    java技術(shù)相關(guān)

    mess

    搜索

    •  

    最新評(píng)論

    閱讀排行榜

    校園夢(mèng)網(wǎng)網(wǎng)絡(luò)電話,中國(guó)最優(yōu)秀的網(wǎng)絡(luò)電話
    主站蜘蛛池模板: 日木av无码专区亚洲av毛片| 一区国严二区亚洲三区| 亚洲国产综合无码一区| sss在线观看免费高清| 亚洲高清最新av网站| 四虎国产精品成人免费久久| 亚洲日韩国产一区二区三区| 人禽伦免费交视频播放| 亚洲美女在线国产| 久久性生大片免费观看性| 亚洲狠狠婷婷综合久久久久| 无码精品人妻一区二区三区免费看| 水蜜桃亚洲一二三四在线 | 中文字幕专区在线亚洲| 国产精品内射视频免费| 亚洲欭美日韩颜射在线二| 国产日韩AV免费无码一区二区| 亚洲AV无码国产精品麻豆天美 | 亚洲日本一线产区和二线产区对比| 成人无码区免费A片视频WWW| 亚洲精品无码人妻无码| 国产成人无码区免费A∨视频网站| 另类专区另类专区亚洲| 一本色道久久综合亚洲精品| 久久99热精品免费观看动漫| 亚洲美女激情视频| 日韩免费观看的一级毛片| 成人无码区免费A∨直播| 亚洲欧洲日产韩国在线| 免费a级毛片大学生免费观看| 拍拍拍无挡免费视频网站| 亚洲黄色在线视频| 国产成人免费福利网站| 精品国产污污免费网站| 亚洲人精品亚洲人成在线| 亚洲国产aⅴ综合网| 亚洲人成免费网站| 免费很黄无遮挡的视频毛片| 亚洲国产精品久久久久婷婷老年| 成人爽A毛片免费看| 99免费精品视频|