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 inbound message endpoint to the configuration

&pagelevel(5)&pagelevel

Function:

BcAdminInboundMsgEndpoint.create()

An inbound message endpoint, whose properties you must pass to the MC-CLI in a dictionary, is added to the configuration.

Parameters:

object_name (String)

Name of the BeanConnect inbound message endpoint

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

Proxy or proxy cluster to which the inbound message endpoint is to be assigned. The specification of a proxy_object of type BcObjectType.PROXY is not permitted if the proxy belongs to a proxy cluster. In this case, the proxy cluster object must be specified as a parameter here.

props

Dictionary with the key-value pairs for the properties that are to be assigned to the inbound message endpoint. You can find the possible values for key in Properties of an inbound message endpoint.

Return:

(BcObject of type BcObjectType.INBOUND_MSG_ENDPOINT)

The inbound message endpoint added to the configuration.

Exceptions:

BcParameterException, BcObjectException, BcToolException

Example:

...
import BcAdminInboundMsgEndpoint
import BcAdminProxy
...
proxy_obj=BcAdminProxy.getObject("BCProxy")
creProps={"desc":"my msg endpoint",\
"dial-type":BcDef.TYPE_DIALOG,\
"resource-adapter":"myRA","service-names":"TESTIS1, TESTIS2"}
me_obj=BcAdminInboundMsgEndpoint.create("myMEP", proxy_obj,\ 
props=creProps)
...