This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Home > Class Reference > ENSLIB namespace > EnsLib.PubSub.RoutingOperation


class EnsLib.PubSub.RoutingOperation extends Ens.BusinessOperation

Base class for message routing operations

Method Inventory


parameter INVOCATION = InProc;
Inherited description: 2 modes: Queue, InProc


method OnRoutingRequest(pRequest As EnsLib.PubSub.Request, Output pResponse As EnsLib.PubSub.Response) as %Status
This method is implemented by a subclass to process the actual message routing request.
The code to return a message looks like this:
  	// construct routing response
  	Set pResponse = ##class(EnsLib.PubSub.Response).%New()
  	Set pTarget = ##class(EnsLib.PubSub.Target).%New(pResponse)
  	Set pTarget.Target = "Operation1"
  	Do pResponse.TargetList.Insert(pTarget)
method RoutingHandler(pRequest As EnsLib.PubSub.Request, Output pResponse As EnsLib.PubSub.Response) as %Status
Process an incoming RoutingRequest

Inherited Members

Inherited Properties

Inherited Methods


FeedbackOpens in a new window