Class PubSubEntryPoint

java.lang.Object
org.chenile.pubsub.entry.PubSubEntryPoint

public class PubSubEntryPoint extends Object
  • Field Details

  • Constructor Details

    • PubSubEntryPoint

      public PubSubEntryPoint()
  • Method Details

    • process

      public void process(String topic, String messageContent, Map<String,Object> headers) throws Exception
      The entry point for MQ-TT. It puts the message into the system and extracts the response which is logged. We support asynchronous messages at this point in time.
      Parameters:
      topic - the topic where the message was received
      Throws:
      Exception - if there is a problem in processing the message
    • populateHeaders

      private void populateHeaders(Map<String,Object> headers, ChenileExchange exchange)
    • makeExchange

      private ChenileExchange makeExchange(String topic)
      topic will be in the format /some/stuff/serviceName/operationName extract the service name and operation name from the topic
      Parameters:
      topic - the topic that received this message. Used to compute service and op name
      Returns:
      the exchange