[omniORB] How to get a Persistent reference

Diego Sánchez-Aparisi dsam@tid.es
Wed Oct 16 09:52:01 2002


This is a multi-part message in MIME format.

------=_NextPart_000_01D9_01C27502.9351EF40
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello Everybody

I have written a simple CORBA application in order to try the Persistent =
reference mechanism implemented in OmniORB4. I have created a POA with =
the PERSISTENT Policy and the USER_ID one (it seems that there are to =
options: using a new POA created from de "RootPOA" one and associating =
with the new one the PERSISTENT Policy; or the second option that =
consists in getting a reference to a POA that has got the PERSISTENT =
Policy by default, whose name I dont remember just now). But when I =
launch the Server I got different IORs in each execution. Therefore the =
client gets an exception in using its old reference after a =
shutdown/restart of the Server. I launch the server without any command =
option, that is, without indicating either the IP and the Port I want to =
use for that server. Can this be the reason of the IOR reference =
changes? What is the command option  I have to use in order to "force" =
the server to execute in certain IP+Port ?

Notice that I am using OmniORB4, so the old options associated with the =
-ORB command doesnt appear to work fine...

Thanks in advance
Diego

------=_NextPart_000_01D9_01C27502.9351EF40
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2716.2200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello Everybody</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have written a simple CORBA =
application in order=20
to try the Persistent reference mechanism implemented in OmniORB4. I =
have=20
created a POA with the PERSISTENT Policy and the USER_ID one (it seems =
that=20
there are to options: using a new POA created from de "RootPOA" one and=20
associating with the new one the PERSISTENT Policy; or the second option =
that=20
consists&nbsp;in getting&nbsp;a reference to a POA that has got the =
PERSISTENT=20
Policy by default, whose name I dont remember just now). But when I =
launch the=20
Server I got different IORs in each execution. Therefore&nbsp;the client =
gets an=20
exception in using its old reference after a shutdown/restart of the =
Server. I=20
launch the server without any command option, that is, without =
indicating either=20
the IP and the Port I want to use for that server. Can this be the =
reason of the=20
IOR reference changes? What is the command option&nbsp; I have to use in =
order=20
to "force" the server to execute in&nbsp;certain IP+Port ?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Notice that I am using OmniORB4, so the =
old options=20
associated with the -ORB command doesnt appear to work =
fine...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Diego</FONT></DIV></BODY></HTML>

------=_NextPart_000_01D9_01C27502.9351EF40--