12.11.2014 Views

web server - Borland Technical Publications

web server - Borland Technical Publications

web server - Borland Technical Publications

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

EJB to CORBA mapping<br />

A CORBA program obtains an initial CORBA Naming Service naming context by<br />

calling resolve_initial_references("NameService") on the ORB (pseudo) object. The<br />

CORBA Naming Service does not prescribe a rooted graph for organizing naming<br />

context and, hence, the notion of a root context does not apply. The initialization of the<br />

ORB determines the context returned by resolve_initial_references().<br />

For example, a C++ Client can locate the home interface to the ATMSession bean,<br />

which has been registered with a JNDI string name “transaction/corbaEjb/atm”. You<br />

first obtain the initial naming context.<br />

Object_ptr obj = orb->resolve_initial_refernces("NameService");<br />

NamingContext initialNamingContext= NamingContext.narrow( obj );<br />

if( initialNamingContext == NULL ) {<br />

cerr

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!