Search
 
 
Unique Features of CCM
Interworking with EJB
K2 CIDL COMPILER
     
   
     
  Interworking with EJB
 

The bridge maps interface and identity between two object systems. The bridge holds reference in B for the target object. The client treats view as a real object in system A and makes the request on reference B which is translated to the request understood by system B. The net effect is that a request made in interface of system A is transparently delivered to component instance in system B.

Interworking Model

The bridge works in either direction. For example if system is EJB and system B is CCM, then view is called EJB view on CCM target and bridge called EJB-CCM bridge. Similarly if system B is CCM and system A is EJB, then view is called CCM view on EJB target. The following section discusses more details about bridge and view mapping requirements.

  EJB-CCM Bridge
 

In this document we must define concept of a component attending to requirements they must address. A component can be defined as:

 
CORBA components specified in extended IDL are mapped to JAVA interfaces to provide EJB view for use by EJB clients.
The bridge implements EJB interfaces as proxy implementation.
RMI compiler is used to generate stubs and skeletons to be used by both EJB client and bridge.
The bridge binds the proxy implementation to JNDI (Java Naming Directory Interface) to be used by EJB client.
The proxy implementation translates requests to invoke it on target CCM component.
   
  CCM-EJB Bridge
 

For application development in a CCM environment, a CCM-EJB bridge allows a CCM client to communicate with EJB component through a CCM view. The process of implementing CCM-EJB Bridge is as follows:

 
JAVA interfaces are mapped to extended IDL to provide CCM view to CCM client.
The bridge implements CCM IDL as proxy implementation.
IDL compiler is used to generate stubs and skeletons to be used by both CCM client and bridge.
The bridge binds a proxy implementation to CosNaming service through which JNDI can access object references for EJB client.
The proxy implementation translates requests to invoke on target EJB component.
Copyright 2008 iCMG. All rights reserved.
Site Index | Contact Us | Legal & Privacy Policy