Skip to content

About CORBA::Object::Helper::bind() function on ACE_TAO 5.4 #2322

Open
@revtheundead

Description

@revtheundead

Hello,

I'm part of a project that uses ACE_TAO 5.7. There is a function call to CORBA::Object::Helper::bind() somewhere in my code that looks a lot like this:

//...
CORBA::Object* temp_ref;
Hotel_var the_hotel;

// Bind to Hotel Server
TRY{
    temp_ref = CORBA::Object::Helper::bind
    (
        "",                      // server class
        "Hotel_Server",          // server instance
        "RootPOA",               // POA name
        "",                      // object id
        argv[1],                 // server endpoints
        Hotel::oe_IR_Name,       // repository name
        true,                    // pre-connect to server
        true,                    // verify location
        _env                     // environment
    );
}
CATCH(CORBA::SystemException, sys) {
    cerr << "exception raised in bind" << endl;
    return -1;
}
ENDTRY(-1);

the_hotel = Hotel::_narrow(temp_ref);

//...

However, there is no member named Helper inside Object and therefore no bind method in ACE/TAO 5.7. I wanted to know how I can migrate the above code segment to ACE/TAO 5.7. By the way, the endpoint here apparently has the form ipmc://<ADDRESS>:<PORT>.

I realize with newer versions of ACE/TAO coming out these may be rather ancient versions but it would really help if I could learn more. I have tried to look this up in the ACE/TAO changelogs but nothing useful comes up and I have little to no idea where bind()'s counterpart may be.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions