Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

create() - Add resource adapter to the configuration

Function:

BcAdminRA.create()

A resource adapter is added to the configuration. You must pass the properties of the resource adapter to the MC-CLI in a dictionary.

Parameters:

object_name (String)

Name des BeanConnect resource adapter that is to be added to the configuration.

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

Proxy or proxy cluster to which the resource adapter is to be assigned.

props (kw)

Dictionary with the key-value pairs for the properties that are to be assigned to the resource adapter. You can find the possible values for key in Properties of a resource adapter . The property host must be specified.

Return:

(BcObject of type BcObjectType.RESOURCE_ADAPTER)

The resource adapter added to the configuration.

Exceptions:

BcParameterException, BcObjectException, BcToolException

Note:

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.

Example:

...
import BcAdminRA
import BcAdminProxy
...
proxy_obj=BcAdminProxy.getObject("BCProxy")
creProps ={"host":"xyz","port-inbound":"1234","desc": "created",\
                            "ta-logging": BcDef.TA_LOGGING_NONE}
newRA=BcAdminRA.create("test-RA",proxy_obj,creProps)
...