달력

072010  이전 다음

'CHKJ4019W'에 해당되는 글 1건

  1. 2006/11/16 이클립스WTP, CHKJ4019W 문제(problem) (4)
SHIBATA KAN님이 방명록과 엠파스 블로그 댓글을 통해 상기시켜주신 이클립스 버그..
기억은 잘 나지 않는다.ㅡㅡ;

2005/09/15 (목) 00:07

이유를 알 수 없어서 구글에 물어보니.. 버그질라에 있긴 한데
Bugzilla Bug 102908

이것이 단순히 WTP의 버그인지는 몰라도
내 경우에는 조금 다른 것 같다.

문제를 일으키는 부분은 아래의 설정이다.
<resource-ref>
 <description>JPetStore DataSource</description>
 <res-ref-name>jdbc/jpetstore</res-ref-name>
 <res-type>javax.sql.DataSource</res-type>
 <res-auth>Container</res-auth>
</resource-ref>

로그 내용은 다음과 같다.
Severity Description Resource In Folder Location Creation Time
1 CHKJ4019W: Invalid res-sharing-scope; valid values are "Shareable" or "Unshareable". web.xml JPetStore with Struts and IBatiss/WebContent/WEB-INF  2005년 9월 15일 (목) 오전 12:01:57
res-sharing-scope 라는 엘리먼트는 없고, 단지 키워드처럼 쓰나 본데
젠장... 서블릿 2.3 web.xml 내용을 복사해서
2.4에서 돌리려니까.. 스키마가 틀리네.. ㅡㅡ;

이런.. 쩝.. web.xml은 backward campatibility가 상당히 높음을 잊었다.
그냥 이클립스에서 Code Assist 받으니까
답 나오네..

res-sharing-scope
라는 엘리먼트가 required 인 모양이다.
Shareable 이나 Unshareable 중에 암꺼나 써주면 문제는 해결된다.
무슨 차이일까?

찾았다.

이런... 3년전에 본 책이다.
역시 디립따 읽기만 한다고 소화가 되는 것은 아니다.
책은 마음의 양식... 의미 심장하게 다가온다.ㅡㅡ;

The bean provider can control the extent that connections are shared. By default, other enterprise beans in the application that use the same resource in the same transaction context can share the connection. The bean provider can set the res-sharing-scope deployment descriptor element to Unshareable to indicate that a connection not be shared. Keep in mind, though, that sharing connections to a resource manager allows the container to optimize connection and local transaction use. It is recommended that connections be marked Shareable.

동일한 Tx 컨텍스트라.. 쩝.. 감이 안온다. 일단 넘어가자. 일단 Shareable이 추천 사항이라고 할 수 있네. 서로 트랜젝션 하는 와중에 DB 연결을 공유할 수도 있단 건가.. 젠장.. 미들웨어를 쓰기만 하면.. 이래서 안된다. 그렇다고 이제와서 만드는 일에 뛰어 들 수도 없지만..@@
Posted by 영회