Open topic with navigation

TIBCO BusinessEvents® Enterprise Edition 6.3.1

# Catalog Function Implementation for Custom Channel

Your channel code must implement certain methods to provide proper semantics to the `Event` catalog functions.

## Event.send

Override the `Destination.send` method and provide an implementation to send to your destination endpoint. This method is invoked when the BusinessEvents application code invokes `Event.send`.

## Event.requestEvent

Override the `Destination.requestEvent` method and provide an implementation to send synchronously a message request to your destination endpoint. The implementation should return a response event to the caller. If your messaging system does not support the request-reply semantic, you can choose to generate an unsupported operation exception.

## Event.routeTo

Override `Destination.send` and provide an implementation to route to your specified destination endpoint.

## EventContext

An `EventContext` object holds the context of the incoming event. Your `Destination.getEventContext` method must return an implementation of your `EventContext`. In your event context, you can keep any state, such as, the inbound message received in your listener callback; a corresponding listener/session handles. Typically you would keep as much state in this object as required for providing proper behavior for the `EventContext.reply` and `EventContext.acknowledge` methods.

## Event.replyTo

This catalog function maps to the `EventContext.reply` method. Override the `EventContext.reply` method as applicable for your project for a reply event semantics.

## Event.consumeEvent

This catalog function maps to your `EventContext.acknowledge` method. For some messaging systems, you might need to indicate to your message broker to acknowledge delivery of the inbound message, so that the message is not redelivered. Override the `EventContext.acknowledge` method as applicable for your project.

Did you find this helpful?

YesNo
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO BusinessEvents® Enterprise Edition

Copyright © 2004-2024. Cloud Software Group, Inc. All Rights Reserved.