CCM IDL, CORBA Component Model IDL

290
! "

description

 

Transcript of CCM IDL, CORBA Component Model IDL

Page 1: CCM IDL, CORBA Component Model IDL

����������� �����������������������

����������������������� ! ���"������������

Page 2: CCM IDL, CORBA Component Model IDL

�����������

#

����������������������������������

$

�����������������������

����� !������ !�����"�%

� ����� !�&"%��"���'�

� ���������������'��

� �����������"���� !�(����� !)

� ����!������ !����&*�����������������

� ����!������ !��� ���"�������������

� ����!������ !�����"�%�

Page 3: CCM IDL, CORBA Component Model IDL

����������� �����������������������

����� !�&"%��"���'�

Page 4: CCM IDL, CORBA Component Model IDL

�����������

+

�����������������������

����� !�&"%��"���'�

� ���"������ !����������&*���

� �������"���� !�������������� !

� �������"���� !�����"�%

� !������ !��������"��'�,'�%'���"�%������

Page 5: CCM IDL, CORBA Component Model IDL

�����������

-

����������������������������������

$����� !�&"%��"���'�

� ���"������ !����������&*���

� �������"���� !�������������� !

� �������"���� !�����"�%

� !������ !��������"��'�,'�%'���"�%������

Page 6: CCM IDL, CORBA Component Model IDL

�����������

.

�����������������������

'����&*����/�����������

�����������������"���������0�&����������&*����

Page 7: CCM IDL, CORBA Component Model IDL

�����������

1

�����������������������

���������������������&*���

��������������� ��������������

���� � ���� � ����

� ����

� ����

���� ��

����

�����������

Page 8: CCM IDL, CORBA Component Model IDL

�����������

2

�����������������������

���������������&*���

��������������� ��������������

���� � ���� �

���� ��

����

��������

Page 9: CCM IDL, CORBA Component Model IDL

�����������

3

�����������������������

���"����� !

Component

����������

�� �

�����������

�� �

��������������������������������

Page 10: CCM IDL, CORBA Component Model IDL

�����������

$4

����������������������������������

$����� !�&"%��"���'�

� ���"������ !����������&*���

� �������"���� !�������������� !

� �������"���� !�����"�%

� !������ !��������"��'�,'�%'���"�%������

Page 11: CCM IDL, CORBA Component Model IDL

�����������

$$

�����������������������

/���5��"���6 "��7��������"�� � !

����������

������� ��

�����������

!�������"

������� ��

#������������!����"

Page 12: CCM IDL, CORBA Component Model IDL

�����������

$#

����������������������������������

$����� !�&"%��"���'�

� ���"������ !����������&*���

� �������"���� !�������������� !

� �������"���� !�����"�%

� !������ !��������"��'�,'�%'���"�%������

Page 13: CCM IDL, CORBA Component Model IDL

�����������

$8

�����������������������

/���5��"���6 "��7��������"���� !�����"�%

����������

������� ��

�����������

!�������"

�����������

#������

������� ��

�����������

������� ��

#������������

������� ��

#������������!����"

Page 14: CCM IDL, CORBA Component Model IDL

�����������

$+

����������������������������������

$����� !�&"%��"���'�

� ���"������ !����������&*���

� �������"���� !�������������� !

� �������"���� !�����"�%

� !������ !��������"��'�,'�%'���"�%������

Page 15: CCM IDL, CORBA Component Model IDL

�����������

$-

�����������������������

/���5��"���6 "��7���9�����!������ !�����"�%

����������

�����������

#������

������� ��

�����������

������� ��#���������

���

������� ��

#������������!����"

������� ��

�����������

!�������"

Server

##��$%���

������������

##�&'''

Page 16: CCM IDL, CORBA Component Model IDL

�����������

$.

����������������������������������

$

�����������������������

����� !������ !�����"�%

� ����� !�&"%��"���'�

� ���������������'��

� �����������"���� !�(����� !)

� ����!������ !����&*�����������������

� ����!������ !��� ���"�������������

� ����!������ !�����"�%�

Page 17: CCM IDL, CORBA Component Model IDL

����������� �����������������������

����� !����������������'��

Page 18: CCM IDL, CORBA Component Model IDL

�����������

$2

�����������������������

����� !����������������'��� ���������������'���

� ���������������&�0

� ��������������� !

� ������&*����� !

� ���������� !

� ���������������� !

� �:����;�����/0���� !

� "�<������ !

� ��'�������� !

Page 19: CCM IDL, CORBA Component Model IDL

�����������

$3

����������������������������������

$����� !����������������'��� ���������������'���

� ���������������&�0

� ��������������� !

� ������&*����� !

� ���������� !

� ���������������� !

� �:����;�����/0���� !

� "�<������ !

� ��'�������� !

Page 20: CCM IDL, CORBA Component Model IDL

�����������

#4

�����������������������

��������������'���

� ���'"&���� =�������"%�'�&����'���'�"��

� ����� =�������'������'��"���"���'������(�'�:"���)

� ����������� =���'�>�"'������'��"���"���'������(����)

� �:�������'������ =����'��������:����

� �:�����"�< =�������������:����

� ?�:"%��"�������"��'������"��������'���

!�������������##��(�������)���"

Page 21: CCM IDL, CORBA Component Model IDL

�����������

#$

�����������������������

�����������������

Attributes

MyBusiness

Component

Component interface

Facets

Eventsources

Eventsinks

Receptacles

OFF

ER

ED R

EQ

UIR

ED

Page 22: CCM IDL, CORBA Component Model IDL

�����������

##

����������������������������������

$����� !����������������'��� ���������������'���

� ���������������&�0

� ��������������� !

� ������&*����� !

� ���������� !

� ���������������� !

� �:����;�����/0���� !

� "�<������ !

� ��'�������� !

Page 23: CCM IDL, CORBA Component Model IDL

�����������

#8

�����������������������

��"��"�%���������"���"����=������&�"�%��������������������������

Page 24: CCM IDL, CORBA Component Model IDL

�����������

#+

����������������������������������

$����� !����������������'��� ���������������'���

� ���������������&�0

� ��������������� !

� ������&*����� !

� ���������� !

� ���������������� !

� �:����;�����/0���� !

� "�<������ !

� ��'�������� !

Page 25: CCM IDL, CORBA Component Model IDL

�����������

#-

�����������������������

��������������� !

Name

component Name

{

/** Component features **/

};

Page 26: CCM IDL, CORBA Component Model IDL

�����������

#.

����������������������������������

$����� !����������������'��� ���������������'���

� ���������������&�0

� ��������������� !

� ������&*����� !

� ���������� !

� ���������������� !

� �:����;�����/0���� !

� "�<������ !

� ��'�������� !

Page 27: CCM IDL, CORBA Component Model IDL

�����������

#1

�����������������������

������&*����� !

server

�� �

interface Display

{

void display_hello();

};

Page 28: CCM IDL, CORBA Component Model IDL

�����������

#2

����������������������������������

$����� !����������������'��� ���������������'���

� ���������������&�0

� ��������������� !

� ������&*����� !

� ���������� !

� ���������������� !

� �:����;�����/0���� !

� "�<������ !

� ��'�������� !

Page 29: CCM IDL, CORBA Component Model IDL

�����������

#3

�����������������������

���������� !

server

component Server

{

/**

** The facet for Clients components.

**/

provides Display for_clients;

};

for_clients

Page 30: CCM IDL, CORBA Component Model IDL

�����������

84

����������������������������������

$����� !����������������'��� ���������������'���

� ���������������&�0

� ��������������� !

� ������&*����� !

� ���������� !

� ���������������� !

� �:����;�����/0���� !

� "�<������ !

� ��'�������� !

Page 31: CCM IDL, CORBA Component Model IDL

�����������

8$

�����������������������

���������� ����� !

Client

component Client

{

/**

** The receptacle to_server to connect the Client component

** to a Display object or facet reference.

**/

uses Display to_server;

};

to_server

Page 32: CCM IDL, CORBA Component Model IDL

�����������

8#

����������������������������������

$����� !����������������'��� ���������������'���

� ���������������&�0

� ��������������� !

� ������&*����� !

� ���������� !

� ���������������� !

� �:����;�����/0���� !

� "�<������ !

� ��'�������� !

Page 33: CCM IDL, CORBA Component Model IDL

�����������

88

�����������������������

�:�����&*��������� !

eventtype HelloInfo

{

void display_hello();

};

Page 34: CCM IDL, CORBA Component Model IDL

�����������

8+

����������������������������������

$����� !����������������'��� ���������������'���

� ���������������&�0

� ��������������� !

� ������&*����� !

� ���������� !

� ���������������� !

� �:����;�����/0���� !

� "�<������ !

� ��'�������� !

Page 35: CCM IDL, CORBA Component Model IDL

�����������

8-

�����������������������

"�<������ !

component Server

{

/**

** The status info event consumer.

**/

consumes HelloInfo received_info;

};

received_info

server

Page 36: CCM IDL, CORBA Component Model IDL

�����������

8.

����������������������������������

$����� !����������������'��� ���������������'���

� ���������������&�0

� ��������������� !

� ������&*����� !

� ���������� !

� ���������������� !

� �:����;�����/0���� !

� "�<������ !

� ��'�������� !

Page 37: CCM IDL, CORBA Component Model IDL

�����������

81

�����������������������

��'�������� !

Client

component Client

{

/**

** The status info event source.

**/

emits HelloInfo info_to_send;

};

info_to_send

Page 38: CCM IDL, CORBA Component Model IDL

�����������

82

����������������������������������

$

�����������������������

����� !������ !�����"�%

� ����� !�&"%��"���'�

� ���������������'��

� �����������"���� !�(����� !)

� ����!������ !����&*�����������������

� ����!������ !��� ���"�������������

� ����!������ !�����"�%�

