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

Conference pamsrc::objectbroker_development

Title:ObjectBroker Development - BEA Systems' CORBA
Notice:See note 2 for kit locations; note 4 for training
Moderator:RECV::GUMBELd
Created:Thu Dec 27 1990
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2482
Total number of notes:13057

2448.0. "Questions on ObjectBroker DSI & DII" by HYDRA::AMORELLI () Mon Mar 03 1997 17:08

Hi,

A partner has a bunch of question for us. Can you folks offer some input? The
involve DSI and DII. I've broke them into ObjectBroker DSI & DII groups.

Thanks in advance.

Carl

========================


Corba for Windows NT

ObjectBroker DSI 
 
We want to develop a generic server application (i.e. a tool which
interprets 4GL programs) by using ObjectBroker and CORBA DSI.
I do have some experience with ObjectBroker 2.6 DII (Windows NT, C).

Questions:

1) Does Objectbroker v2.6 support DSI (i.e. for Windows NT & UNIX)?
   I can't find this subject in the ObjectBroker manuals.

2) If so, can you provide me an example (server/client C-code, IDL)?
   The situation we want to use it for is as follows:

- the're one or more CORBA objects defined in the Repository.

- After the server program is started, it should:

- create one (server) CORBA object, (using a string which contains the
  object interface name).

- go into the server loop and handle all incoming operations.  Probably,
  our server application should implement one DIR, which must be able to
  handle different interfaces/operations.

The problem is that the interface/implementation definition of the to be
created CORBA object will be unknown during the development of our server
application.


===========================

ObjectBroker DII

We want to develop a generic client application (i.e. a tool which
interprets 4GL programs) by using ObjectBroker and CORBA DII.

Platform: Windows NT, ObjectBroker 2.6, C-language. 

Questions:
 
1) According CORBA 2.0, DII, a client doesn't need to specify the datatype
   of an argument when building an operation argument list.  Only if the
   datatype is specified, it will be checked against
   the repository.

Question: which value is the 'type not specified' value?

I'am building the request manually by using CORBA_ORB_create_list and
CORBA_NVLIST_add_item.

    My C-code:
    |    st = CORBA_NVList_add_item(list,&ev,
    |		NULL,
    |		0,		/* type */
    |		value,
    |		value_len,
    |		0);
    ObjectBroker returns an exception (in &ev) because 'type' is zero.
    When I fill in the proper TypeCode for 'type', the operation is
    invoked correctly. When I fill in TC_null, TC_void or TC_any,
    no exception is returned, but the request is rejected because
    the typecode doesn't match....
    I don't want ObjectBroker to check the argument datatypes (have been
    checked (once) already).

T.RTitleUserPersonal
Name
DateLines
2448.1SEND::SLAVINTue Mar 04 1997 09:328
>Questions:
>
>1) Does Objectbroker v2.6 support DSI (i.e. for Windows NT & UNIX)?
>   I can't find this subject in the ObjectBroker manuals.

ObjectBroker does not currently support DSI on any platforms. This is 
being considered for the IIOP implementation in ObjectBroker Bryce.
2448.2REQUE::BOWERPeter Bower, ObjectBrokerFri Mar 07 1997 07:086
    
    OBB does require a valid type to be specified. As you stated,
    this is incorrect according to the CORBA standard. I have
    entered a problem report - 16-3-249. For now, you will have
    to specify the type.