레이블이 Spring DM인 게시물을 표시합니다. 모든 게시물 표시
레이블이 Spring DM인 게시물을 표시합니다. 모든 게시물 표시

2010년 6월 6일 일요일

OSGi Bundles의 두 가지 의존 타입


(1) Package dependency: A bundle exports its packages so that
other bundles can import the packages
and then access the classes, interfaces,
and resources in the packages.

(2) Service dependency: A bundle registers its objects to
the service registry provided by the OSGi
container as OSGi services, so that other bundles
can consume the services.

OSGi의 이점

거의 한달만에 포스트를 올리네요 .
한달 동안 정말 개인적으로 너무 힘들 었습니다.
이제 정신이 들어서 다시 블러그를 하려고 합니다.
당분간 Spring DM관련해서 포스팅을 하려고 합니다.

  • OSGi's Advantages
- 전체 시스템을 restart 하지 않고 각 모듈 (class, jar) 단위로
dynamically하게 install,uninstall,update,start,stop 할 수 있음

- 하나의 시스템내에서 각 모듈의 버전 정보를 복수로 install 할 수 있음
시스템 업그레이드에 좋은 대안이 될 수 있음

- OSGi 컨테이너는 모듈관의 의존 관계를 관리 한다.

- 각 모듈 (bundle)은 개별적인 life cycle을 가지고 있음.

- 각 모듈은 SOA 처럼 서비스로 노출하고 , 사용 할수 있음.
즉 느슨한 연결과 Service-Oriented한 설계를 가능 하도록 함.