Page 39: CCM IDL, CORBA Component Model IDL

����������� �����������������������

�����������"���� !�����"�%

Page 40: CCM IDL, CORBA Component Model IDL

�����������

+4

�����������������������

�����������"���� !�����"�%

� ����"�%������

� ��������������"�%

� �����&*���

� ����������:���� "�<�����"�%

� ����������������:���� ��'�������"�%

� �����������&*���

� �����������������@�����

� �:����� ��'��� "�<��@�����

Page 41: CCM IDL, CORBA Component Model IDL

����������� �����������������������

�����������"���� !�����"�%

Page 42: CCM IDL, CORBA Component Model IDL

�����������

+#

����������������������������������

$�����������"���� !�����"�%

� ����"�%������

� ��������������"�%

� �����&*���

� ����������:���� "�<�����"�%

� ����������������:���� ��'�������"�%

� �����������&*���

� �����������������@�����

� �:����� ��'��� "�<��@�����

Page 43: CCM IDL, CORBA Component Model IDL

�����������

+8

�����������������������

��"���������"�� ��9�� !�����"�%������

� �������������0�� "���������������"���'�����"���'"�"�%��'���Components::CCMObject

� ����������:�����"�<��'������������������'��"�����'��&��"�"�%���������"�����'���'����

� ������������'���������������'��"������'��������"�%A��"��������"�%A�����%���"�%���������"�����'���'����(�)

� �:�������'����'���������������'��"������'���&��'"&"�%��������&��'"&"�%����'��������:����

Page 44: CCM IDL, CORBA Component Model IDL

�����������

++

����������������������������������

$�����������"���� !�����"�%

� ����"�%������

� ��������������"�%

� �����&*���

� ����������:���� "�<�����"�%

� ����������������:���� ��'�������"�%

� �����������&*���

� �����������������@�����

� �:����� ��'��� "�<��@�����

Page 45: CCM IDL, CORBA Component Model IDL

�����������

+-

�����������������������

�������"���� !

Component

����������

�����������

�����������

�� �##��$%���

Page 46: CCM IDL, CORBA Component Model IDL

�����������

+.

�����������������������

�������"���� !����������"�������%�����

Component

����������

��*�������������

#��������������������

�� �##��$%���

�����$�

#�������������*�����

Page 47: CCM IDL, CORBA Component Model IDL

�����������

+1

�����������������������

�������"���� !��������"��'������

Component

�� �##��$%���

�����$�

#�������������*�����

Page 48: CCM IDL, CORBA Component Model IDL

�����������

+2

�����������������������

�������"���� !

Component

##��$%���

Page 49: CCM IDL, CORBA Component Model IDL

�����������

+3

����������������������������������

$�����������"���� !�����"�%

� ����"�%������

� ��������������"�%

� �����&*���

� ����������:���� "�<�����"�%

� ����������������:���� ��'�������"�%

� �����������&*���

� �����������������@�����

� �:����� ��'��� "�<��@�����

Page 50: CCM IDL, CORBA Component Model IDL

�����������

-4

�����������������������

��"���������"�� ��9�� !�������&*���

� �������������0���"���������������"���'�����"���'"�"�%��'���Components::CCMObject

Component

##��$%���

Page 51: CCM IDL, CORBA Component Model IDL

�����������

-$

�����������������������

��"���������"�� ��9�� !�������&*���

� �������������0���"���������������"���'�����"���'"�"�%��'���Components::CCMObject

Component

##��$%���

CCMObject

Page 52: CCM IDL, CORBA Component Model IDL

�����������

-#

�����������������������

�������"���� !�������&*���Component

##��$%���

<component_name>

<Attributes>

<Connection_Operations>

CCMObject

Page 53: CCM IDL, CORBA Component Model IDL

�����������

-8

����������������������������������

$�����������"���� !�����"�%

� ����"�%������

� ��������������"�%

� �����&*���

� ����������:���� "�<�����"�%

� ����������������:���� ��'�������"�%

� �����������&*���

� �����������������@�����

� �:����� ��'��� "�<��@�����

Page 54: CCM IDL, CORBA Component Model IDL

�����������

-+

�����������������������

��"���������"�� ��9�� !����&*����'���'�����

� �����������:�����"�<���'������������������'��"�����'��&��"�"�%����������"�����'���'����

� �������

provide_<facet_name>;

� "�<����

get_consumer_<event_type>;

Component<facet_name> Component

<event_type>

Page 55: CCM IDL, CORBA Component Model IDL

�����������

--

����������������������������������

$�����������"���� !�����"�%

� ����"�%������

� ��������������"�%

� �����&*���

� ����������:���� "�<�����"�%

� ����������������:���� ��'�������"�%

� �����������&*���

� �����������������@�����

� �:����� ��'��� "�<��@�����

Page 56: CCM IDL, CORBA Component Model IDL

�����������

-.

�����������������������

��"���������"�� ��9�� !����������"���������"��

� ��������������

� �'���������������'��"������'��������"�%A��"��������"�%A�����%���"�%����������"�����'���'����(�)

connect_<receptacle_name> (facet_reference)

� �:�������'������

� �'���������������'��"������'���&��'"&"�%���������&��'"&"�%�����'��������:����

connect_<source_name> (consumer_reference)

Page 57: CCM IDL, CORBA Component Model IDL

�����������

-1

����������������������������������

$�����������"���� !�����"�%

� ����"�%������

� ��������������"�%

� �����&*���

� ����������:���� "�<�����"�%

� ����������������:���� ��'�������"�%

� �����������&*���

� �����������������@�����

� �:����� ��'��� "�<��@�����

Page 58: CCM IDL, CORBA Component Model IDL

�����������

-2

�����������������������

�������"���� !�������&*���Component

##��$%���

<component_name>

Attribute

provide_<facet_name>get_consumer_<event_type>connect_<receptacle_name>connect_<source_name>

Page 59: CCM IDL, CORBA Component Model IDL

�����������

-3

�����������������������

�������"���� !�������&*���Component

##��$%���

<component_name>

Attribute

provide_<facet_name>get_consumer_<event_type>connect_<receptacle_name>connect_<source_name>

CCMObject

Page 60: CCM IDL, CORBA Component Model IDL

�����������

.4

����������������������������������

$�����������"���� !�����"�%

� ����"�%������

� ��������������"�%

� �����&*���

� ����������:���� "�<�����"�%

� ����������������:���� ��'�������"�%

� �����������&*���

� �����������������@�����

� �:����� ��'��� "�<��@�����

Page 61: CCM IDL, CORBA Component Model IDL

����������� �����������������������

����� !�����"�%������������������@�����

Page 62: CCM IDL, CORBA Component Model IDL

�����������

.#

�����������������������

����� !�����"�%������������������@�����

� �����������������&*����� !

� �':�'������������������ !

� ��"��������������������� !

� �':�'������������������ !�����"�%

� ��"��������������������� !�����"�%

� ���������������������&�0�

Page 63: CCM IDL, CORBA Component Model IDL

�����������

.8

�����������������������

��:����"��

serverClient

Component

Base ref.

Facet

Receptacle

Page 64: CCM IDL, CORBA Component Model IDL

�����������

.+

�����������������������

������������������'���

serverClient

�� �

������� ���

Page 65: CCM IDL, CORBA Component Model IDL

�����������

.-

����������������������������������

$����� !�����"�%������������������@�����

� �����������������&*����� !

� �':�'������������������ !

� ��"��������������������� !

� �':�'������������������ !�����"�%

� ��"��������������������� !�����"�%

� ���������������������&�0�

Page 66: CCM IDL, CORBA Component Model IDL

�����������

..

�����������������������

���������� !

server

�� �

interface Display

{

void display_hello();

};

Page 67: CCM IDL, CORBA Component Model IDL

�����������

.1

����������������������������������

$����� !�����"�%������������������@�����

� �����������������&*����� !

� �':�'������������������ !

� ��"��������������������� !

� �':�'������������������ !�����"�%

� ��"��������������������� !�����"�%

� ���������������������&�0�

Page 68: CCM IDL, CORBA Component Model IDL

�����������

.2

�����������������������

����� �':�'������ !

server

component Server

{

/**

** The facet for Clients components.

**/

provides Display for_clients;

};

for_clients

Display

Page 69: CCM IDL, CORBA Component Model IDL

�����������

.3

����������������������������������

$����� !�����"�%������������������@�����

� �����������������&*����� !

� �':�'������������������ !

� ��"��������������������� !

� �':�'������������������ !�����"�%

� ��"��������������������� !�����"�%

� ���������������������&�0�

Page 70: CCM IDL, CORBA Component Model IDL

�����������

14

�����������������������

��"��������� !

Client

component Client

{

/**

** The receptacle to_server to connect the Client component

** to a Display object or facet reference.

**/

uses Display to_server;

};

to_server

Display

Page 71: CCM IDL, CORBA Component Model IDL

�����������

1$

����������������������������������

$����� !�����"�%������������������@�����

� �����������������&*����� !

� �':�'������������������ !

� ��"��������������������� !

� �':�'������������������ !�����"�%

� ��"��������������������� !�����"�%

� ���������������������&�0�

Page 72: CCM IDL, CORBA Component Model IDL

�����������

1#

�����������������������

�':�'������ !�����"�%

component Server

{

provides Display for_clients;

};

interface Server :

::Components::CCMObject

{

Display provide_for_clients();

};

server

for_clients

Display�����������

Page 73: CCM IDL, CORBA Component Model IDL

�����������

18

����������������������������������

$����� !�����"�%������������������@�����

� �����������������&*����� !

� �':�'������������������ !

� ��"��������������������� !

� �':�'������������������ !�����"�%

� ��"��������������������� !�����"�%

� ���������������������&�0�

Page 74: CCM IDL, CORBA Component Model IDL

�����������

1+

�����������������������

��"��������� !�����"�%

component Client

