On 17 Sep, 12:54, ap...@[EMAIL PROTECTED]
wrote:
> I am converting a C++ CORBA server to java using OrbixWeb. In the C++
> code there is this:
>
> orb->setServerName( serverName);
> boa->impl_is_ready( serverName);
>
> This looks wrong to me but it has been in there since day 1 and the C+
> + server does auto-launch correctly. I thought that this would make it
> a persisent server. Yet this is supposed to be a server that is auto-
> launched. I am puzzled. This terminology is getting me confused. I
> thought that the phrase "persistent server" means one that is launched
> manually. I want my server to be auto-launched. In my java code I say:
>
> orb.setServerName(serverName);
> orb.impl_is_ready(serverName, 0);
>
> This follows the pattern of the C++ code. This server does auto-launch
> but it gives an error on impl_is_ready saying server is already
> registered. If I take those calls out it still auto-launches but then
> halts silently in the bit where it exports its object reference to the
> Naming Service.
>
> Can anyone shed any light please?
>
> Andrew Marlow
Just for the record, with alot of help from Ciaran McHale (thanks
Ciaran!) I found out that the auto-launch was failing due to my
accidental use of IT_IIOP_USE_LOCATOR=false. This caused the IOR to
contain a reference to the transient port number of my server rather
than the port number of the Orbix daemon.
-Andrew M.