Generating an HTTP server configuration by using the IBM Integration API
Generate a configuration file for either the WebSphere® Application Server plug-in or the Apache mod_proxy module to use for connecting to a web server such as IBM® HTTP Server (IHS).
Before you begin
About this task
Procedure
Call the appropriate static method on the
BrokerProxy class.
- If you are using the WebSphere Application Server plug-in,
use the following method, passing in as parameters a
java.util.Mapmapping ofBrokerProxyobjects to host names and a value of data typelongthat represents a timeout interval in milliseconds:public static String generateWASPlugin(Map <BrokerProxy,String> brokerHostMap, long timeoutInMilliseconds) throws ConfigManagerProxyLoggedException - If you are using the Apache mod_proxy module,
use the following method, passing in as parameters a
java.util.Mapmapping ofBrokerProxyobjects to host names and a value of data typelongthat represents a timeout interval in milliseconds:public static String generateModProxyPlugin(Map <BrokerProxy,String> brokerHostMap, long timeoutInMilliseconds) throws ConfigManagerProxyLoggedException - If you want to use an alternative to the plug-ins provided
by WebSphere Application Server or Apache, you can
use the following static IBM Integration
API method
on the
BrokerProxyclass to retrieve port and URL data for an individual integration node in CSV format.public static String getPortConfigAsCSV() throws ConfigManagerProxyLoggedException
For a sample API program that generates an HTTP server configuration file for multiple integration nodes, see the following article: Load balancing WebSphere Message Broker HTTP traffic.
For more information, see the IBM Integration
API reference documentation (IBM Integration
API).
Note: For details about support provided for configurations between IBM Integration Bus and IBM HTTP Server, see IHS support issues.
What to do next
- For the WebSphere Application Server IHS plug-in, see the documentation on web server plug-ins at WebSphere Application Server documentation
- For the mod_proxy module, see the documentation on the mod_proxy module at Apache HTTP Server documentation