{

uses Display to_server;

};

interface Client :

::Components::CCMObject

{

void connect_to_server(in Display connexion)

raises(…);

Display disconnect_to_server()

raises(…);

Display get_connection_to_server();

}

Client

to_server

Display

�����������

Page 75: CCM IDL, CORBA Component Model IDL

�����������

1-

����������������������������������

$����� !�����"�%������������������@�����

� �����������������&*����� !

� �':�'������������������ !

� ��"��������������������� !

� �':�'������������������ !�����"�%

� ��"��������������������� !�����"�%

� ���������������������&�0�

Page 76: CCM IDL, CORBA Component Model IDL

�����������

1.

�����������������������

����������������������"��

�� �

Display

�����$�

provide_for_clients();connect_to_server();

Client

to_server

Serverfor_clients

Page 77: CCM IDL, CORBA Component Model IDL

�����������

11

�����������������������

Assembly Client Server

provide_for_clients();

x

connect_to_server(x);

�������"��� ����'"���������������"��

Client Server

�����$�

to_server for_clients

Page 78: CCM IDL, CORBA Component Model IDL

�����������

12

����������������������������������

$�����������"���� !�����"�%

� ����"�%������

� ��������������"�%

� �����&*���

� ����������:���� "�<�����"�%

� ����������������:���� ��'�������"�%

� �����������&*���

� �����������������@�����

� �:����� ��'��� "�<��@�����

Page 79: CCM IDL, CORBA Component Model IDL

����������� �����������������������

����� !�����"�%� ��'��� "�<��@�����

Page 80: CCM IDL, CORBA Component Model IDL

�����������

24

�����������������������

����� !�����"�%� ��'��� "�<��@�����

� �:����/0�������"�%

� �:�����&*����� !

� �':�'������������:�����"�<�� !

� ��"���������������:�������'���� !

� �:����/0�������"�%

� �':�'������������:�����"�<�� !�����"�%

� ��"���������������:�������'���� !�����"�%

� �:���������&�0

Page 81: CCM IDL, CORBA Component Model IDL

�����������

2$

�����������������������

�:����

Client

server

+����)�����

+�����)��,

Component

Base ref.

Event Source

Event Sink�������

���info_to_send

received_info

Page 82: CCM IDL, CORBA Component Model IDL

�����������

2#

����������������������������������

$����� !�����"�%� ��'��� "�<��@�����

� �:����/0�������"�%

� �:�����&*����� !

� �':�'������������:�����"�<�� !

� ��"���������������:�������'���� !

� �:����/0�������"�%

� �':�'������������:�����"�<�� !�����"�%

� ��"���������������:�������'���� !�����"�%

� �:���������&�0

Page 83: CCM IDL, CORBA Component Model IDL

�����������

28

�����������������������

��"��5?������"����7�� !��9�� !�����"�%������

� ����:�����0���"�����������

� ��:������0��

�"���'"�"�%��'����������������:��������

� ���������'"���'�����

�"���'"�"�%��'����������������:����������'����

Page 84: CCM IDL, CORBA Component Model IDL

�����������

2+

�����������������������

�:��������� !

Client

Server

+�����������

+��������,

Event

Type

�� �info_to_send

received_info

#����������������

Page 85: CCM IDL, CORBA Component Model IDL

�����������

2-

����������������������������������

$����� !�����"�%� ��'��� "�<��@�����

� �:����/0�������"�%

� �:�����&*����� !

� �':�'������������:�����"�<�� !

� ��"���������������:�������'���� !

� �:����/0�������"�%

� �':�'������������:�����"�<�� !�����"�%

� ��"���������������:�������'���� !�����"�%

� �:���������&�0

Page 86: CCM IDL, CORBA Component Model IDL

�����������

2.

�����������������������

�:�����&*��������� !

eventtype HelloInfo

{

/**

** Just contains a string.

**/

public string text;

};

�������

Page 87: CCM IDL, CORBA Component Model IDL

�����������

21

����������������������������������

$����� !�����"�%� ��'��� "�<��@�����

� �:����/0�������"�%

� �:�����&*����� !

� �':�'������������:�����"�<�� !

� ��"���������������:�������'���� !

� �:����/0�������"�%

� �':�'������������:�����"�<�� !�����"�%

� ��"���������������:�������'���� !�����"�%

� �:���������&�0

Page 88: CCM IDL, CORBA Component Model IDL

�����������

22

�����������������������

�':�'����:�����"�<������ !

component Server

{

/**

** The status info event consumer.

**/

consumes HelloInfo received_info;

};

received_info

Event

type

server

Page 89: CCM IDL, CORBA Component Model IDL

�����������

23

����������������������������������

$����� !�����"�%� ��'��� "�<��@�����

� �:����/0�������"�%

� �:�����&*����� !

� �':�'������������:�����"�<�� !

� ��"���������������:�������'���� !

� �:����/0�������"�%

� �':�'������������:�����"�<�� !�����"�%

� ��"���������������:�������'���� !�����"�%

� �:���������&�0

Page 90: CCM IDL, CORBA Component Model IDL

�����������

34

�����������������������

��"�������:��������'�� ����� !

Client

component Client

{

/**

** The status info event source.

**/

emits HelloInfo info_to_send;

};

Event

Type

HelloInfo

info_to_send

Page 91: CCM IDL, CORBA Component Model IDL

�����������

3$

����������������������������������

$����� !�����"�%� ��'��� "�<��@�����

� �:����/0�������"�%

� �:�����&*����� !

� �':�'������������:�����"�<�� !

� ��"���������������:�������'���� !

� �:����/0�������"�%

� �':�'������������:�����"�<�� !�����"�%

� ��"���������������:�������'���� !�����"�%

� �:���������&�0

Page 92: CCM IDL, CORBA Component Model IDL

�����������

3#

�����������������������

�����:����/0�������� !����"�%�

Event

Type

�� �

�����������

#�����������������

�� �

-����(���

Page 93: CCM IDL, CORBA Component Model IDL

�����������

38

�����������������������

��"��5?������"����7�� !��9�� !�����"�%������

� ����:�����0���"�����������

� ��:������0��

�"���'"�"�%��'����������������:��������

� ���������'"���'�����

�"���'"�"�%��'����������������:����������'����

Page 94: CCM IDL, CORBA Component Model IDL

�����������

3+

�����������������������

�:�����0�������� !�����"�%���:������0��

valuetype HelloInfo : ::Components::EventBase

{public string text;

}

eventtype HelloInfo

{

public string text;

};

�����������

Page 95: CCM IDL, CORBA Component Model IDL

�����������

3-

�����������������������

�:�����0�������� !�����"�%�����������'�����'����

eventtype HelloInfo

{

public string text;

};

�����������

Interface HelloInfoConsumer :::Components::EventConsumerBase

{

void push_HelloInfo (

in HelloInfo the_HelloInfo );

};

Page 96: CCM IDL, CORBA Component Model IDL

�����������

3.

�����������������������

�:�����0�������� !����"�%��:����������'

Client

Server+�����������

+��������,

Event

Type

�� �

��>��������������������'��&*���

push_HelloInfo (the_HelloInfo)

Page 97: CCM IDL, CORBA Component Model IDL

�����������

31

����������������������������������

$����� !�����"�%� ��'��� "�<��@�����

� �:����/0�������"�%

� �:�����&*����� !

� �':�'������������:�����"�<�� !

� ��"���������������:�������'���� !

� �:����/0�������"�%

� �':�'������������:�����"�<�� !�����"�%

� ��"���������������:�������'���� !�����"�%

� �:���������&�0

Page 98: CCM IDL, CORBA Component Model IDL

�����������

32

�����������������������

�':�'��� "�<������ !�����"�%component Server

{

consumes HelloInfo received_info;

};

interface Server :

::Components::CCMObject

{

HelloInfoConsumer get_consumer_received_info();

}

�����������

server

�� �

.������#�������

received_info

Page 99: CCM IDL, CORBA Component Model IDL

�����������

33

����������������������������������

$����� !�����"�%� ��'��� "�<��@�����

� �:����/0�������"�%

� �:�����&*����� !

� �':�'������������:�����"�<�� !

� ��"���������������:�������'���� !

� �:����/0�������"�%

� �':�'������������:�����"�<�� !�����"�%

� ��"���������������:�������'���� !�����"�%

� �:���������&�0

Page 100: CCM IDL, CORBA Component Model IDL

�����������

$44

�����������������������

��"�������:�������'�������� !�����"�%

component Client

{

emits HelloInfo info_to_send;

};

Client

Info_to_sendServer

�� �

Consumer

�����������

interface Client : ::Components::CCMObject

{void connect_info_to_send(

in HelloInfoConsumer consumer):

HelloInfoConsumer disconnect_info_to_send();

};

Page 101: CCM IDL, CORBA Component Model IDL

�����������

$4$

����������������������������������

$����� !�����"�%� ��'��� "�<��@�����

� �:����/0�������"�%

� �:�����&*����� !

� �':�'������������:�����"�<�� !

� ��"���������������:�������'���� !

� �:����/0�������"�%

� �':�'������������:�����"�<�� !�����"�%

� ��"���������������:�������'���� !�����"�%

� �:���������&�0

Page 102: CCM IDL, CORBA Component Model IDL

�����������

$4#

�����������������������

�����������:�����������"��

Info_to_send

Client Server

�� �

HelloInfoConsumer

�����$�

get_consumer_received_infoconnect_info_to_send

received_info

Page 103: CCM IDL, CORBA Component Model IDL

�����������

$48

�����������������������

Assembly Client Server

get_consumer_received_info();

x

connect_info_to_send(x);

�������"��� ����'"����:�����������"��

ClientServer

�����$�

info_to_send

received_info

Page 104: CCM IDL, CORBA Component Model IDL

�����������

$4+

����������������������������������

$

�����������������������

����� !������ !�����"�%

� ����� !�&"%��"���'�

� ���������������'��

� �����������"���� !�(����� !)

� ����!������ !����&*�����������������

� ����!������ !��� ���"�������������

� ����!������ !�����"�%�

Page 105: CCM IDL, CORBA Component Model IDL

����������� �����������������������

����!������ !����&*�����������������

Page 106: CCM IDL, CORBA Component Model IDL

�����������

$4.

�����������������������

����!������ !����&*�����������������

� ������&*���

� �������&*��������,'�@0�,����'�

� <�������������������<

� �&*�������<�%"�%�,�'�� �:�'

� ,�'�� �:�'�����������������������'����@�����'

� �&*�������<�%"�%�,�'����"�������������

� �&*����������"�"��

� �����"��'���'��&*����������"�"���

� ,�'����"����������������������������� "�<������@��

� ���������������'��

Page 107: CCM IDL, CORBA Component Model IDL

�����������

$41

�����������������������

'����&*����/�����������

�����������������"���������0�&����������&*����

Page 108: CCM IDL, CORBA Component Model IDL

�����������

$42

�����������������������

���������������������&*���

��������������� ��������������

���� � ���� � ����

� ����

� ����

���� ��

����

�����������

Page 109: CCM IDL, CORBA Component Model IDL

�����������

$43

�����������������������

���������������&*���

��������������� ��������������

���� � ���� �

���� ��

����

��������

Page 110: CCM IDL, CORBA Component Model IDL

�����������

$$4

����������������������������������

$����!������ !����&*�����������������

� ������&*���

� �������&*��������,'�@0�,����'�

� <�������������������<

� �&*�������<�%"�%�,�'�� �:�'

� ,�'�� �:�'�����������������������'����@�����'

� �&*�������<�%"�%�,�'����"�������������

� �&*����������"�"��

� �����"��'���'��&*����������"�"���

� ,�'����"����������������������������� "�<������@��

� ���������������'��

Page 111: CCM IDL, CORBA Component Model IDL

�����������

$$$

�����������������������

����� � ������

�� �

� ����

��������

������&*���

Page 112: CCM IDL, CORBA Component Model IDL

�����������

$$#

����������������������������������

$����!������ !����&*�����������������

� ������&*���

� �������&*��������,'�@0�,����'�

� <�������������������<

� �&*�������<�%"�%�,�'�� �:�'

� ,�'�� �:�'�����������������������'����@�����'

� �&*�������<�%"�%�,�'����"�������������

� �&*����������"�"��

� �����"��'���'��&*����������"�"���

� ,�'����"����������������������������� "�<������@��

� ���������������'��

Page 113: CCM IDL, CORBA Component Model IDL

�����������

$$8

�����������������������

����������,'�@0�,����'�

�� �

Page 114: CCM IDL, CORBA Component Model IDL

�����������

$$+

�����������������������

����������,'�@0�,����'�

�� �

<������

Page 115: CCM IDL, CORBA Component Model IDL

�����������

$$-

�����������������������

����������,'�@0�,����'�

,'�@0

�� �

<������

Page 116: CCM IDL, CORBA Component Model IDL

�����������

$$.

�����������������������

����������,'�@0�,����'�

,'�@0

�� �

<������

�&*���������������"��

Page 117: CCM IDL, CORBA Component Model IDL

�����������

$$1

�����������������������

����������,'�@0�,����'�

,'�@0

�� �

<������

�&*���������������"��

��&

Page 118: CCM IDL, CORBA Component Model IDL

�����������

$$2

�����������������������

����������,'�@0�,����'�

,'�@0

�� �

<������

�&*���������������"��

��&#����

Page 119: CCM IDL, CORBA Component Model IDL

�����������

$$3

�����������������������

�����"��'������&*���������������"���$%������),�����#����

