<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<font face="'Times New Roman'"><span style="white-space: pre;">>
The client would be running JAVA, and the server would be in
C++. I<br>
> have decided to use OmniORB for the C++ part, and I am
following the<br>
> User's guide in<br>
> <a class="moz-txt-link-freetext" href="http://omniorb.sourceforge.net/omni40/omniORB/index.html">http://omniorb.sourceforge.net/omni40/omniORB/index.html</a> ,
for<br>
> guidance:<br>
</span><br>
So you are implementing both the client-side and server-side CORBA
code? You will want to use JacORB for the Java stuff.<br>
<br>
</font>
<blockquote
cite="mid:AANLkTinHBP7pViiWr-yPBSHk0-dyjHJ0KLhiBnCgdK+t@mail.gmail.com"
type="cite">
<div><font face="'Times New Roman'"><span style="font-size:
medium;">
<div>I have a couple of questions regarding this file:</div>
<div>1. Instead of saying <span style="font-family: arial;
font-size: small;"><i>void login(in string name, in
string value, out long session_id), </i>if I say, </span></div>
<div><span style="font-family: arial; font-size: small;"><i>
long</i></span><span style="font-family: arial;
font-size: small;"><i> login(in string name, in string
value), </i></span><span style="font-family: arial;
font-size: small;">is it the same ? If not, could
someone help me understand the difference ? <br>
</span></div>
</span></font></div>
</blockquote>
<br>
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.<br>
<br>
<blockquote
cite="mid:AANLkTinHBP7pViiWr-yPBSHk0-dyjHJ0KLhiBnCgdK+t@mail.gmail.com"
type="cite">
<div><font face="'Times New Roman'"><span style="font-size:
medium;">
<div><span style="font-family: arial; font-size: small;"><br>
</span></div>
<div><span style="font-family: arial; font-size: small;">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.</span></div>
<div><span style="font-family: arial; font-size: small;">The
command I used: </span></div>
<div><span style="font-family: arial; font-size: small;">
<i>omniidl -bcxx -Wbh=.h <a
moz-do-not-send="true" href="http://dummychannel.id">dummychannel.id</a></i></span></div>
</span></font><br>
</div>
</blockquote>
<font face="'Times New Roman'"><br>
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".<br>
<br>
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 :)<br>
<br>
btw, if you do not have the book "Advanced CORBA Programming with
C++" by Henning and Vinoski you should get it.<br>
<br>
hth<br>
<br>
- Tom<br>
<br>
</font>
</body>
</html>