[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference pamsrc::objectbroker_dtc

Title:ObjectBroker Desktop Connection
Moderator:RECV::STORM
Created:Mon Jan 06 1997
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:40
Total number of notes:125

27.0. "Cannot Obtain TypeInfo" by ULYSSE::CATTOLICO () Thu Feb 27 1997 11:23

    Hi,
    
       I installed two days ago the most
       recent version of OBB DTC (and the necessary prerequisites).
       In general it works fine, but there's a major problem.
    
       When using the Digital Object Explorer, I get the following error
       boxes:
          "Cannot Obtain TypeInfo for the COM Object.
           Lack of Type Information........"
       
          "... status code 80004002"
    
       whenever I try to "open" any object (for instance
       CreateAcct in BANK/AcctFactory).
    
       I was able to generate "odl" files etc. for my classes,
       see them from the Object Bridge, install services, etc....
       but I'm stuck to the above error any time I try
       to use them from the Object Explorer.
    
    Any Hint?
    
    Thanks in advance                                            
    
    Paolo 
    
T.RTitleUserPersonal
Name
DateLines
27.1look in AdvertisementsPAMSRC::PROCTORsay it with objectsThu Feb 27 1997 13:207
    The instances of bank account created by the setup.bat in the example11
    directory are placed in the Advertisements directory.  Try opening one
    of these.  The objects listed in the other  directories are related to
    interface repository.  The agent server (activated on open) will not be
    able to get type information for them.
    
    bob
27.2Advertsements EMPTYULYSSE::CATTOLICOFri Feb 28 1997 04:088
    bob,
    
      thanks for you answer.
    
      Unfortunately, I can't see anything under the
      Advertisements directory.... what could have happened?
    
    Paolo
27.3follow setup.batPAMSRC::PROCTORsay it with objectsFri Feb 28 1997 09:2412
    I suggest looking at the setup.bat file in example11.  In there are the
    commands necessary to setup the namespace.
    
    There are two important steps.  One, registering the instance under a
    given name using obbreg.  Two, registering the interfaces for the
    object in the interface repository using obbgencom.  I suggest
    executing these commands manually.  If you get errors that the object
    already exists, use obbunreg to remove advertisement registry and I
    ussually just delete obb_bridge_*.ir to remove all interface
    registrations.  
    
    bob
27.4Try running the demo to see how it's doneiceaxe.zko.dec.com::RosenMichael RosenFri Feb 28 1997 09:2524
Paolo,

We do not use the Object Bridge administrator to expose CORBA objects to COM 
clients.  We only use it to expose COM services to CORBA clients (not supported 
in the release that you have).  Instead, we have integrated exposing COM 
objects into our ObjectBroker shell extensions.  When you right click on the
OMG IDL file, you will see a variety of choices.  Pick Generate Code and then
choose the Desktop Views tab.

Have you run the "Desktop Bank11 Demonstrations" from the ObjectBroker program 
group?  If not, give it a try and see how it uses the shell extensions.  One 
word of caution.  Do not actually follow the instructions in the pop up dialog 
boxes.  Just click on Okay.  The demo will click all the appropriate buttons in 
the applications.  Let us know if the demo does not work correctly.

Basically, there are two step involved in getting objects to appear in the 
advertisements folder in the Object Explorer.  First you must expose them to 
the bridge using the shell extensions, secondly, you must register the object 
references in the objectbroker advertisement partition using the obbreg -O 
command.  Do you need more details on doing this?

Mike Rosen

    
27.5much betterULYSSE::CATTOLICOFri Feb 28 1997 10:2817
    Thanks for your answers.
    
    Now things are getting much better.
    Manually executing \Example11\SETUP.BAT helped me in discovering
    the error (in obbgencom: "Object BANK already exists").
    
    So, I removed obbbridge_*.ir from the "repos" directory,
    and NOW I can see the Checking_Acct object from the Advertisements.
    
    I'll let you know how how I'm progressing.
    
    Thanks again
    
    Paolo