Use the IBM Integration
API to
generate the file contents for the mod_proxy module
or the WebSphere Application Server plug-in configuration
files. These files contain port and URL data for multiple brokers
on multiple servers.
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.Map mapping
of BrokerProxy objects to host names and a value
of data type long that 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.Map mapping
of BrokerProxy objects to host names and a value
of data type long that 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 CMP method on the BrokerProxy class
to retrieve port and URL data for an individual broker in CSV format.
public static String getPortConfigAsCSV()
throws ConfigManagerProxyLoggedException
For more information, see the CMP reference documentation at
CMP.
Now that you have generated a configuration file, complete
the relevant product instructions for configuring the web server: