西南石油大学学报(自然科学版) ›› 2002, Vol. 24 ›› Issue (3): 78-81.DOI: 10.3863/j.issn.1000-2634.2002.03.022

• 石油机械工程及其它 • Previous Articles     Next Articles

IMPLEMENT THE COMMUNICATION LAYER OF CORBA WITH REACTOR AND ACCEPTOR PATTERNS

LIU Yi LI Zhi-shu CHEN Liang-yin. 
  

  1. (Dept. of Computer Science, Sichuan University,Chengdu Sichuan 610064,China)
  • Received:2001-08-21 Revised:1900-01-01 Online:2002-06-30 Published:2002-06-30
  • Contact: LIU Yi

Abstract: CORBA is an object-oriented distributed computing envi-ronment. The core of CORBA is the communication of object.To construct a reusable and extensible communication layer of CORBA, Reactor and Acceptor patterns were introduced. The Reactor design pattern can handle synchronous events in a pro-cess, while the Acceptor design pattern decouples service initial-
ization from service processing. At first, the structures of the patterns including handle, synchronous event demultiplexer,initiation dispatcher, concrete event handle, Acceptor and ser-vice handler are elaborated. Then the dynamics of these pat-terns, how to link and how to process service, was explained.
Then the implementation of initiation dispatcher,concrete event handler, Acceptor and service handler was described in this pa-per. And one of the features of the patterns: concurrency is presented. Finally, the benefits and liabilities of the patterns are discussed.

Key words: Reactor patterns, Acceptor patterns, COR-BA, structure, characteristic.

CLC Number: