WebSphere Message Broker, Version 8.0.0.7
Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS
See information about the latest product version
See information about the latest product version
Generating an HTTP server configuration by using the Message Broker 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).
Read the concept topic, Using external web servers with WebSphere Message Broker.
Use the Message Broker 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
Now that you have generated a configuration file, complete
the relevant product instructions for configuring the web server:
- 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