[omniORB] General ORB questions
Heinrich Götzger
goetzger@gmx.net
Mon Jan 6 18:10:12 2003
On Mon, 6 Jan 2003, Kai Schofield wrote:
>Hello Bjorn.
>
>Thank you for your reply but Iīm still a bit confused. Maybe at first I
>should outline what I actually want to achieve using omniORB and how I am
>trying to approach the problem.
>
>My preferred programming language for this project is Java and not C++.
>Therefore I focused on RMI over IIOP. Pure Java RMI seemed to restricting to
>me because it could be that, at some point, I want my application to talk to
>other services (e.g. EJBīs or some kind of WebService developed in whatever
>language).
>As you stated in your reply, the ORB shipped with the JDK is not very
>suitable for commercial, high-performance applications and so I decided to
>try out omniORB.
>
>For this reason I donīt use any of the omniORB libraries directly. I just
>start onmiNames and bind my objects to the naming service using Java and an
>URL like this: iiopname://localhost:2809/MyObject
>This procedure works fine and I can also access the bound objects via my
>Java-Client application.
>(Note that I can use the same server and client applications when I start
>the Java ORB instead of omniORB. Except for the execution performance there
>is no difference in the behaviour of the two ORBs)
>
>My main problem now is that, frankly, I donīt really know what exactly I am
>doing and why it is working.
>I read the OMG CORBA specification but this didnīt really help me. What
>exactly happens when I bind an object in the naming service? Is my
>Java-Server application which binds the objects the ORB?
>
>I hope my questions donīt seem to dumb to you but this subject matter starts
>making me crazy...
>
>Best regards,
>
>Kai
You could try one or both of following books to get an entrance and an
idea about all this stuff:
1. Client/Server Programming with JAVA and CORBA
from Orfalli and Harkey
(sligtly outdated)
2. Java Programming with CORBA/Third Edition from Gerald Brose et al.
fairly new.
Gerld Brose is the maintainer and author of jacorb, a free Java ORB
implementation:
http://www.jacorb.org
Your point is, that if you want to run a server implemented in Java, you
need an ORB which is capable of dealing with Java servants. And omniORB
certainly is not. This is because your servant code and parts of
the ORB code is running in the same addressspace(VM).
Nevertheless you may use omniNames as a NameService for your Java
servants.
cheers and good luck!
Heinrich