Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / CORBA / March 2004

Tip: Looking for answers? Try searching our database.

Building CORBA server with idl

Thread view: 
Dieter Salath? - 05 Mar 2004 08:54 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.