org.jboss.blacktie.jatmibroker.xatmi.server
Class BlackTieServer

java.lang.Object
  extended by org.jboss.blacktie.jatmibroker.xatmi.server.BlackTieServer

public class BlackTieServer
extends Object

Create a server instance reading the configuration for the server defined by the name.


Constructor Summary
BlackTieServer(String serverName)
          Initialize the server
 
Method Summary
 void shutdown()
          Shutdown the server
 void tpadvertise(String serviceName, String serviceClassName)
          Advertise a blacktie service with the specified name
 void tpunadvertise(String serviceName)
          Unadvertise the service by name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlackTieServer

public BlackTieServer(String serverName)
               throws org.jboss.blacktie.jatmibroker.core.conf.ConfigurationException,
                      ConnectionException
Initialize the server

Parameters:
serverName - The name of the server
Throws:
org.jboss.blacktie.jatmibroker.core.conf.ConfigurationException - If the server does not exist
ConnectionException - If the server cannot connect to the infrastructure configured
Method Detail

tpadvertise

public void tpadvertise(String serviceName,
                        String serviceClassName)
                 throws ConnectionException
Advertise a blacktie service with the specified name

Parameters:
serviceName - The name of the service
Throws:
ConnectionException - If the service cannot be advertised

tpunadvertise

public void tpunadvertise(String serviceName)
                   throws ConnectionException
Unadvertise the service by name.

Parameters:
serviceName - The name of the service to unadverise.
Throws:
ConnectionException - If the service cannot be unadvertised.

shutdown

public void shutdown()
              throws ConnectionException
Shutdown the server

Throws:
ConnectionException - If one of the services cannot disconnect


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.