need help with CORBA::ORBit and orbit-name-server 
Author Message
 need help with CORBA::ORBit and orbit-name-server

I'm trying to use CORBA::ORBit to bind names into the
orbit-name-server, and I'm having trouble.

I create a servant:
    $servant = new MyServant;
    $id = $poa->activate_object ($servant);

grab the IOR to the name server:
    open (FH,"<ns.ior");
    chomp(my $ior=<FH>);
    close FH;
    my $ns=$orb->string_to_object($ior);

the name server works OK, e.g. I can bind a new context:
    try {
        my $ns1=$ns->bind_new_context
            ([{'id' => 'context', 'kind' => 'whatever'}]);
    catch CosNaming::NamingContext::AlreadyBound with
        # OK

and I can use $ns->list() to see that the new context is there and
    my ($empty,$iter)=$ns->list(0);
    for(;;) {
        my ($rv,$binding)=$iter->next_one();

            print $_->{'id'},", ",$_->{'kind'},"\n";
        last unless $rv;
        print "\n";

However, when I try to bind an object:

        [{'id' => 'server' , 'kind' => 'server'}],
        $poa->servant_to_reference ($servant)
        #$poa->servant_to_id ($servant)

It always comes back with
    Attempt to marshall unknown object type at ./server line 184.

I've tried many variations using servant_to_reference(),
servant_to_id(), and so forth.  Can anyone tell me what I'm doing

David M. Meyer

Thu, 17 Oct 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. TDBLookupCombo problems in Delphi 1

2. CORBA::ORBit Client - Iona Orbix Server

3. CORBA::Orbit


5. CORBA::Orbit

6. CORBA::ORBit problem

7. CORBA/ORBit support- how good is it?

8. ORBit (Corba) and Perl

9. Unix '.Z' compress/uncompress routine ????

10. How do I distribute bde?

11. Convert hex to binary

12. How can I see if a paradox table is busy or not


Powered by phpBB® Forum Software