org.jboss.blacktie.jatmibroker.xatmi
Class Service

java.lang.Object
  extended by org.jboss.blacktie.jatmibroker.xatmi.Service
All Implemented Interfaces:
BlacktieService
Direct Known Subclasses:
MDBBlacktieService

public abstract class Service
extends java.lang.Object
implements BlacktieService

All services should extend this class as it provides the core service template method.


Constructor Summary
Service(java.lang.String name)
          The service needs the name of the service so that it can be resolved in the Environment.xml file
 
Method Summary
 void close()
          Clean up resources for this service
protected  void processMessage(org.jboss.blacktie.jatmibroker.core.transport.Message message)
          Entry points should pass control to this method as soon as reasonably possible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.blacktie.jatmibroker.xatmi.BlacktieService
tpservice
 

Constructor Detail

Service

public Service(java.lang.String name)
        throws org.jboss.blacktie.jatmibroker.core.conf.ConfigurationException,
               ConnectionException
The service needs the name of the service so that it can be resolved in the Environment.xml file

Parameters:
name - The name of the service
Throws:
org.jboss.blacktie.jatmibroker.core.conf.ConfigurationException
ConnectionException
Method Detail

close

public void close()
           throws ConnectionException
Clean up resources for this service

Throws:
ConnectionException

processMessage

protected void processMessage(org.jboss.blacktie.jatmibroker.core.transport.Message message)
                       throws ConnectionException
Entry points should pass control to this method as soon as reasonably possible.

Parameters:
message - The message to process
Throws:
ConnectionException - In case communication fails


Copyright © 2009. All Rights Reserved.