Discussion:
[omniORB] Question Concerning Corba Server
Ekrem Karaman
2010-01-22 19:58:28 UTC
Permalink
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20100122/57f8af49/attachment.htm
Martin Baschnegger
2010-01-22 21:17:37 UTC
Permalink
Hi,
I need the functions of an application which runs with omniORB. But the
only thing I got are the idl files and information about the server host
and host port.
The server files are given in dll Form.
I need to to write a client side application that schould use the server
side functions.
Does this seem possible ?
I got few experience with Corba, but as far as I know I need also some
kind of Implementation Code of the server files.
Is it possible to write to use the server side options of a program just
with the given idl files ?
And if yes, how ??
Honestly I don't quite get what parts you're supposed to code and what
parts are already provided. (Server-DLLs what?)

With CORBA it roughly works like this:

1.) file.idl : Contains Interface definition (Interface only)
2.) From this file omniORB generates C++ files, so called stub-files
that will be used by the server application AND by the client application.
3.) When you need to write the client application, you need to use the
C++ classes (see the documentation which ones exactly) that are present
in these generated C++ files. Then *you* implement all the
functions(methods) that are originally defined in the IDL file.

If you want to program with CORBA and C++, please get the book "Advanced
CORBA Programming with C++" by Henning/Vinoski, otherwise you will waste
a lot of time.

br,
Martin
Edward Lin
2010-01-23 21:27:35 UTC
Permalink
Yes, it is possible to implement an application via a known IDL file.
CORBA is a cross-language, cross-vendor, cross-platform and cross-OS
implementation. So you can definitely write an application by only
knowing the specified IDL file.

The only problem of your application is how the application get object
references to reach CORBA object. It depends on server implementation.
If the server bind object references to Name Server, you must know
object contexts to resolve references from Name Server; if the server
stringifies the references, you have to use string_to_object() to
convert the given string to reference. Of course, there are other
methods to expose server's object references. Generally speaking, the
former one is the most common method.

Get a CORBA/C++ bible "Advanced CORBA Programming With C++" in
advance. It worths to pay.

Thanks,
Edward Lin
Hi,
I need the functions of an application which runs with omniORB. But the
only thing I got are the idl files and information about the server host
and host port.
The server files are given in dll Form.
I need to to write a client side application that schould use the server
side functions.
Does this seem possible ?
I got few experience with Corba, but as far as I know I need also some
kind of Implementation Code of the server files.
Is it possible to write to use the server side options of a program just
with the given idl files ?
And if yes, how ??
Loading...