JavaEE6
JavaEE 6 ã§ã¯ãELå¼ãä½æ°ã«å¼·åããã¦ã¾ããå®ã¯ãELå¼ã§ã¡ã½ããã³ã¼ã«ãã§ããããã«ãªã£ã¦ã¾ãã ããããã®åºå¼µæã§ãç´¹ä»ããã¦ã¾ããããããæ¨æºã§å ¥ãã®ã¯ããªãè¯ãæãï¼ä¾ãã°ãããhttp://d.hatena.ne.jp/Hirohiro/20100126/1264507979:title=â¦
ãã°ããéãããã¦ãã¾ãã¾ãããä»åã¯Java EE 6ã«å«ã¾ãã¦ããWebãã¬ã¼ã ã¯ã¼ã¯ã§ããJSF2.0ãç°¡åã«ããã£ã¦ã¿ããã¨æãã¾ããJSFã¯ãåãã¼ã¸ã§ã³ã®Java EE 5ããJava EEã«å«ã¾ããããã«ãªãã¾ãããã¤ã¾ããJava EEæºæ ã®ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã§â¦
ååã¯EJB(Stateless Session Bean)ã®ããããããã¤å¯¾è±¡ãè¦ã¦ã¿ã¾ããããCDI(æ§WebBeans)ã§simple bean*1ã ã¨ã©ããªãã®ãã¿ã¦ã¿ã¾ããã試ããSimpleBeanã¯ä»¥ä¸ã®ãããªãã¡ã½ããã1ã¤ã®ã³ã¼ãã§ãã package org.example; import javax.inject.Named; â¦
ååã§ã¯ãServlet + EJB 3.1ã¨ããçµã¿åããã®ãµã³ãã«ã試ãã«ä½ã£ã¦ã¿ã¾ãããä»åã¯Servlet + CDIã§ãã CDIã¯ãhttp://d.hatena.ne.jp/Hirohiro/20091228/1262006216:title=ã¨ããããã¢ãã¯ãªã¨ã³ããªã§æ¢ã«ç»å ´ãã¦ãã¾ãããç¥ããªã人ã¯å ¨ãç¥ããªâ¦
EJBã®å«ããã¦ããç¹ã¨ãã¦ããããã¤æéãããã¾ããã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã®å®è£ ã«ããã®ã§ãããæ°ãå¢ããã¨ã¨ã¦ã¤ããªãé ããªã£ã¦ãã¾ãå ´åãããã¾ãã GlassFishã®ããããããã¤ã¯ããªãéãæãã§ã¯ããã¾ãããEJBã®æ°ãå¢ããã¨ã©ãå¤åããâ¦
ååã¯ã»ããã¢ããããServletä½æã¾ã§è©¦ãã¦ã¿ã¾ãããJava EE 6ã§ã¯Servletã¯3.0ã¨ãªããweb.xmlã«æ¸ããªãã¦ãServletã¨ãã¦å®ç¾©ã§ããããã«ãªãã¾ããããã ãServletãæ¸ããªãã¦äºã¯ä»ãã»ã¨ãã©ãªãããããã¾ãããJavaã«éãããWebã¢ããªã¯ä½ãâ¦
ãµã¨ãJava EE 6ã£ã¦ãããªãªã¼ã¹ããã¦ããã ãªãã¨æããã¡ããã£ã¨è§¦ã£ã¦ã¿ããJava EE 6ãä»è§¦ããªãNetBeansã®æ¹ãè¯ãããã ãã©ãä»åã¯ä½¿ãæ £ãã¦ããEclipseã§ãã£ã¬ã³ã¸ã§ããEclipseã§ä»Java EE 6ã触ã£ã¦ã¿ããªããGlassFishã®ãã©ã°ã¤ã³ã使ãâ¦