Broker 10.5 | webMethods Broker Documentation | webMethods Broker Administration Java API Programmer’s Guide | Managing Brokers and Broker Servers | Understanding Broker Server Clients | Creating a BrokerServerClient
Creating a BrokerServerClient
Creating a BrokerServerClient will establish a connection between your application and a Broker Server process on a particular host. Your application must specify the name of the host when creating the BrokerServerClient object.
The following example illustrates how to create a BrokerServerClient:
import COM.activesw.api.client.*;
class myMonitor
static String broker_host = "localhost";
. . .
public static void main(String args[])
BrokerServerClient c;
. . .
/* Create a Broker Server client */
try {
c = new BrokerServerClient(broker_host, null);
} catch (BrokerException ex) {
System.out.println("Error on create Broker Server client\n"+ex);
. . .