Search

'good/Frameworks'에 해당되는 글 4건

  1. 2011.01.07 Spring Insight 소개 및 설치,사용
  2. 2009.12.29 ibatis 매핑시 삽질
  3. 2009.12.22 AOP
  4. 2009.12.08 IBATIS LIKE 쿼리 작성시

Spring Insight 소개 및 설치,사용

good/Frameworks 2011. 1. 7. 13:57 Posted by coodnoob
Spring Insight란 무엇인가?

스프링 인사이트는 한마디로 웹어플리케이션용 모니터링 도구입니다. 

스프링인사이트에서는 웹어플리케이션에서 일어나는 JDBC 쿼리를 직접 확인 할 수 있고, 스프링 빈의 상호작용, 외부 서비스 호출하는 과정을 상세히 볼 수 있습니다.


Spring Insight 다운로드 및 설치


Spring Insight를 설치하기 위해서는 우선 tc Server를 설치하고 insight template을 이용하여 tc Runtime instance를 생성하여야 합니다.
tc Server의 종류에는 세가지가 있는데 각각 Developer Edition, Standard Edition, Spring Edition이 있습니다.
tc Server는 Apache Tomcat 기반의 웹어플리케이션서버입니다. (다른점은 여기에 -> http://static.springsource.com/projects/tc-server/2.1/getting-started/html/ch03s02.html)

그래서인지 Spring Insight는 다른 컨테이너를 지원하지 않습니다. (http://forum.springsource.org/showthread.php?t=89998

각각에 대한 설명은 http://static.springsource.com/projects/tc-server/2.1/getting-started/html/ch03s03.html 이 곳을 참조하면 되겠습니다.

각각의 에디션은 http://www.springsource.com/products/springsource-download-center 이 곳에서 다운받을 수 있습니다.

012
<다운로드 연속동작>

원하는 에디션을 클릭하면 사용자 동의를 필요로 하는 입력양식 폼이 나타납니다. 
양식폼을 채우고 라이센스에 동의하는 체크박스를 클릭하면 다운로드 할 수가 있습니다.

이 문서에서는 Developer Edition을 다운로드 하였습니다. 
이 문서를 작업한 컴퓨터의 환경
OS : Window XP - SP3 , CPU : Core2 Duo T8100 , RAM : 2GH

1)  다운로드 받은 springsource-tc-server-developer-2.1.X.RELEASE.zip 파일의 압축을 적당한 폴더에 풀고(여기서는 C:\home\tcserver\) 
2) Command Prompt(명령 프롬프트)를 실행을 합니다.
3) 좀전에 압축을 푼 디렉토리로 이동을 합니다.
cd C:\home\tcserver\springsource-tc-server-developer

4) insight 템플릿을 이용하여 insight instance를 생성합니다.
tcruntime-instance.bat insight-instance -t insight

5) 다음으로 위에서 설치된 tc Runtime instance를 윈도우 서비스로 install하고 시작합니다.
tcruntime-ctl.bat insight-instance instaill
tcruntime-ctl.bat insight-instance start


에디션 마다 설치방법이 약간씩 다르기 때문에 http://static.springsource.com/projects/tc-server/2.1/getting-started/html/ch06s02.html#install-developer-edition 여기를 참조하면 참조씁니다.

6) 설치가 완료되면 브라우저에서 http://localhost:8080/insight 주소를 입력하면 서비스가 실행 중인지 확인 할 수 있습니다. (포트는 insight-instance\conf 안의 server.xml에서 변경할 수 있습니다.)

<Spring Insight>

이것으로 설치가 완료 되었습니다.


Spring Insight 테스트

1) 이 URL을 참조하면 간단한 웹어플리케이션 생성 및 ANT를 이용한 배포까지 할 수 있습니다.

2) 위 URL을 참조해서 만들어진 hello.war를 다음과 같이 insight-instance\webapps에 카피를 합니다.
<hello.war 설치>

3) 브라우저를 두개 실행시켜서 한쪽은 방금만든 웹어플리케이션(hello), 한쪽은 Spring Insight 어플리케이션 주소를 입력합니다.

hello 웹어플리케이션에서 발생한 모든일 들을 Spring Insight가 실행되고 있는 웹브라우져에서 확인 할 수 있습니다.

이렇게 하는 방법도 있고 STS(SpringSource Tool Suite)를 이용하는 방법도 있습니다. 

사용된 예제와 참고한 사이트의 출처:

Using Spring Insight

Getting Started with tc Server

스프링인사이트 소개 동영상





'good > Frameworks' 카테고리의 다른 글

ibatis 매핑시 삽질  (0) 2009.12.29
AOP  (0) 2009.12.22
IBATIS LIKE 쿼리 작성시  (0) 2009.12.08

ibatis 매핑시 삽질

