[omniORB] Newbie question

Sankar S Salvady sankarasubramanian.s at gmail.com
Wed Oct 13 18:35:15 BST 2010


Thank you Tom, that helps. I ll sure check out that book.

Yes, I will be doing the Java part on the client for testing purposes. I had
decided on "idlj" for java . Is JacORB  better for any specific reason ?

Thanks
Sankar

On Wed, Oct 13, 2010 at 5:21 PM, Thomas Lockhart <lockhart at fourpalms.org>wrote:

>  > The client would be running JAVA, and the server would be in C++. I
> > have decided to use OmniORB for the C++ part, and I am following the
> > User's guide in
> > http://omniorb.sourceforge.net/omni40/omniORB/index.html , for
> > guidance:
>
> So you are implementing both the client-side and server-side CORBA code?
> You will want to use JacORB for the Java stuff.
>
>   I have a couple of questions regarding this file:
> 1.  Instead of saying *void login(in string name, in string value, out
> long session_id), *if I say,
> *          long** login(in string name, in string value), *is it the same
> ? If not, could someone help me understand the difference ?
>
>
> It has the same effect of returning a value from the server. The
> implementation details will be different depending on the language. For
> returning only one atomic value then my inclination would be to use the
> second form (the function returning a value). But if you end up returning
> more than one value, then you will use your original form specifying an
> "out" parameter.
>
>
>
>  2. According to the guide above, the .h file generated will have a class
> like class POA_xxxxxxxxx ,and that will be the skeleton class. But in my
> generated file, I do not see  a class like that.
> The command I used:
>             *omniidl -bcxx -Wbh=.h dummychannel.id*
>
>
> You do have "POA_ChannelAttributesDef" in your generated file. Apparently
> omniORB uses some #define parameters (for portability?) so it does not say
> explicitly "namespace POA_ChannelAttributesDef".
>
> But here is a suggestion: believe that the stubs and skeletons do what you
> need and just write the code you need to implement for the server. You will
> find that it works :)
>
> btw, if you do not have the book "Advanced CORBA Programming with C++" by
> Henning and Vinoski you should get it.
>
> hth
>
>                                - Tom
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20101013/1f01e9c5/attachment.htm


More information about the omniORB-list mailing list