�� �

#�����,

Page 120: CCM IDL, CORBA Component Model IDL

�����������

$#4

�����������������������

����'"���������������&��<

<������

�� �

Page 121: CCM IDL, CORBA Component Model IDL

�����������

$#$

�����������������������

����'"���������������&��<

<������

�&*���������������"��

�� �

Page 122: CCM IDL, CORBA Component Model IDL

�����������

$##

�����������������������

����'"���������������&��<

<������

�&*���������������"��

�/�

�� �

Page 123: CCM IDL, CORBA Component Model IDL

�����������

$#8

����������������������������������

$����!������ !����&*�����������������

� ������&*���

� �������&*��������,'�@0�,����'�

� <�������������������<

� �&*�������<�%"�%�,�'�� �:�'

� ,�'�� �:�'�����������������������'����@�����'

� �&*�������<�%"�%�,�'����"�������������

� �&*����������"�"��

� �����"��'���'��&*����������"�"���

� ,�'����"����������������������������� "�<������@��

� ���������������'��

Page 124: CCM IDL, CORBA Component Model IDL

�����������

$#+

�����������������������

����'"���������������&��<

),�����

��������<����'��"��

��������<����'��"��

��������<����'��"��

�&*���������������"��

��������<����'��"��

��������<����'��"��

��������<����'��"��

�/�

�� �

Page 125: CCM IDL, CORBA Component Model IDL

�����������

$#-

�����������������������

����'"���������������&��<

),�����

��������<����'��"��

��������<����'��"��

��������<����'��"��

�&*���������������"��

��������<����'��"��

��������<����'��"��

��������<����'��"��

�/�

�� �

Call-back

Call-back

Call-back

Page 126: CCM IDL, CORBA Component Model IDL

�����������

$#.

����������������������������������

$����!������ !����&*�����������������

� ������&*���

� �������&*��������,'�@0�,����'�

� <�������������������<

� �&*�������<�%"�%�,�'�� �:�'

� ,�'�� �:�'�����������������������'����@�����'

� �&*�������<�%"�%�,�'����"�������������

� �&*����������"�"��

� �����"��'���'��&*����������"�"���

� ,�'����"����������������������������� "�<������@��

� ���������������'��

Page 127: CCM IDL, CORBA Component Model IDL

�����������

$#1

�����������������������

)���������*���0�������

�&*�������<�%"�%�����'����':�'

� �����������

�������

Call-back

Call-back

Call-back

)�������,�����

�� �

Page 128: CCM IDL, CORBA Component Model IDL

�����������

$#2

�����������������������

�&*�������<�%"�%�����'����':�'

� �����������

�������

Call-back

Call-back

Call-back

)�������,�����

�� �

Page 129: CCM IDL, CORBA Component Model IDL

�����������

$#3

�����������������������

�&*�������<�%"�%�����'����':�'

� �����������

�������

Call-back

Call-back

Call-back

)�������,�����

�� �

Page 130: CCM IDL, CORBA Component Model IDL

�����������

$84

����������������������������������

$����!������ !����&*�����������������

� ������&*���

� �������&*��������,'�@0�,����'�

� <�������������������<

� �&*�������<�%"�%�,�'�� �:�'

� ,�'�� �:�'�����������������������'����@�����'

� �&*�������<�%"�%�,�'����"�������������

� �&*����������"�"��

� �����"��'���'��&*����������"�"���

� ,�'����"����������������������������� "�<������@��

� ���������������'��

Page 131: CCM IDL, CORBA Component Model IDL

�����������

$8$

�����������������������

�&*�������<�%"�%�����'����':�'

� �����������

�������

Call-back

Call-back

Call-back

���

���

)�������,�����

Page 132: CCM IDL, CORBA Component Model IDL

�����������

$8#

�����������������������

�&*�������<�%"�%�����'����':�'

� �����������

�������

Call-back

Call-back

Call-back

���

���

)�������,�����

Page 133: CCM IDL, CORBA Component Model IDL

�����������

$88

�����������������������

�&*�������<�%"�%�����'����':�'

� �����������

�������

Call-back

Call-back

Call-back

���

���

)�������,�����

Page 134: CCM IDL, CORBA Component Model IDL

�����������

$8+

�����������������������

�&*�������<�%"�%�����'����':�'

� �����������

�������

���

���

)�������,����� +1������

Call-back

Call-back

Call-back

Page 135: CCM IDL, CORBA Component Model IDL

�����������

$8-

�����������������������

�&*�������<�%"�%�����'����':�'

� �����������

�������

���

���

)�������,�����

+1������

Page 136: CCM IDL, CORBA Component Model IDL

�����������

$8.

����������������������������������

$����!������ !����&*�����������������

� ������&*���

� �������&*��������,'�@0�,����'�

� <�������������������<

� �&*�������<�%"�%�,�'�� �:�'

� ,�'�� �:�'�����������������������'����@�����'

� �&*�������<�%"�%�,�'����"�������������

� �&*����������"�"��

� �����"��'���'��&*����������"�"���

� ,�'����"����������������������������� "�<������@��

� ���������������'��

Page 137: CCM IDL, CORBA Component Model IDL

�����������

$81

�����������������������

�&*�������<�%"�%���,�'����"���

#����� ������

�� �

����� � ������

���

Page 138: CCM IDL, CORBA Component Model IDL

�����������

$82

�����������������������

�&*�������<�%"�%���,�'����"���

#���� � ������

���)��$

����� � ������

���

Page 139: CCM IDL, CORBA Component Model IDL

�����������

$83

�����������������������

�&*�����������&���,�'����"���

#���� )�����)��������1�

Page 140: CCM IDL, CORBA Component Model IDL

�����������

$+4

�����������������������

,'�@0���������'����

,'�@0

�� �

Page 141: CCM IDL, CORBA Component Model IDL

�����������

$+$

�����������������������

,'�@0���������'����

,'�@0

��&

�� �

Page 142: CCM IDL, CORBA Component Model IDL

�����������

$+#

�����������������������

,'�@0���������'����

,'�@0

��&#����

�� �

Page 143: CCM IDL, CORBA Component Model IDL

�����������

$+8

