Hi,
I am new to CORBA, and I have the following question.
I have an idl file, and I must implement a server for this idl. Client
application exists and of course they know the idl interface.
In the clients, I can only set the host and portnumber of the server.
I have no naming service, and also no ior string. Now, how can I
implement a CORBA server which is listening on a specific port, and
which implements the interface, without naming service and without ior
strings. The server has only one distributed object, which is
accesible from outside.
Any hints are greatly appreciated.
Dieter
lqqchen - 05 Mar 2004 10:17 GMT
Hi,
You need to read some books/tutorials to get some basic knowledge of
CORBA.
CORBA has encapsuated the low level communication for you. That is, you
do not need to consider the host:port and other low level communication
parameters.
Generally, you provide a server implementation, and register your
implementation to the POA. And you client bind to the object, and issue
operation of the object. (the operation is defined in your IDL file)
You can download some ORB,and run some basic example to see how CORBA
works.
lqqchen
> Hi,
>
[quoted text clipped - 12 lines]
>
> Dieter
Dieter Salath? - 07 Mar 2004 19:29 GMT
> You need to read some books/tutorials to get some basic knowledge of
> CORBA.
I've been doing that.
> CORBA has encapsuated the low level communication for you. That is, you
> do not need to consider the host:port and other low level communication
> parameters.
Yes, I know, and that's why I am confused because my clients need a
host and a port number to connect to the server (these clients do
already exist). Is this possible with CORBA, or probably I missed
somthing.
Dieter
Björn Eilers - 07 Mar 2004 20:18 GMT
Hi Dieter!
Dieter Salath schrieb:
>> CORBA has encapsuated the low level communication for you. That is, you
>>do not need to consider the host:port and other low level communication
[quoted text clipped - 4 lines]
> already exist). Is this possible with CORBA, or probably I missed
> somthing.
For the orbd included in the Java SDK there exist two parameters
"-ORBInitialPort" and "-ORBInitialHost" which you can use to point your
client to the server you are using. I think the same might also apply to
other CORBA implementations.
Yours,
/Björn
Bill Lloyd - 09 Mar 2004 22:12 GMT
Those APIs are completely proprietary to the JDK ORB. They are based
on a 17 year old draft (okay, 5 year old) of the Interoperable Naming
Service which was tossed (probably too easy ;-) and as such they won't
work with other ORBs.
> Hi Dieter!
>
[quoted text clipped - 16 lines]
>
> /Björn
Bruce Krawetz - 08 Mar 2004 21:45 GMT
> Hi,
>
[quoted text clipped - 12 lines]
>
> Dieter
Most orbs understand the '-ORBInitRef' command line argument and
understand 'corbaloc:<hostname>:<port>' IORs. Alas, the orb that comes
with java isn't one of those orbs. 8-( I _really_ wish it was.