2005-12-01ãã1ã¶æéã®è¨äºä¸è¦§
IMä¸ã«ããã³ã¨è¨ããã®ãæãã¦ããã£ãã®ã§è©¦ãã«æ¸ãã¦ã¿ãã è¯ãåãããªããæ¥è¨ã®ãã¿ã«ã ãåãã¦ãããæ¹ã«å¯¾ãã¦ã®å°è±¡ã¯ï¼ã ãã«ã·ã¹ãï¼ã¾ã¼ãæªããã¤ãããªãã å¤ãªã¤ãã ããè¯ãã¤ãã ããã¶ãã ã£ã¨è¨ã£ã¦ãä½å¹´ããã£ã¦ãªãããå¿ããâ¦
念ã®ãã以ä¸ã®Tomcatã§è©¦ããã¨ãã両æ¹ã¨ãDataSourceã®åå¾ã«æå apache-tomcat-5.5.12 apache-tomcat-5.5.14 ${TOMCAT_HOME}/conf/server.xmlã®GlobalNamingResourcesã«DataSourceã®è¨å®ã追å ã <GlobalNamingResources ã> ï¼ </globalnamingresources>
以åã¯ä»¥ä¸ã¨ãã«DataSourceã®æå®ããã¦ãã¾ãããã5.5ããã¯ã¾ãã¯ã§æå®ä»¥ä¸ã«ãé ç½®ãã¦æå®ããããã«ã ååãããã£ã¦ãã®ã§ä½ã§ãã¨æã£ããå¤ãã£ã¦ããã ã <Host ã> </host>
package lesson.java.lang; public class ThredDeadLockTest { static LockObject lockObjA = new LockObject("lockObjA"); static LockObject lockObjB = new LockObject("lockObjB"); public static void main(String[] args) throws InterruptedExceptionâ¦