����������������������������������

$����!������ !����&*�����������������

� ������&*���

� �������&*��������,'�@0�,����'�

� <�������������������<

� �&*�������<�%"�%�,�'�� �:�'

� ,�'�� �:�'�����������������������'����@�����'

� �&*�������<�%"�%�,�'����"�������������

� �&*����������"�"��

� �����"��'���'��&*����������"�"���

� ,�'����"����������������������������� "�<������@��

� ���������������'��

Page 144: CCM IDL, CORBA Component Model IDL

�����������

$++

�����������������������

����� � ������

�� �

� ������

� ������

�� �

�� �

���� �� � ���

� ����

�&*����,��<�%"�%����0&'"�� �':�'�������"�"��

Page 145: CCM IDL, CORBA Component Model IDL

�����������

$+-

�����������������������

����� � ������

�� �

� ������

� ������

�� �

�� �

���� �� � ���

� ����

�&*����������"�"���� �

Page 146: CCM IDL, CORBA Component Model IDL

�����������

$+.

�����������������������

����� � ������

� ������

� ������

���� �� � ���

� ����

�&*����������"�"��

���� ������������

!�

��������������

!

Page 147: CCM IDL, CORBA Component Model IDL

�����������

$+1

����������������������������������

$����!������ !����&*�����������������

� ������&*���

� �������&*��������,'�@0�,����'�

� <�������������������<

� �&*�������<�%"�%�,�'�� �:�'

� ,�'�� �:�'�����������������������'����@�����'

� �&*�������<�%"�%�,�'����"�������������

� �&*����������"�"��

� �����"��'���'��&*����������"�"���

� ,�'����"����������������������������� "�<������@��

� ���������������'��

Page 148: CCM IDL, CORBA Component Model IDL

�����������

$+2

�����������������������

�&*�����������&

�$%������ )������2 )������ )������2���1�

)������ ���1�

Page 149: CCM IDL, CORBA Component Model IDL

�����������

$+3

�����������������������

�����������������&��������"��'������@�

�$%������ )������2 )������ )������2���1�

)������ ���1�

#��������

���������������

���������������

3

3

Page 150: CCM IDL, CORBA Component Model IDL

�����������

$-4

�����������������������

�����������������&��������"��'������@�

�$%������ )������2 )������ #��������

���������������

���������������

#����1�

)��$

���&#���������

Page 151: CCM IDL, CORBA Component Model IDL

�����������

$-$

����������������������������������

$����!������ !����&*�����������������

� ������&*���

� �������&*��������,'�@0�,����'�

� <�������������������<

� �&*�������<�%"�%�,�'�� �:�'

� ,�'�� �:�'�����������������������'����@�����'

� �&*�������<�%"�%�,�'����"�������������

� �&*����������"�"��

� �����"��'���'��&*����������"�"���

� ,�'����"����������������������������� "�<������@��

� ���������������'��

Page 152: CCM IDL, CORBA Component Model IDL

�����������

$-#

�����������������������

�&*�������<�%"�%����0&'"����':�'

)�������,�����

�� � Call-back

Call-back

Call-back

� �������� �

� ����������� � ������

������� ���

Page 153: CCM IDL, CORBA Component Model IDL

�����������

$-8

�����������������������

�&*�������<�%"�%���������"����&*���

)�������,�����

�� � Call-back

Call-back

Call-back

� ������

���)��$

���

� ����������� � ������

������� ���

Page 154: CCM IDL, CORBA Component Model IDL

�����������

$-+

�����������������������

�&*�������<�%"�%

)�������,�����

�� � Call-back

Call-back

Call-back

� ������

���)��$���

� ����������� � ������

������� ���

Page 155: CCM IDL, CORBA Component Model IDL

�����������

$--

�����������������������

�&*�������<�%"�%

)�������,�����

�� � Call-back

Call-back

Call-back

� ������

���)��$���

� ������

���

� ����������� � ������

������� ���

Page 156: CCM IDL, CORBA Component Model IDL

�����������

$-.

�����������������������

�&*�������<�%"�%

)�������,�����

�� � Call-back

Call-back

Call-back

� ������

���)��$���

� ������

���

� ����������� � ������

������� ���

Page 157: CCM IDL, CORBA Component Model IDL

�����������

$-1

�����������������������

�&*���������

)�������,�����

Call-back

Call-back

Call-back

� ������

���)��$���

� ������

������

���

� ����������� � ������

������� ���

Page 158: CCM IDL, CORBA Component Model IDL

�����������

$-2

�����������������������

����������'���������

)�������,�����

Call-back

Call-back

Call-back

���

)��$���

���

���

���

� ����������� � ������

������� ���

Page 159: CCM IDL, CORBA Component Model IDL

�����������

$-3

�����������������������

����������'���������

)�������,�����

Call-back

Call-back

Call-back

���

)��$���

���

���

���

� ����������� � ������

������� ���

Page 160: CCM IDL, CORBA Component Model IDL

�����������

$.4

�����������������������

����������'���������

)�������,�����

Call-back

Call-back

Call-back

���

)��$���

���

���

���

� ����������� � ������

������� ���

Page 161: CCM IDL, CORBA Component Model IDL

�����������

$.$

�����������������������

����������'���������

)�������,�����

Call-back

Call-back

Call-back

���

���

���

���

���

)��$

� ����������� � ������

������� ���

Page 162: CCM IDL, CORBA Component Model IDL

�����������

$.#

�����������������������

����������'���������

)�������,��������

���

���

���

���

)��$

� ����������� � ������

������� ���

+1������

Page 163: CCM IDL, CORBA Component Model IDL

�����������

$.8

�����������������������

���������������@�

)�������,��������

���

���

���

���

�����@�

� ����������� � ������

������� ���

+1������

Page 164: CCM IDL, CORBA Component Model IDL

�����������

$.+

����������������������������������

$����!������ !����&*�����������������

� ������&*���

� �������&*��������,'�@0�,����'�

� <�������������������<

� �&*�������<�%"�%�,�'�� �:�'

� ,�'�� �:�'�����������������������'����@�����'

� �&*�������<�%"�%�,�'����"�������������

� �&*����������"�"��

� �����"��'���'��&*����������"�"���

� ,�'����"����������������������������� "�<������@��

� ���������������'��

Page 165: CCM IDL, CORBA Component Model IDL

�����������

$.-

�����������������������

���������������'��

)�������,��������

���

���

���

���

�����@�+1������

Page 166: CCM IDL, CORBA Component Model IDL

�����������

$..

�����������������������

���������������'��

+1������ #����1�

������� ���#��������

Page 167: CCM IDL, CORBA Component Model IDL

�����������

$.1

����������������������������������

$

�����������������������

����� !������ !�����"�%

� ����� !�&"%��"���'�

� ���������������'��

� �����������"���� !�(����� !)

� ����!������ !����&*�����������������

� ����!������ !��� ���"�������������

� ����!������ !�����"�%�

Page 168: CCM IDL, CORBA Component Model IDL

����������� �����������������������

����!������ !��� ���"������������

Page 169: CCM IDL, CORBA Component Model IDL

�����������

$.3

�����������������������

����!������ !��� ���"������������

� ����������'��:"��

� ��'"B��������0�'��:"��

� �����������"����0���

� ,�'����"���

� ���<��������������'��:"��

Page 170: CCM IDL, CORBA Component Model IDL

�����������

$����!������ !��� ���"������������

� ����������'��:"��

� ��'"B��������0�'��:"��

� �����������"����0���

� ,�'����"���

� ���<��������������'��:"��

Page 171: CCM IDL, CORBA Component Model IDL

�����������

$1$

�����������������������

/��������"��'��'��"�����'�

Container

ORB

SecurityTransaction NotificationPersistency

CORBAComponent

HomeP

OA

Client

ExtendedOMG IDLexternal

API

InternalAPI

CallbackAPI

Page 172: CCM IDL, CORBA Component Model IDL

�����������

$����!������ !��� ���"������������

� ����������'��:"��

� ��'"B��������0�'��:"��

� �����������"����0���

� ,�'����"���

� ���<��������������'��:"��

Page 173: CCM IDL, CORBA Component Model IDL

�����������

$18

�����������������������

���������������'��

+1������ #����1�

������� ���#��������

Page 174: CCM IDL, CORBA Component Model IDL

�����������

$1+

�����������������������

!������ !����@�����'

Component

+1������

Page 175: CCM IDL, CORBA Component Model IDL

�����������

$1-

�����������������������

!������ !����@�����'������������"��

Component+1������

Page 176: CCM IDL, CORBA Component Model IDL

�����������

$1.

�����������������������

Component

!������ !����@�����'������������"��

+1������

Page 177: CCM IDL, CORBA Component Model IDL

�����������

$11

�����������������������

Component+1������

!������ !�����"���@�����'�"���'����

�����+1������

Page 178: CCM IDL, CORBA Component Model IDL

�����������

$����!������ !��� ���"������������

� ����������'��:"��

� ��'"B��������0�'��:"��

� �����������"����0���

� ,�'����"���

� ���<��������������'��:"��

Page 179: CCM IDL, CORBA Component Model IDL

�����������

$13

�����������������������

�����������������"�%'��

�������

������

#����1�

������

)��&�������&�����1�!"

##�&���������!"

##�&��������!"

##�&��������!"

##�&������!" ##�&������!"

Page 180: CCM IDL, CORBA Component Model IDL

�����������

$24

�����������������������

Component

+1������

!������ !��� ���"������������

)�������#��������

�����+1������

Page 181: CCM IDL, CORBA Component Model IDL

�����������

$2$

�����������������������

!������ !��� ���"������������

)������#��������

���&�������&�����1�!"

���&��������!"

���&���������!"

���&������!"

#��������&���

Page 182: CCM IDL, CORBA Component Model IDL

�����������

$2#

�����������������������

Component

