Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

getGatewayPorts() - Read openUTM-LU62 Gateway listener ports of the EIS partner object

Function:

BcAdminEisPartner.getGatewayPorts()

Reads the openUTM-LU62 Gateway listener port of the EIS partner or the list of ports for all the proxies in the cluster if the EIS partner is defined in the cluster.

Parameters:

bcobject (BcObject of type BcObjectType.EIS_PARTNER)

EIS partner whose openUTM-LU62 Gateway listener ports are to be read.

Return:

Dictionary with one element (or multiple elements in the case of a proxy cluster), where key is the name of the proxy and value is the associated openUTM-LU62 Gateway listener port.

Exceptions:

BcObjectException, BcParameterException, BcToolException

Note:

  • If the EIS partner is not of type cics, a BcObjectException is thrown.

  • The port numbers can also be read via the property cs.lu62gateway-port.

Example:

...
import BcAdminEisPartner import BcAdminProxy
...
proxy_name="BCProxy" 
proxy_obj=BcAdminProxy.getObject(proxy_name) 
eis_obj=BcAdminEisPartner.getObject("testEIS",proxy_obj) 
port_dicn=BcAdminEisPartner.getGatewayPorts(eis_obj) 
gw_port=port_dicn[proxy_name]
...