
                         ExCatJ


  ExCatJ ?
  -----------

  ExCatJ  Java α׷ Exception ߻, α׷  
  ڵ αϴ α׷Դϴ. 

  
    
  ---------

    ڼ   Ʈ Ȯ  ֽϴ.
  (http://kldp.net/projects/excatj/)
  
  
  α׷ 䱸 
  -----------------

  ExcatJ Ű ؼ  α׷ ʿմϴ. 

   o  JVM 1.5 ̻ 

   o  Log4j (ExCatJ/Lib  )

  
  ExCatJ ȯ  
  -----------------

  ExCatJ  ȯ濡   ׽ƮǾϴ. 

   o  JVM 1.5.0_15

   o  Log4j 1.2.15   
  
   o  Windows XP ServicePack 2
   

  Installation  
  -----------------

  ϴ ġ ExCatJ.zip   Ǳϴ. 

 
   غ
  ---------------
  
   o  JAVA_HOME  ȯ溯 մϴ. 
      ex) windows 
          SET JAVA_HOME=C:\JAVA_1.5

		  
  ExCatJ  
  -----------
  
  ExCatJ ϱؼ 
  ͸ϰ ϴ JVM(Target VM)  ExCatJ    ʿմϴ.
  
   o  ͸ϰ ϴ Target JVM 
      Target JVM   ɼ ߰մϴ.
   
      -agentlib:jdwp=transport=dt_socket,server=y,address=[port][,launch=excatj.bat][,suspend=y|n]
   
      [port] : ϰϴ TCP Port ȣ 
      [,launch=excatj.bat] : Target JVM ExCatJ ڵ , 
                             ̶ suspend ɼǵ Բ y մϴ.
      [,suspend=y|n] : ExCatJ Target JVM ͸ ο  Target JVM ǵ 
                       ϰ ϸ ,syspend=n  մϴ. 
					    ɼ ϰų y ϸ Target JVM  ߰ ExCatJ 
					   ͸ ϱ  ϱ⸦ ٸϴ. 

      Examples)
	  
	  java -agentlib:jdwp=transport=dt_socket,server=y,address=8000,launch=excatj.bat,suspend=y test.org.archi.tools.excatj.testtrace
	  
	       8000 Ʈ ϰ testtraceα׷  excatj.bat α׷ ŵϴ. 
		   excatj Ǿ target jvm ӵǱ testtraceα׷  ߰ ٸϴ.
		   
      java -agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n test.org.archi.tools.excatj.testtrace
	  
	       8000 Ʈ ϰ, excatj ӿο  α׷ testtraceα׷ ˴ϴ. 
	       

	  ɼǿ  ڼ   URL մϴ. 
	  http://java.sun.com/j2se/1.5.0/docs/guide/jpda/conninv.html
	  
  
   o  ExCatJ  
	  ExCatJ bin丮 excatj.bat  ϸ ˴ϴ. 
	  
	  excatj.bat [JVM HostName:Port]
	  
	  [JVM HostName:Port] : Target JVM   hostname  Ʈȣ
	  
	  Examples)
	  
	  excatj.bat archiweb:8000
	   
	       archiweb Ʈ 8000 Ͽ ͸ մϴ. 

		   
  ExCatJ ɼ   
  ----------------

   o  excatj.properties
      ExCatJ ͸ Ŭ Exception Class  մϴ. 
   
      - exclude [<class pattern>, ... | "none"] :  class   α׿  
	  
	    Examples)
	    exclude java.*, javax.*, sun.*, com.sun.*, org.springframework.*, org.apache.*, com.ibatis.*

      - catch [uncaught|caught|all] <class id>|<class pattern> : α exception class 
	  
	    Examples)
	    catch all java.lang.Throwable
	  
      - catchdepth <exception catch depth#> :  α caller Լ ܰ
	  
	    Examples)
	    catchdepth 3

	  
   o  log4j.properties
      log4j  ɼ http://www.apache.org/  մϴ.    
   

   
  Apache Tomcat  ͸ 
  ---------------------------
  
  Apache Tomcat  ͸ ؼ   Ͽ ν 
  ͸   ֽϴ. 
  
   o  ȯ溯  

      SET JPDA_SUSPEND=n
      SET JPDA_TRANSPORT=DT_SOCKET
      SET JPDA_ADDRESS=8000

   o  tomcat  
   
      catalina.bat jpda start
  
  
  ---------------------------
  Thank you for using ExCatJ.
  ---------------------------