+1������

!������ !��� ���"������������

)�������#��������

�����+1������

��������4���

#������������

���������������������

���

Page 183: CCM IDL, CORBA Component Model IDL

�����������

$28

�����������������������

Component

+1������

!������ !��� ���"��������@�

)�������#��������

�����+1������

)�������#����1�

Page 184: CCM IDL, CORBA Component Model IDL

�����������

$����!������ !��� ���"������������

� ����������'��:"��

� ��'"B��������0�'��:"��

� �����������"����0���

� ,�'����"���

� ���<��������������'��:"��

Page 185: CCM IDL, CORBA Component Model IDL

�����������

$2-

�����������������������

Component

+1������

!������ !�����'����':�'

)�������#��������

�����+1������

Page 186: CCM IDL, CORBA Component Model IDL

�����������

$2.

�����������������������

Component

+1������

!������ !�����'����':�'

)�������#��������

�����+1������

#����1�

Page 187: CCM IDL, CORBA Component Model IDL

�����������

$21

�����������������������

����������!�����"���'����

Component

ContextExecutor

������������������

������� ���Component

Page 188: CCM IDL, CORBA Component Model IDL

�����������

$����!������ !��� ���"������������

� ����������'��:"��

� ��'"B��������0�'��:"��

� �����������"����0���

� ,�'����"���

� ���<��������������'��:"��

Page 189: CCM IDL, CORBA Component Model IDL

�����������

$23

�����������������������

/��������"��'��'��"�����'�

Container

ORB

SecurityTransaction NotificationPersistency

CORBAComponent

HomeP

OA

Client

ExtendedOMG IDLexternal

API

InternalAPI

CallbackAPI

Page 190: CCM IDL, CORBA Component Model IDL

�����������

$34

�����������������������

Component

+1������

!������ !��������"��'��'��"�����'�

)�������#��������

�����+1������

)�������#����1�

ExtendedOMG IDLexternal

API

ExtendedOMG IDLexternal

API

Extended OMG IDL external API

InternalAPI

Call back API

Page 191: CCM IDL, CORBA Component Model IDL

�����������

$3$

�����������������������

/��������"��'��'��"�����'�

Container

ORB

SecurityTransaction NotificationPersistency

CORBAComponent

HomeP

OA

Client

ExtendedOMG IDLexternal

API

InternalAPI

CallbackAPI

Page 192: CCM IDL, CORBA Component Model IDL

�����������

$3#

����������������������������������

$

�����������������������

����� !������ !�����"�%

� ����� !�&"%��"���'�

� ���������������'��

� �����������"���� !�(����� !)

� ����!������ !����&*�����������������

� ����!������ !��� ���"�������������

� ����!������ !�����"�%�

Page 193: CCM IDL, CORBA Component Model IDL

����������� �����������������������

����!������ !�����"�%

Page 194: CCM IDL, CORBA Component Model IDL

�����������

$3+

�����������������������

����!������ !

� �@�����'

� �����@�

� ���"������������

Page 195: CCM IDL, CORBA Component Model IDL

�����������

$����!������ !

� �@�����'

� �����@�

� ���"������������

Page 196: CCM IDL, CORBA Component Model IDL

����������� �����������������������

�����@�����'

Page 197: CCM IDL, CORBA Component Model IDL

�����������

$31

�����������������������

�@�����'

� ������@�����'

� �������'��@�����'

� �����������@�����'

� ��"���@�����'

� �����"��"���@�����'

� ����

� �������'

� ,�'�� �':�'

Page 198: CCM IDL, CORBA Component Model IDL

�����������

$�@�����'

� ������@�����'

� �������'��@�����'

� �����������@�����'

� ��"���@�����'

� �����"��"���@�����'

� ����

� �������'

� ,�'�� �':�'

Page 199: CCM IDL, CORBA Component Model IDL

�����������

$33

�����������������������

����������!�����"���'����

Component

ContextExecutor

������������������

������� ���

Page 200: CCM IDL, CORBA Component Model IDL

�����������

#44

�����������������������

����������!����������&��<�"���'���������':�'

Component

Executor

������������������

�������

Page 201: CCM IDL, CORBA Component Model IDL

�����������

$�@�����'

� ������@�����'

� �������'��@�����'

� �����������@�����'

� ��"���@�����'

� �����"��"���@�����'

� ����

� �������'

� ,�'�� �':�'

Page 202: CCM IDL, CORBA Component Model IDL

�����������

#4#

�����������������������

������@�����'

������� ���

+1������

Page 203: CCM IDL, CORBA Component Model IDL

�����������

#48

�����������������������

������@�����'

� �'���������6�&��'�����������6������"���'�����

� ���������������@�����'�"���'�����"��%���'������

� /�"���������@�����'�"���'������

� ��������������������������'"%"����"���'���� �"�����5##�&6�'��"@A�

� ����"���'"��������'"%"����"���'������

� �'����"���'�������������C"���'���� ����DA������������@�����'�"���'�������������������"�%���'��

local interface CCM_<interface name> :

<interface name> { };

Page 204: CCM IDL, CORBA Component Model IDL

�����������

$�@�����'

� ������@�����'

� �������'��@�����'

� �����������@�����'

� ��"���@�����'

� �����"��"���@�����'

� ����

� �������'

� ,�'�� �':�'

Page 205: CCM IDL, CORBA Component Model IDL

�����������

#4-

�����������������������

�������'��@�����'

+1������

������� ���

+1������

Page 206: CCM IDL, CORBA Component Model IDL

�����������

#4.

�����������������������

�:����0�������������'��@�����'

� �'�������:����0���

� ���������������'��@�����'"���'���� "��%���'������

� �'�����:����0�� C�:����0�� ����D�

� ��������"���'������"����������������A�&����"�����5���E7��'��"@������������"@����5�������'7�"��%���'������

� /�"��"���'������������"�%�����������'��"����"������'�����A���������:����0�� ������"�%���"����'�����'�

local interface CCM_<eventtype name>Consumer{

void push (in <eventtype name> ev);};

Page 207: CCM IDL, CORBA Component Model IDL

�����������

$�@�����'

� ������@�����'

� �������'��@�����'

� �����������@�����'

� ��"���@�����'

� �����"��"���@�����'

� ����

� �������'

� ,�'�� �':�'

Page 208: CCM IDL, CORBA Component Model IDL

�����������

#42

�����������������������

�����������������@�����'

+1������

+1������

Page 209: CCM IDL, CORBA Component Model IDL

�����������

#43

�����������������������

����5��':�'��"��7�������"���'����

� �������������0���"��������������'���������"���'�������

� �@�����'�������6&��<

� /�����"�������������@�����'"���'����

� ����'"�"�%��'���Components::EnterpriseComponent

� /��������"��"�������������@�����'"���'����

� �����@����"�:����"��

� /�����������������"�"�������@��"���'����

Page 210: CCM IDL, CORBA Component Model IDL

�����������

$�@�����'

� ������@�����'

� �������'��@�����'

� �����������@�����'

� ��"���@�����'

� �����"��"���@�����'

� ����

� �������'

� ,�'�� �':�'

Page 211: CCM IDL, CORBA Component Model IDL

�����������

#$$

�����������������������

������������"���@�����'�����'����

� /�����"���@�����'�����&��<�"���'�������������&0�����������'����'�����"�����"����&0�����������"�%�'�����

� �'����������������C�������������DA�����������"���@�����'�"���'������"���������������������������������A�&����"������'��"@���5���E7������������"@����5E�@�����'7�"�����"����

� /�����"���@�����'�"���'����������"����������'"&����������'���&0���������������

Page 212: CCM IDL, CORBA Component Model IDL

�����������

#$#

�����������������������

�':�'�������"���'����������"���@�����'

local interface CCM_Server_Executor :::Components::EnterpriseComponent

// Main executor

{};

Page 213: CCM IDL, CORBA Component Model IDL

�����������

#$8

�����������������������

�@��'�������������������&��<�"���'�����

#��������

4����

)��,

#��������

4����

)��,

�������

�������1������

���,��1������

������1������

Page 214: CCM IDL, CORBA Component Model IDL

�����������

#$+

�����������������������

�����"��'��'��"�����'�����@�����'!�����'

������1������

#���������������

)��,

)��,

4����

4����

�@�����'!�����'

Page 215: CCM IDL, CORBA Component Model IDL

�����������

$�@�����'

� ������@�����'

� �������'��@�����'

� �����������@�����'

� ��"���@�����'

� �����"��"���@�����'

� ����

� �������'

� ,�'�� �':�'

Page 216: CCM IDL, CORBA Component Model IDL

�����������

#$.

�����������������������

���������������"��"���@�����'�����'����

� /��������"��"���@�����'�����&��<�"���'�����"�����"����&0�����������"�%�'�����

� �'����������������C�������������DA��������������"��"��@�����'�"���'������"�����������������������������������������'��"@����5���E7�"�����"����

� /��������"��"���@�����'�������������"@����5E�@�����'7�

� ���������"��"���@�����'�"���'�����"���'"�����������������'�'"������������

� ���"�"��������'��"�����'��������������������"��"��"���'�������'�������������:�����"�<��

� �&�:��'���������&�����"��"���&0�"���'"�"�%�������"���@�����'�"���'������������"�%����'��"������'�������������:�����"�<���

� /�"��"��������"��������"%�����"���&0����������"��'�"����������"��

Page 217: CCM IDL, CORBA Component Model IDL

�����������

#$1

�����������������������

�':�'�������"���'���������@�����'

local interface CCM_Server_Executor :::Components::EnterpriseComponent

// Main executor

{};

local interface CCM_Server : ::CCM_Server_Executor

// monolithic executor

{};

Page 218: CCM IDL, CORBA Component Model IDL

�����������

#$2

�����������������������

����������"�<������"��"���@�����'

