• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

I am unable to connect corba client to corba server

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI,

I am new to corab. I have c++ corba client. I cant change that clinet. I want to write corba server in java which will be response to client.

Client class is containng following code block :

string corbaloc = "corbaloc::";
corbaloc += serverNamePort;
corbaloc += "/IncSecurityObjKey";

//cout << std::endl << " Created Security corbaloc " <<std::endl ;
LOG (1, " Created Security corbaloc");
//Get the security interface
CORBA::String_var theSecurityIOR;

//destringify the IOR
CORBA::Object_var securityObj;

try
{

securityObj = (*orb)->string_to_object( corbaloc.c_str() );
}
catch(...)
{
//cout << std::endl << "FAILURE: string_to_object( " << corbaloc << " ) threw an unknown exception" << std::endl;
LOG (1, "FAILURE: string_to_object( " << corbaloc.c_str() << " ) threw an unknown exception");

return CE_CONNECTFAILED;
}

try
{
if(CORBA::is_nil(securityObj.in()))
{
//cout << std::endl << "FAILURE: the resolved security interface was a NULL reference" << std::endl;
LOG (1, "FAILURE: the resolved security interface was a NULL reference");
return CE_CONNECTFAILED;
}
}
catch(...)
{
//cout << std::endl << "FAILURE: CORBA::is_nil(securityObj.in()) threw an unknown exception" << std::endl;
LOG (1, "FAILURE: CORBA::is_nil(securityObj.in()) threw an unknown exception");
return CE_CONNECTFAILED;
}

try
{
//narrow the object to a security reference
security = new Incognito::Security_var;
//cout << std::endl << "security object created " << std::endl ;
LOG (1, "security object created");
(*security) = Incognito::Security::_narrow(securityObj.in());




What should I write in server program it wil support this naming style and creates naming service.


Please help

Thanks in advance
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic