Exam4Training

What is the minimum number of global elements that must be defined to support all these HTTP Listeners?

Refer to the exhibits.

The two Mule configuration files belong to the same Mule project. Each HTTP Listener is configured with the same host string and the port number, path, and operation values are shown in the display names.

What is the minimum number of global elements that must be defined to support all these HTTP Listeners?
A . 1
B . 2
C . 3
D . 4

Answer: B

Explanation:

In this case three configurations will be required each for port 8000, 6000 and 7000.

There would be three global elements defined for HTTP connections.

Each HTTP connection will have host and port. One example shown below with host as localhost and port 6000

To use an HTTP listener, you need to declare a configuration with a corresponding connection. This declaration establishes the HTTP server that will listen to requests.

Additionally, you can configure a base path that applies to all listeners using the configuration. <http:listener-config name="HTTP_Listener_config" basePath="api/v1"> <http:listener-connection host="0.0.0.0" port="8081" />

</http:listener-config>

https://docs.mulesoft.com/http-connector/1.6/http-listener-ref#http-listener-configuration

Exit mobile version