Sonic ESB API

com.sonicsw.xq.service.cbr
Class CBRService

java.lang.Object
  extended by com.sonicsw.xq.service.cbr.CBRService
All Implemented Interfaces:
XQService

public class CBRService
extends java.lang.Object
implements XQService


Constructor Summary
CBRService()
          Default contructor for the CBRService.
 
Method Summary
 void destroy()
          Destroys the CBRService.
 void init(XQInitContext initialContext)
          Initializes the CBRService with the init params from its configuration.
 void service(XQServiceContext ctx)
          Provides the Routing service.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CBRService

public CBRService()
Default contructor for the CBRService.

Method Detail

init

public void init(XQInitContext initialContext)
          throws XQServiceException
Initializes the CBRService with the init params from its configuration. Creates an object pool of "CBR" objects and sets the init information, with the pool, so the pool can correctly initialize every new "CBR" object that it creates.

Specified by:
init in interface XQService
Parameters:
initialContext - The init time parameters.
Throws:
XQServiceException - if an error is encountered during initialization

destroy

public void destroy()
Destroys the CBRService. Relases resources and sets all references to null.

Specified by:
destroy in interface XQService

service

public void service(XQServiceContext ctx)
             throws XQServiceException
Provides the Routing service. This method gets called every time a message received is received at the entry-endpoint configured for this service.

Specified by:
service in interface XQService
Parameters:
ctx - The ServiceContext object which contains the incoming message within an envelope in its INBOX. If this method is successful, the message will have a new set of Routing addresses on its envelope and it would be placed in the OUTBOX of the ServiceContext. In case of a failure, the service throws an Exception and the message gets sent to the RejectedMessageEndpoint, configured for this service.
Throws:
XQServiceException - In the event of some failure.

Sonic ESB API

Copyright © 2001-2012 Progress Software Corporation. All Rights Reserved.
HTML formatted on 13-Mar-2012.