본문 바로가기

Programming

stub & skeleton 이해하기

간단히....

stub은 클라이언트에 위치

skeleton 은 서버에 위치한다고 보면 된다.


JAVA의 RMI를 기준으로 아래 원문을 참조해 보자


원문:

The rmic compiler generates two files: a stub and a skeleton. The stub resides on the client machine and the skeleton resides on the server machine. The stub and skeleton are comprised of Java code that provides the necessary link between the two objects.

When a client invokes a server method, the JVM looks at the stub to do type checking (since the class defined within the stub is an image of the server class). The request is then routed to the skeleton on the server, which in turn calls the appropriate method on the server object. In other words, the stub acts as a proxy to the skeleton and the skeleton is a proxy to the actual remote method.


참조

http://www.tns.lcs.mit.edu/manuals/java-rmi-alpha2/rmi-spec/rmi-arch.doc.html

http://theweak.tistory.com/entry/STUB%EC%8A%A4%ED%85%81-%EA%B3%BC-SKELETON%EC%8A%A4%EC%BC%88%EB%A0%88%ED%86%A4

'Programming' 카테고리의 다른 글

현재 네트워크에서 DHCP 서버가 동작되고 있는지 확인?  (0) 2014.08.18
gsoap (2)  (1) 2014.03.12
gsoap (1)  (0) 2014.03.11
[C Programming] Struct Hack  (0) 2013.08.15
Software Versioning (소프트웨어 버전규칙)  (0) 2013.08.07