Tomcatã«ã¦ï¼ãã¼ã¿ãã¼ã¹ã«ã¢ã¯ã»ã¹ããããã®ãã¼ã¿ã½ã¼ã¹ã®å®ç¾©çãè¡ããã¡ã¤ã«ããããcontext.xmlã§ãã contextã¨ã¯ã¤ã¾ãã¢ããªã±ã¼ã·ã§ã³ã®ãã¨ãªã®ã§ãcontext.xmlã¯ã¢ããªã±ã¼ã·ã§ã³ã®è¨å®ãã¡ã¤ã«ã¨ãã£ãï¼æãã§ããããã contextã«é¢ãããã¼ã¸ã¯ä»¥ä¸ãåç §ã Apache Tomcat Configuration Reference (6.0.53) - The Context Container http://www.oki.com/jp/oss/document/tomcat/tomcat-6.0.14/build/tomcat-docs/config/printer/context.htmlï¼æ¥æ¬èªï¼ ããã§ããã®context.xmlã®é ç½®å ´æã¯ï¼ç¨®é¡åå¨ãã¾ãã 1.%CATALINA_HOME/conf/server.xml serve
æçãåãè ãTomcatãåã¯ä¸ä½ãã©ã®ç¨åº¦ã¾ã§å¤ãã®ã¹ã¬ãããä½æãã¦ãªã¯ã¨ã¹ãããã°ãäºãåºæ¥ããã ãï¼ ã¾ãæåã«Linuxã®ã¹ã¬ããã©ã¤ãã©ãªã«ã¤ãã¦è»½ãè¨åãã¦ãããã°ãªãã¾ããLinuxã®ã¹ã¬ããã©ã¤ãã©ãªã«ã¯äºç¨®é¡ããã ã¾ããæ¨ä»ã®Linuxï¼Kernel 2.6åã³ãã以éï¼ã§ç¨ãããã¦ããNTPLï¼Native POSIX Thread Libraryï¼ãããã¯1:1ã¢ãã«ã®ã¹ã¬ããã©ã¤ãã©ãªã§ãã¹ã¬ãããããã»ã¹ã¨ãã¦å®è£ ãã¦ãããSolarisãªã©ã§ã¯ããããLWP(Light Weight Process)ããã¦ã¹ã¬ãããå®è£ ãã¦ããã®ã ããã©ããLinuxã§ã¯ã¹ã¬ãããããã»ã¹ãåãtask_structæ§é ä½ã¨ãã¦æ±ããCOEï¼Context Of Executionãå®è¡ã³ã³ããã¹ãï¼ãããããç¨ã«å²ãå½ã¦ã¦ç¨ãã¦ããããã ãåããã»ã¹ã¯ç¬ç«ããä»®æ³ã¡ã¢ãª
ä¸è¨ã®è³ªåãè¦ã¤ããã®ã§ãã¡ãã£ã¨èª¿ã¹ã¦ã¿ãã getReaderã¨getParamaterç³»ã£ã¦ä¸åã®ãªã¯ã¨ã¹ãã§åæã«ä½¿ããªãã®ï¼ http://bwind.blog19.fc2.com/blog-entry-15.html Tomcatã®Servlet API ServletRequest#getParameter()å ã«ã¯ä¸è¨ã®è¨è¼ãããã http://mergedoc.sourceforge.jp/tomcat-servletapi-5-ja/javax/servlet/ServletRequest.html HTTP POST ãªã¯ã¨ã¹ãã§éã£ããªã©ããã©ã¡ã¼ã¿ã®ãã¼ã¿ããªã¯ã¨ã¹ãã®ã¡ãã»ã¼ã¸ããã£ã§éãããå ´åã getInputStream() ã getReader() ã¡ã½ããã使ã£ã¦ç´æ¥ã¡ãã»ã¼ã¸ããã£ãèªã¿è¾¼ãæä½ã¯ã ãã®ã¡ã½ããã®å®è¡ã«å½±é¿ãä¸ãããã¨ãããã¾
ãã®è¨äºã¯ Java EE Advent Calendar 2012 ã®5æ¥ç®ã§ãï¼ Apache TomEE Apache TomEEã¯å»å¹´ã®JavaOne 2011ã§çºè¡¨ããããTomcatãã¼ã¹ã®Java EE 6 (Web Profile)対å¿ã®Java EEã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã§ããã¨ã¿ã¼ã¨èªã¿ã¾ãã ããã«RESTfulãªWebãä½ãã®ã«å¿ é ãªJAX-RSãè¼ããJAX-RSçã¨ã¿ã¼åããã¾ããã¾ããCertifitedã§ã¯ããã¾ããããFull Profileã«è¿ã¥ããæ©è½ãæã¤ã¨ã¿ã¼ã·ãã (TomEE Plus) ã¨ãããã®ãããã¾ãã å¿ è¦ã«å¿ãã¦ä½¿ããããã¨ã¿ã¼åãé¸ã¶ãã¨ãã§ãã¾ããããããã®éãã¯ããã®æ¯è¼è¡¨ã解ããããã§ãã è¯ã ãã(?)çºè¡¨ã®å¾ã¯ãã¾ãé²å±ã®ãªãæ¥ã ãç¶ãã¾ããããä»å¹´ã®JavaOne 2012åã«ãã¼ã¸ã§ã³1.5ããªãªã¼ã¹ããã¾ããã以å
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}