good/Frameworks 2009. 12. 29. 10:34 Posted by coodnoob
<?xml version="1.0" encoding="euc-kr"?> <-- 한글로된 디비 정보가 매핑이 안되고 null이 발생 된다. 오류는 안나고 null이 들어오는 상황 (상관쿼리 사용시)
<!DOCTYPE sqlMap
PUBLIC "-//ibatis.apache.org/DTD SQL Map 2.0/EN"
"http://ibatis.apache.org/dtd/sql-map-2.dtd">

<sqlMap namespace="InsaMemberLocal">
<resultMap id="InsaMemberLocalDTO" class="insabase3.dto.InsaMemberLocalDTO">
<result property="addr" column="addr"/>
<result property="birthday" column="birthday"/>
<result property="birthgubun" column="birthgubun"/>
<result property="classes" column="classes"/>
<result property="curstate" column="curstate"/>
<result property="detailaddr" column="detailaddr"/>
<result property="duty" column="duty"/>
<result property="email" column="email"/>
<result property="endday" column="endday"/>
<result property="gender" column="gender"/>
<result property="id" column="id"/>
<result property="marry" column="marry"/>
<result property="namechi" column="namechi"/>
<result property="nameeng" column="nameeng"/>
<result property="namekor" column="namekor"/>
<result property="orgcode" column="orgcode"/>
<result property="phonecell" column="phonecell"/>
<result property="phoneco" column="phoneco"/>
<result property="phonehome" column="phonehome"/>
<result property="position" column="position"/>
<result property="ssn" column="ssn"/>
<result property="startday" column="startday"/>
<result property="zipcode" column="zipcode"/>
<result property="curstatename" column="CURSTATENAME"/>
<result property="orgname" column="ORGNAME"/>
<result property="classesname" column="CLASSESNAME"/>
<result property="dutyname" column="DUTYNAME"/>
<result property="positionname" column="POSITIONNAME"/>
</resultMap>
<select id="getMember2" resultMap="InsaMemberLocalDTO" resultClass="insabase3.dto.InsaMemberLocalDTO" parameterClass="String">
SELECT I.ID, I.NAMEKOR, I.NAMECHI, I.NAMEENG, I.SSN, I.BIRTHGUBUN, I.BIRTHDAY, I.MARRY, I.GENDER, 
         I.POSITION, (SELECT NAME FROM CODE_DETAIL, CODE WHERE CODE_DETAIL.CODE=CODE.CODE AND CODE.KIND IN ('직위코드') AND DETAILCODE=I.POSITION) POSITIONNAME,
         I.DUTY, (SELECT NAME FROM CODE_DETAIL, CODE WHERE CODE_DETAIL.CODE=CODE.CODE AND CODE.KIND IN ('직책코드') AND DETAILCODE=I.DUTY) DUTYNAME,
         I.CLASSES, (SELECT NAME FROM CODE_DETAIL, CODE WHERE CODE_DETAIL.CODE=CODE.CODE AND CODE.KIND IN ('직급코드') AND DETAILCODE=I.CLASSES) CLASSESNAME,
         I.STARTDAY, I.ENDDAY, I.ORGCODE, O.ORGNAME, 
         I.CURSTATE, (SELECT NAME FROM CODE_DETAIL, CODE WHERE CODE_DETAIL.CODE=CODE.CODE AND CODE.KIND IN ('재직코드') AND DETAILCODE=I.CURSTATE) CURSTATENAME,
         I.ZIPCODE, I.ADDR, I.DETAILADDR, I.PHONEHOME, I.PHONECELL, I.PHONECO, I.EMAIL
FROM INSA_MEMBER I, ORG_BASE O
WHERE I.ID=#id#
AND I.ORGCODE = O.ORGCODE
</select>
</sqlMap>

'good > Frameworks' 카테고리의 다른 글

Spring Insight 소개 및 설치,사용  (0) 2011.01.07
AOP  (0) 2009.12.22
IBATIS LIKE 쿼리 작성시  (0) 2009.12.08

AOP

good/Frameworks 2009. 12. 22. 10:48 Posted by coodnoob

'good > Frameworks' 카테고리의 다른 글

Spring Insight 소개 및 설치,사용  (0) 2011.01.07
ibatis 매핑시 삽질  (0) 2009.12.29
IBATIS LIKE 쿼리 작성시  (0) 2009.12.08

IBATIS LIKE 쿼리 작성시

good/Frameworks 2009. 12. 8. 11:25 Posted by coodnoob
SELECT ZIPCODE,SIDO, GUBUN, DONG, JUSO FROM ZIPCODE WHERE DONG LIKE #dong#  || '%'


'good > Frameworks' 카테고리의 다른 글

Spring Insight 소개 및 설치,사용  (0) 2011.01.07
ibatis 매핑시 삽질  (0) 2009.12.29
AOP  (0) 2009.12.22