<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免费观看| 久久99热精品免费观看牛牛| MM1313亚洲精品无码久久| 亚洲国产美女在线观看| 亚洲成A人片在线观看WWW| 亚洲成网777777国产精品| 成年人免费视频观看| 国产免费女女脚奴视频网| 亚洲免费在线播放| 天黑黑影院在线观看视频高清免费| 久久精品国产亚洲AV天海翼| 中文字幕 亚洲 有码 在线 | 亚洲AV第一成肉网| 国产成人精品日本亚洲直接 | 91视频免费网址| 99久久精品毛片免费播放| 免费观看又污又黄在线观看| 亚洲精品国产第一综合99久久| 亚洲永久在线观看| 亚洲av产在线精品亚洲第一站| 亚洲蜜芽在线精品一区| 久久香蕉国产线看观看亚洲片| 亚洲日韩aⅴ在线视频| 国产亚洲自拍一区| 亚洲男人的天堂在线va拉文| 亚洲精品视频在线观看你懂的| 亚洲免费无码在线| 亚洲一区二区三区影院| 亚洲色偷偷偷鲁综合| 亚洲无人区一区二区三区| 亚洲精品乱码久久久久久久久久久久 | 免费观看国产网址你懂的| 久久99国产综合精品免费| 99精品视频在线观看免费播放| 久久精品成人免费观看| 精品一区二区三区无码免费视频| 国产精品成人观看视频免费| 无码国产精品一区二区免费式直播 | 亚洲人成网站色在线入口|