� /��������"��"���@�����'����&��<�"���'���������������"������'��"������'���>�"'"�%�'���'��������������A�������'�������"�%��:����

� "������������'����'����A�"��"�����"�����&0�����������'�

Page 219: CCM IDL, CORBA Component Model IDL

�����������

$�@�����'

� ������@�����'

� �������'��@�����'

� �����������@�����'

� ��"���@�����'

� �����"��"���@�����'

� ����

� �������'

� ,�'�� �':�'

Page 220: CCM IDL, CORBA Component Model IDL

�����������

##4

�����������������������

���������������"��"���@�����'

� �'�����������A�����>�":���������'��"���"�����"����"�����������"��"���@�����'�"���'������

� �'�����������������C����D������0���C�0��DA�������'��"����"������������������������������&����"�����5%��E7��'��"@�"��%���'������

� /�"�����'��"��������������0���'�����'��"���������'���'�����������"���'����F��������@�����'��0������'���'��:�����

CCM_<type> get_<name> ();

Page 221: CCM IDL, CORBA Component Model IDL

�����������

##$

�����������������������

�':�'�������"���'�������������"��"���@�����'

local interface CCM_Server_Executor :::Components::EnterpriseComponent

// Main executor

{};

local interface CCM_Server : ::CCM_Server_Executor

// monolithic executor

{

CCM_Display get_for_clients();

};

Page 222: CCM IDL, CORBA Component Model IDL

�����������

###

�����������������������

�':�'�������"���'�������������"��"���@�����'

local interface CCM_Server_Executor :::Components::EnterpriseComponent

{};

local interface CCM_Server:::CCM_Server_Executor

{

CCM_Display get_for_clients();

};

local interface CCM_Server_Context :

::Components::CCMContext

{};

Page 223: CCM IDL, CORBA Component Model IDL

�����������

##8

�����������������������

�����"��'��'��"�����'���������"��"���@�����'

������7���1������

#���������������

4����

4����

Page 224: CCM IDL, CORBA Component Model IDL

�����������

$�@�����'

� ������@�����'

� �������'��@�����'

� �����������@�����'

� ��"���@�����'

� �����"��"���@�����'

� ����

� �������'

� ,�'�� �':�'

�����������

$�@�����'

� ������@�����'

� �������'��@�����'

� �����������@�����'

� ��"���@�����'

� �����"��"���@�����'

� ����

� �������'

� ,�'�� �':�'

Page 225: CCM IDL, CORBA Component Model IDL

�����������

##-

�����������������������

�':�'� "�<����������"��"���@�����'

� �'�����������"����������"����������������������"��"��@�����'���'���%0A����������"��'�"�:�<����"�<��@�����'���'��"��������:�'�����"��������������:���������"���"�<�

local interface CCM_Server : CCM_Server_Executor

{

void push_received_Info(in HelloInfo event);

}

Executor

push_received_info(in HelloInfo event)

Page 226: CCM IDL, CORBA Component Model IDL

�����������

##.

�����������������������

�':�'�������"���'���������@�����'

local interface CCM_Server_Executor :::Components::EnterpriseComponent

// Main executor

{};

local interface CCM_Server : ::CCM_Server_Executor

// monolithic executor

{

void push_received_info_(in HelloInfo event);

};

Page 227: CCM IDL, CORBA Component Model IDL

�����������

##1

�����������������������

�':�'�!�����"���'�����

local interface CCM_Server_Executor :::Components::EnterpriseComponent

{};

local interface CCM_Server:::CCM_Server_Executor

{

void push_received_info(in HelloInfo event);

};

local interface CCM_Server_Context :

::Components::CCMContext

{};

Page 228: CCM IDL, CORBA Component Model IDL

�����������

##2

�����������������������

�����"��'��'��"�����'���������"��"���@�����'

������1������

#���������������

)��,

)��,

Page 229: CCM IDL, CORBA Component Model IDL

�����������

$�@�����'

� ������@�����'

� �������'��@�����'

� �����������@�����'

� ��"���@�����'

� �����"��"���@�����'

� ����

� �������'

� ,�'�� �':�'

Page 230: CCM IDL, CORBA Component Model IDL

�����������

#84

�����������������������

�@�����'����,�'�� �':�'#��������

4����

)��,

#����������1������

�������1������

�������

���,��1������

Page 231: CCM IDL, CORBA Component Model IDL

�����������

#8$

�����������������������

�@�����'����,�'�� �':�'#��������

4����

)��,

#����������1������

�������1������

�������

���,��1������

4����

)��,

���

���

Page 232: CCM IDL, CORBA Component Model IDL

�����������

#8#

�����������������������

�@�����'����,�'�� �':�'

#��������

4����

)��,

#��������

4����

)��,

�������

Page 233: CCM IDL, CORBA Component Model IDL

�����������

#88

�����������������������

�@�����'����,�'�� �':�'

#��������

4����

)��,

#��������

4����

)��,

�������

�������1������

���,��1������

Page 234: CCM IDL, CORBA Component Model IDL

�����������

#8+

�����������������������

�@�����'����,�'�� �':�'��������"��"���@�����'

������1������

#���������������

)��,

4����

)��,4����

Page 235: CCM IDL, CORBA Component Model IDL

�����������

$����!������ !

� �@�����'

� �����@�

� ���"������������

Page 236: CCM IDL, CORBA Component Model IDL

����������� �����������������������

���������@�

Page 237: CCM IDL, CORBA Component Model IDL

�����������

#81

�����������������������

�����@�

� �����@�

� ������������������"��

� ��"���'�����,�&�"���'��������"��

� ,�'����"���

Page 238: CCM IDL, CORBA Component Model IDL

�����������

$�����@�

� �����@�

� ������������������"��

� ��"���'�����,�&�"���'��������"��

� ,�'����"���

Page 239: CCM IDL, CORBA Component Model IDL

�����������

#83

�����������������������

����������!������"'����"���'�������,�'����"���

Component

Context

������������������

���

Page 240: CCM IDL, CORBA Component Model IDL

�����������

#+4

�����������������������

���������������'�����'����������������@�

)��$

#����1�

���

/��������

Page 241: CCM IDL, CORBA Component Model IDL

�����������

#+$

�����������������������

���������������'�������"���'���&�"���'������@�

)��$

#����1�

���

�������

Page 242: CCM IDL, CORBA Component Model IDL

�����������

$�����@�

� �����@�

� ������������������"��

� ��"���'�����,�&�"���'��������"��

� ,�'����"���

Page 243: CCM IDL, CORBA Component Model IDL

�����������

#+8

�����������������������

�����������������&��������"��'������@�

�$%������ )������2 )������ #��������

���������������

���������������

#����1�

)��$

���&#���������

Page 244: CCM IDL, CORBA Component Model IDL

�����������

#++

�����������������������

����5��':�'��"��7�������"���'����

� �������������0���"��������������'���������"���'�������

� �@�����'�������6&��<

� /�����"�������������@�����'"���'����

� ����'"�"�%��'���Components::EnterpriseComponent

� /��������"��"�������������@�����'"���'����

� �����@����"�:����"��

� /�����������������"�"�������@��"���'����

� ���'��"������������������������'����������������:�������'���

Page 245: CCM IDL, CORBA Component Model IDL

�����������

#+-

�����������������������

���������������@������'����

� /��������@��"���'����"���'�����"�����"����&0�����������"�%�'�����

� �'����������������C�������������DA��������������@�"���'������"���������������������������������A�&����"������'��"@����5���E7������������"@����5E�����@�7�"�����"����

� ���������@��"���'�����"���'"�����������������������@��

� ���"�"��������'��"�����'�������������������@��"���'�������'�'����������������:�������'����

Page 246: CCM IDL, CORBA Component Model IDL

�����������

#+.

�����������������������

���������������@������'����

Page 247: CCM IDL, CORBA Component Model IDL

�����������

#+1

�����������������������

"���'���������@�

� �������@��"���'�����"�����"������'�����������������

� /��������@��"���'����������"������������6����"�"��'���"���"���'���"����

� ��'�"�:�<"�%����'��"�������'����������

� ��'�����"�%��:�����"�����:�������'�����'���

� ���"��"�����������&0����������"��'������������������������������������"��������@��(?������E�����@�)��

� /�������"��������@��"��������������������������&0����E����"��E�����@����'��"����������"��E���������

Page 248: CCM IDL, CORBA Component Model IDL

�����������

#+2

�����������������������

�����������

� �'������'���������A�����>�":���������'��"���"�����"����"�����������@��"���'�����

� /����"%����'�������"�����'��"��������������������'�����'����������"���"����@��'�����"���@�

� �'����"����@�'������������������C����D������0���C�0��DA�������'��"���������������������������'����������&����"�����5%��E�������"��E7��'��"@�"��%���'�����

� /������'��"��������������0���'�����'��"��A���������&*����'���'���� �������"���'����F���0�� ���'���'��:�����

� ������'��"������������"��A���"�����'��"���'���'������"��'���'�����

<type> get_connection_<name> ();

Page 249: CCM IDL, CORBA Component Model IDL

�����������

#+3

�����������������������

����"���@�'����������

� �'�������"���@�'������������������C����D�����0���C�0��DA������'��"���������������������������'����������&����"�����5%��E�������"���E7��'��"@�"��%���'������

� /������'��"��������������0���'�����'��"�����������>����������0���C����D�������"������'���'��:�����(��"���0���"�����"����&0�������"���6�"����>�":������� !)�

<name>Connections get_connections_<name> ();

Page 250: CCM IDL, CORBA Component Model IDL

�����������

#-4

�����������������������

�������������"����������"���'�������������@�

local interface CCM_Client_Context : ::Components::CCMContext

{

Display get_connection_to_server();

};

Page 251: CCM IDL, CORBA Component Model IDL

�����������

$�����@�

� �����@�

� ������������������"��

� ��"���'�����,�&�"���'��������"��

� ,�'����"���

Page 252: CCM IDL, CORBA Component Model IDL

�����������

#-#

�����������������������

,�&�"���'�������"���'��"���������@�

� �'��������&�"���'�������"���'���'�A�����>�":���������'��"���"�����"����"�����������@��"���'������

� �'���&�"���'��'���"���'���'����������C����D������0���C�0��D��

� ������'��"�����������������������������'��&����"�����5����E7��'��"@�"��%���'������

� /�"�����'��"����������'���'��:������������"�%���"����'�����'������"�"�%������:����

� �������7&8����9�!���8����9���":

� /���������������0��������"�����'��"���"���'��'�������������:������������������'�(��'���"���'���'��)��'����������&��'"&�'��(��'���&�"���'���'��)�

Info_to_send

Client void push_info_to_send(in HelloInfo event);

Page 253: CCM IDL, CORBA Component Model IDL

�����������

#-8

�����������������������

��"���'���"���������@�

local interface CCM_Client_Context :

::Components::CCMContext

{

void push_info_to_send(in HelloInfo event);

}

Context

void push_info_to_send(in HelloInfo event);

Page 254: CCM IDL, CORBA Component Model IDL

�����������

$�����@�

� �����@�

� ������������������"��

� ��"���'�����,�&�"���'��������"��

� ,�'����"���

Page 255: CCM IDL, CORBA Component Model IDL

�����������

#--

�����������������������

,�'����"���

Component

Context

������������������

������� ���

Page 256: CCM IDL, CORBA Component Model IDL

�����������

#-.

�����������������������

,�'����"���

#��������

#��������

#����1�

���

/��������

�������

Page 257: CCM IDL, CORBA Component Model IDL

�����������

#-1

�����������������������

�0&'"�����������

Component

ContextExecutor

������������������

������� ���

Page 258: CCM IDL, CORBA Component Model IDL

�����������

#-2

�����������������������

�@��'�������������������&��<������"'����"���'�����

#��������

4����

)��,

#��������

4����

)��,

�������

#����1�

���

/��������

�������

Page 259: CCM IDL, CORBA Component Model IDL

�����������

$����!������ !

� �@�����'

� �����@�

� ���"������������

Page 260: CCM IDL, CORBA Component Model IDL

����������� �����������������������

���"������������

Page 261: CCM IDL, CORBA Component Model IDL

�����������

#.$

�����������������������

���"������������

� ���������������@��

� �������������":��"����!"����0���

� ���"��������@��������"��'�"���'"�����

� ��'��@�����'

Page 262: CCM IDL, CORBA Component Model IDL

�����������

#.#

����������������������������������

$ ���"������������

� ���������������@��

� �������������":��"��

� ���"��������@��������"��'�"���'"�����

� ��'��@�����'

Page 263: CCM IDL, CORBA Component Model IDL

�����������

#.8

�����������������������

����������!�����"���'����

Component

ContextExecutor

������������������

������� ���Component

Page 264: CCM IDL, CORBA Component Model IDL

�����������

#.+

�����������������������

���������������'��

+1������ #����1�

������� ���#��������

Page 265: CCM IDL, CORBA Component Model IDL

�����������

#.-

�����������������������

���������������'������'����':�'

+1������

�������#��������

Page 266: CCM IDL, CORBA Component Model IDL

�����������

#..

�����������������������

���������������'�������'����"���

+1������ #����1�

������� ���#��������

Page 267: CCM IDL, CORBA Component Model IDL

�����������

#.1

�����������������������

�����������������&��������"��'������@�

�$%������ )������2 )������ #��������

���������������

���������������

#����1�

)��$

���&#���������

33

Page 268: CCM IDL, CORBA Component Model IDL

�����������

#.2

����������������������������������

$ ���"������������

� ���������������@��

� �������������":��"��

� ���"��������@��������"��'�"���'"�����

� ��'��@�����'

Page 269: CCM IDL, CORBA Component Model IDL

�����������

#.3

�����������������������

��������������"��

+1������ #����1�

���

#��������

Page 270: CCM IDL, CORBA Component Model IDL

�����������

#14

�����������������������

��������������"��

+1������ #����1�

���

#��������

#����������������

Page 271: CCM IDL, CORBA Component Model IDL

�����������

#1$

�����������������������

��������������"��

+1������ #����1�

���

#��������

#����������������

Page 272: CCM IDL, CORBA Component Model IDL

�����������

#1#

�����������������������

��������������"��

+1������ #����1�

������� ���

#��������

#����������������

Page 273: CCM IDL, CORBA Component Model IDL

�����������

#18

�����������������������

�@�����'���������"�������������#��������

4����

)��,

#����������1������

�������1������

�������

���,��1������

Page 274: CCM IDL, CORBA Component Model IDL

�����������

#1+

�����������������������

�@�����'���������"������������

#��������

4����

)��,

#����������1������

�������1������

�������

���,��1������

Page 275: CCM IDL, CORBA Component Model IDL

�����������

#1-

�����������������������

���"������������

� /��� ���"�����������"��������&��<�"���'�����"�����������&0�������"��������������������

� ����'�:"�������'��"������'��"������"��"�%��������@���"����������������������������%����':�����"���"������'�������"��������������

� ���������"������������A��������'���0����"�����0�"���'"������������������ ���"�����������"���'������

� �����"��'����"�"���"�����'��������������"����0���������������������":��"�����������":��"���

Page 276: CCM IDL, CORBA Component Model IDL

�����������

#1.

�����������������������

���"������������

Page 277: CCM IDL, CORBA Component Model IDL

�����������

#11

�����������������������

���"������������

� ���E����"��E�����@�

� /������E����"��E�����@�����'��"���"������������������ ���"�������@�������������������/��������"��'���������"�����'��"�������'�������������"������������&�����'�������

� ���E���":���

� /������E���":�������'��"���"���������&0����������"��'�������"�0������"������������������"������&������������":���/�������������"�����������������'��'����0�"�"�"��"B��"�� '�>�"'����'"�'�������'��"���"�:����"����

� ���E����":���

� /������E����":��� ���'��"���"���������&0����������"��'�������"�0������"������������������"������&���������"����":���/�������������"���������������'������ ��0�'����'����"����>�"'���������":��"����"����

� ���E'���:�

� /������E'���:�����'��"���"���������&0����������"��'������������':����"��&�������&������'�0�������"���'����������������������"��"���&�������&������'�0����

Page 278: CCM IDL, CORBA Component Model IDL

�����������

#12

�����������������������

���"������������

// Container callback implemented by the component

local interface SessionComponent :

::Components::EnterpriseComponent

{

// The context is fixed by the container.

void set_session_context(SessionContext ctx)

raises(CCMException);

// Called when component is activated.

void ccm_activate() raises(CCMException);

// Called when component is deactivated.

void ccm_passivate() raises(CCMException);

// Called when component is removed.

void ccm_remove() raises(CCMException);

};

Page 279: CCM IDL, CORBA Component Model IDL

�����������

#13

����������������������������������

$ ���"������������

� ���������������@��

� �������������":��"��

� ���"��������@��������"��'�"���'"�����

� ��'��@�����'

Page 280: CCM IDL, CORBA Component Model IDL

�����������

#24

�����������������������

���"������������

// Container callback implemented by the component

local interface SessionComponent :

::Components::EnterpriseComponent

{

// The context is fixed by the container.

void set_session_context(SessionContext ctx)

raises(CCMException);

// Called when component is activated.

void ccm_activate() raises(CCMException);

// Called when component is deactivated.

void ccm_passivate() raises(CCMException);

// Called when component is removed.

void ccm_remove() raises(CCMException);

};

SessionContext

Page 281: CCM IDL, CORBA Component Model IDL

�����������

#2$

�����������������������

�����@�������"��'�"���'���

Page 282: CCM IDL, CORBA Component Model IDL

�����������

#2#

�����������������������

�����"��'������@����''��"�%

� /��������"��'��"������������"���'����������"���'"���&�����������EC�������������DE�����@�"���'��������������������� ���"�������@�

� /�������������"����������"������''������������������� ���"�������@�'���'����������"��'���":�������������EC�������������DE�����@�

Page 283: CCM IDL, CORBA Component Model IDL

�����������

#28

�����������������������

�����������������&��������"��'������@�

�$%������ )������2 )������ #��������

���������������

#����1�

)��$

���&#���������

CCM_Client_Context::_narrow();

Page 284: CCM IDL, CORBA Component Model IDL

�����������

#2+

�����������������������

��������������"��

+1������ #����1�

������� ���

#��������

#����������������

Page 285: CCM IDL, CORBA Component Model IDL

�����������

#2-

����������������������������������

$ ���"������������

� ���������������@��

� �������������":��"��

� ���"��������@��������"��'�"���'"�����

� ��'��@�����'

Page 286: CCM IDL, CORBA Component Model IDL

�����������

#2.

�����������������������

���"���������������������"��"���@�����'

� /��&�����"�"���&0����������"��'����������"��"���@�����'��������"�������������"���'"���������������� ���"�����������"���'�����

Page 287: CCM IDL, CORBA Component Model IDL

�����������

#21

�����������������������

?�������'���������'��@�����'

�����"��"���@�����'

Page 288: CCM IDL, CORBA Component Model IDL

�����������

#22

�����������������������

��'��@�����'

local interface User_CCM_Client :

CCM_Client,

Components::SessionComponent

{};

Page 289: CCM IDL, CORBA Component Model IDL

�����������

#23

�����������������������

����������������'��@�����'�������6&��<#��������

4����

)��,

������7����1������

�������1������

�������

���,��1������

Page 290: CCM IDL, CORBA Component Model IDL

�����������

#34

�����������������������

����������������'��@�����'�������6&��<

#��������

4����

)��,

������7����1������

�������1������

�������

���,��1������