The MessageBroker External Object is under the GeneXusMessagingMessageBroker module and allows you to send and process messages of a Message Broker using the Message Broker API.
Send a message to a message broker.
Return value boolean
Parameters Message:Message, options:Varchar, ErrorMessages:GeneXus.Common.Messages
In Azure Service Bus, the options can be left empty.
Send messages to the message broker.
Return value boolean
Parameters Message:Message (Collection), options:Varchar, ErrorMessages:GeneXus.Common.Messages
In Azure Service Bus, the options can be left empty.
Retrieve messages from a message broker using options.
Return value Message:Message (Collection)
Parameters options:Varchar, ErrorMessages:GeneXus.Common.Messages, success: Boolean
Depending on the Message Broker provider used, the options parameter should be a JSON string formatted using the SDT defined for that purpose in the provider's module.
In Azure Service Bus, the options parameter has to be a JSON string of ReceiveMessageOptions SDT.
Retrieve a message from a message broker using options.
Return value Message:Message
Parameters options:Varchar, ErrorMessages:GeneXus.Common.Messages, success: Boolean
Depending on the Message Broker provider used, the options parameter should be a JSON string formatted using the SDT defined for that purpose in the provider's module.
In Azure Service Bus, the options parameter has to be a JSON string of ReceiveMessageOptions SDT.
Consume / settle a message from a message broker using options.
Return value success:Boolean
Parameters Message:Message, options:Varchar, ErrorMessages:GeneXus.Common.Messages
Depending on the Message Broker provider used, the options parameter should be a JSON string formatted using the SDT defined for that purpose in the provider's module.
In Azure Service Bus, the options parameter has to be a JSON string of ConsumeMessageOptions SDT
Schedules a message to appear on Message Broker at a later time.
Return value handleId:Numeric (18)
Parameters Message:Message, options:Varchar, ErrorMessages:GeneXus.Common.Messages
Depending on the Message Broker provider used, the options parameter should be a JSON string formatted using the SDT defined for that purpose in the provider's module.
In Azure Service Bus, the options parameter has to be a JSON string of ScheduleMessageOptions SDT
Cancels a message that was scheduled.
Return value handleId:Numeric (18)
Parameters Message:Message
In Azure Service Bus, the handleId is the SequenceNumber of the message. See here for more information.
Dispose all the resources.
This feature is available since GeneXus 18 upgrade 1.