JNDI
RMI ã¬ã¸ã¹ããªãµã¼ãã¹ãããã¤ã
Java Naming and Directory InterfaceTM (JNDI)
http://java.sun.com/j2se/1.4/ja/docs/ja/guide/jndi/jndi-rmi.html
J2EEã®éçºã§é ã«æ¥ãã®ãJNDIããEJBããJTAãããã³ã³ãããå®è£
ãæã£ã¦ãã¦ã©ã¤ããµã¤ã¯ã«ã管çãã¦ãã¦
ãããã³ã³ããããã¯ã¨ã³ãã§é£æºãã¦ãããã¦(æããã¦ççµåã¨ãããã®ã)ãJ2SEç°å¢ã®ã·ã³ãã«ãªã¢ããªã±ã¼ã·ã§ã³ãã
æåºããåºæ¥ãªãã¨ããã ããããªééAPãµã¼ãã«å¯¾ããã¢ã³ãã¨ãã¦ã©ã¤ãã¦ã§ã¤ãã³ã³ãã(DIã³ã³ãã)ãåºã¦ãã¦ããã
ã§APãµã¼ãã¯J2EEã¿ã¼ã²ããã§DIã³ã³ããã¯æ±ç¨ã®ãªãã¸ã§ã¯ã管çã¨ç®çã¯éãã®ã ããã©ããã¨ãã¨J2EEã®ã¹ããã¯ã ã¨
å®è£
ãxmlã§ç°¡åã«ã¹ã¤ããã§ãã¾ãããã¨ç´æãã¦ããããã©å®éã¯é¢åã§ã¹ã¤ãããªãã¦ã§ãã¾ãããã¨ããã¨ãããåé¡ã§(ã¨ããã¨ã¾ãåé¡å±±çããªã®ã¯çç¥ã£ã¦ã)ãJ2EEãµã¼ãã®å®è£
å®ç¾©ã楽ã§(EJB3ã®æ¹å?)ãCUIã¢ããªããã¹ãç°å¢ã§ã¯1ç§ã§ã³ã³ãããç«ã¡ä¸ããã©ã¤ãã¦ã§ã¤ãã¢ã¼ãã¿ããã®ããã£ããã©ã¤ãã¦ã§ã¤ãã³ã³ããããããªæµè¡ããªãã£ãããããªãããªãã¨æãã
ã§DIã³ã³ããã®ãªãã¸ã§ã¯ããã¡ã¯ããªããååãã¼ã¹ã§ãªãã¸ã§ã¯ããåå¾ããã¨ãããDIã³ã³ããä¾åã«ãªã£ã¡ããã®ã£ã¦ã
JNDIã¤ã³ã¿ã¼ãã§ã¼ã¹çã«J2SEã¹ããã¯ãªAPIã§çµ±ä¸çã«åå¾ã§ããã°ããã®ã«ãªãã¨æã£ããã§ã³ã³ããå®è£
ãSeasar2ã§ãspringã§ãããã§ãããã¨ããæãã§ã
ã¨è¨ãã¤ã¤ããã¶ãsunå®ç¾©ã®ã¹ããã¯ã ã¨ä½ãã£ã¦ãé¢åã ããã©ã¤ãã¦ã§ã¤ãå¢ãã¹ããã¯ãªã¼ãã«ãªãã®ããããã§ããããªã