Sonic ESB API

com.sonicsw.xq
Interface XQService

All Known Subinterfaces:
XQServiceEx
All Known Implementing Classes:
AbstractSFCServiceImpl, AbstractXQService, CBRService, TransformationService

public interface XQService

XQService provides the basic interface between the SonicXQ framework and a service. It must be implemented by all services that are deployed in SonicXQ.


Method Summary
 void destroy()
          Called by the SonicXQ framework when the service is no longer needed.
 void init(XQInitContext initial)
          Called by the SonicXQ framework during initialization of this service.
 void service(XQServiceContext context)
          Called by the SonicXQ framework to invoke the service when a message is sent to the service.
 

Method Detail

init

void init(XQInitContext initial)
          throws XQServiceException
Called by the SonicXQ framework during initialization of this service. Services should perform any one-time initialization here.

Parameters:
initial - an XQInitContext from which the service can obtain any necessary initialization information
Throws:
XQServiceException - if an error is encountered during initialization

service

void service(XQServiceContext context)
             throws XQServiceException
Called by the SonicXQ framework to invoke the service when a message is sent to the service.

Parameters:
context - an XQServiceContext from which the service can obtain the operating context (including the sent message)
Throws:
XQServiceException - if an error is encountered during message processing

destroy

void destroy()
Called by the SonicXQ framework when the service is no longer needed. Services should perform any clean-up tasks here.


Sonic ESB API

Copyright © 2001-2013 Aurea, Inc. All Rights Reserved.
HTML formatted on 29-April-2013.