[Glass] Error trying to connect to gemstone from topaz (using newly created stone)

Mariano Martinez Peck marianopeck at gmail.com
Fri Jan 10 05:35:54 PST 2014


On Thu, Jan 9, 2014 at 7:01 PM, Martin McClure <
martin.mcclure at gemtalksystems.com> wrote:

> On 01/09/2014 01:37 PM, Mariano Martinez Peck wrote:
>
>>
>> In my case, I have (I will actually) multiple stones, each running under
>> its own OS user. What should I do with netldi?
>>
>
> If you want the gems to also run under the same OS user as the stone
> (which you probably do)


Yes, I do want that!!!


> then one way is to run a netldi per stone, giving each its own port. The
> other option is to run one netldi as root, but then you have to give the OS
> user and that OS user's password every time you want to log in.
>

OK. I will go with the one netldi per stone.


>
> For an RPC connection (from GemTools, for instance) you need the netldi.
> If you're running a web service using topaz, you can launch topaz with the
> -l option and it will *be* the gem, and will run as the OS user who
> launched topaz.
>

Yes, and as far as I can see, the same happens with startSeaside30_Adaptor,
which I want to use. I does:

cat << EOF | nohup $GEMSTONE/bin/topaz -l -e $4 2>&1 >>
$GEMSTONE_LOGDIR/${1}_server-${2}.log &

So...... to conclude...if I want both, the gems and the stone to be run
with the same OS user (not root), and each pair of stone/gems having a
separate OS user, then having a netldi per stone is the way to go.

Just a quick last question. Is there a way to start netldi with the port he
wants but giving it a name and then referencing to it by name?  I tried
starting like this:

$GEMSTONE/bin/startnetldi -g -a $USER -n -l $GEMSTONE_LOGDIR/gs64ldi.log
netldiXXX

but then...no matter what I put in "set gemnetid" of my .topazini  I cannot
connect to it. The only way is by giving it the port:

set gemnetid !tcp at localhost#netldi:40371#task!gemnetobject

I would like netldi to pick the port automatically and be able to connect
by name (from topaz and gemtools). Is that possible?

Thanks in advance!



-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20140110/79490a48/attachment.html>


More information about the Glass mailing list