Page 1 of 1

get active library using proxy instance

Posted: Mon Jun 25, 2018 6:15 am
by DavidBal
Hi,

we installed three different instances on our ibm i.
- Port 80, Port 81 and Port 90 as a Proxy
- Port90 switches the user to 80 or 81

In Genie we can detect the active instance with a call:
CALL PGM(PROFOUNDUI/PUI0002300) PARM(&GENIE &GENIELIB +
&GENIESKIN &DOCROOT &USERAGENT)

In the variable &genielib we get the correct library of the active instance.

We created an environment where we only use Rich DSPF's. So we decided to use sessions.
Also in sessions we want to use the proxy instance.
Is there a way to detect the correct library?

Many thanks,

David

Re: get active library using proxy instance

Posted: Mon Jun 25, 2018 11:42 am
by Scott Klement
What do you mean by "sessions"? Do you mean you're starting a Rich Display session rather than a Genie/5250 session?

In a Rich Display session, the product library is automatically added to your library list. So, if your need is to get it in order to add it to the library list, it is not necessary, since it's already there.

If you have a different need, please explain.

Re: get active library using proxy instance

Posted: Tue Jun 26, 2018 4:45 am
by DavidBal
We did not test it without adding a library in our start clle.
The proxy work fine and adds the correct librabry automatically in a authenticated session.

Have many thanks for your fast reply.