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




    常用鏈接

    留言簿(10)

    隨筆分類(95)

    隨筆檔案(97)

    文章檔案(10)

    相冊

    J2ME技術網站

    java技術相關

    mess

    搜索

    •  

    最新評論

    閱讀排行榜

    校園夢網網絡電話,中國最優秀的網絡電話
    主站蜘蛛池模板: 亚洲一区AV无码少妇电影☆| 久久久久国产精品免费免费搜索 | 夜色阁亚洲一区二区三区| 在线观看亚洲AV每日更新无码| 亚洲精品成人网久久久久久| 日本系列1页亚洲系列| 国产免费人人看大香伊| 春暖花开亚洲性无区一区二区| 在线日韩av永久免费观看| 久久综合亚洲色hezyo| 国产色婷婷精品免费视频| 视频一区二区三区免费观看| 国产精品酒店视频免费看| 四虎永久在线精品免费一区二区| mm1313亚洲精品无码又大又粗| 一级做a爰片久久毛片免费看 | 亚洲国产天堂久久综合| 国产无限免费观看黄网站| 久久久久久a亚洲欧洲aⅴ| 久久精品无码专区免费青青| 亚洲伊人久久大香线焦| 国产精品久免费的黄网站| www.av在线免费观看| 无码人妻AV免费一区二区三区| 亚洲欧洲第一a在线观看| 在线观看免费人成视频色9| 亚洲AV无码一区二区一二区 | 国产成人久久AV免费| 亚洲国产日韩精品| 亚洲福利精品电影在线观看| 午夜精品射精入后重之免费观看| 亚洲日本人成中文字幕| www国产亚洲精品久久久日本| 两个人看的www高清免费视频| 亚洲视频在线免费看| 国产色爽女小说免费看| 国产一级淫片a免费播放口| 亚洲区不卡顿区在线观看| 99re热精品视频国产免费| 亚洲精品蜜夜内射| 亚洲国产精品va在线播放 |