Importance of the context root when you configure the HTTP proxy servlet
You must assign a context root to the HTTP proxy servlet when you deploy the HTTP proxy servlet to a servlet container. The choice of context root determines the message flow nodes or integration service URLs with which the HTTP proxy servlet can communicate.
Web addresses, or Universal Resource Locators (URLs), have an important role when HTTP or SSL (HTTPS) protocols are used.
The HTTP proxy servlet passes the requests from the servlet container to the integration node and vice versa.
Each HTTP or SOAP input node expects to receive requests from a specific web address (or web addresses when wildcard characters are used). The servlet container also uses the web address to locate the servlets that are going to process the HTTP or HTTPS requests that the servlet container receives on behalf of the integration node.
schema://host_name:port/url_path
where:- schema
- Specifies the protocol (HTTP or HTTPS).
- host_name
- Specifies the host name or IP address of the server where the servlet container is running.
- port
- Specifies the port number on which the servlet container is listening.
- url_path
- Specifies the URL path; a series of tokens (separated by slashes
/
) that identify both the HTTP proxy servlet, and the HTTP or SOAP input nodes.
context_root/node_url_path
where: - context_root
- Specifies the part of the URL path (context root) that is allocated to the proxy servlet by the servlet container when the proxy servlet is deployed.
- node_url_path
- Specifies the part of the URL path that makes the web address unique to a specific HTTP or SOAP input node.
The entire URL path must be configured in the properties of the HTTPInput or SOAPInput node. For more information, see HTTPInput node and SOAPInput node.
- Node1:
http://myhost.com/app1
- Node2:
http://myhost.com/public/app2
- Node3:
http://myhost.com/public/app3
- Node4:
http://myhost.com/private/app4
/public
, then you can communicate with Node2 and Node3 via the HTTP
proxy servlet.If you set the context root for your HTTP proxy servlet to /private
, then you
can communicate with Node4 via the HTTP proxy servlet.
If you set the context root for your HTTP proxy servlet to /
, then you can
communicate with all of the HTTPInput nodes via
the HTTP proxy servlet.