Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

getObject() - Read resource adapter object from the configuration

Function:

BcAdminRA.getObject()

Reads the resource adapter with the specified name from the configuration

Parameters:

object_name (String)

Name of the BeanConnect resource adapter that is to be read.

proxy_object
(BcObject of type BcObjectType.PROXY / BcObjectType.PROXY_CLUSTER)

Proxy or proxy cluster to which the resource adapter is assigned.
The specification of a proxy_object of type BcObjectType.PROXY is only permitted if the proxy does not belong to a proxy cluster. In the case of proxies belonging to a cluster, the proxy cluster object must be specified as a parameter here.

Return:

(BcObject of type BcObjectType.RESOURCE_ADAPTER).

The read resource adapter or None if no resource adapter with a corresponding name exists.

Exceptions:

BcObjectException, BcParameterException, BcToolException

Example:

...
import BcAdminRA
import BcAdminProxy
...
proxy_obj=BcAdminProxy.getObject("BCProxy")
ra_obj=BcAdminRA.getObject("test-RA".proxy_obj)
...