2 Connect the Media Flow Engines

A typical deployment includes multiple MFEs. After installing and starting your MFEs, you need to connect them to the Converged Application Server.

For instructions on installing the MFE, see the "Installing Infrastructure Components" chapter in the Installation Guide.

To connect an MFE, you can use the Remote Console, the REST APIs, or WLST.

Set Up the MFE Connection with the Remote Console

  1. From the Edit Tree in the Remote Console, navigate to Custom Resources, and then IntelligentMediaConnector, and then Media Connector Configurations, and then Media Flow Engines.
  2. Click New.
  3. Enter a Server Name.
  4. Enter a Management IP.
  5. Set the Management TLS Port to 8443.
  6. Set the Management Non-TLS Port to 8080.
  7. If you are using TLS, enable the SSL/TLS Enabled slider.
  8. Click Create.

Set Up MFE Connection with REST API

  1. Use the following command, with appropriate modifications, to create the MFE connection for Converged Application Server.
    curl -v -X POST \
        --user <username>:<password> \
        -H X-Requested-By:MyClient \
        -H Accept:application/json \
        -H Content-Type:application/json \
        -d '{
      "serverName": "<mfe_name>",
      "managementIP": "<mfe_ip>",
      "managementPort": 8443,
      "secondaryPort": 8080,
      "sslEnabled": true
    }' \
        "http://<adminserver_host>:<port>/management/weblogic/latest/edit/customResources/IntelligentMediaConnector/customResource/mediaFlowEngines/"

    Do not put quotation marks around the value of the sslEnabled parameter.

Set Up MFE Connection with WLST Commands

  1. Log in to the Admin Node and navigate to the <Domain_Home>/bin directory.
  2. Load the domain environmental variables.
    . ./setDomainEnv.sh
  3. Save the following script to your system and modify the parameters to be appropriate to your environment.
    try:
        connect("<username>", "<password>", "t3://<adminserver_ip>:<port>")
        edit()
        startEdit()
        cd('/CustomResources/IntelligentMediaConnector')
        ms = cmo.getResource()
        name = '<name_of_mfe>' 
        mfe = ms.lookupMediaFlowEngine(name)
        if mfe is None:
            print 'Creating MediaFlowEngine:', name
            mfe = ms.createMediaFlowEngine(name)
            mfe.setManagementIP('<mfe_ip>')
            mfe.setManagementPort(8443)
            mfe.setSecondaryPort(8080)
            mfe.setSslEnabled(<true_or_false>)
        else:
            print 'MediaFlowEngine already exists:', name
        save()
        activate(block="true")
        print 'res:1'
    except Exception, e:
        print e
        dumpStack()
        print 'res:0'
    print 'End of script...'
    disconnect('true')
    exit('true')
  4. Run the WLST script.
    java weblogic.WLST /path/to/file.py