Interface JmsSenderMapperContext


  • public interface JmsSenderMapperContext
    Context object allowing a mapper to get this sender's Session object for constructing JMS Messages and helper methods for destination handling etc.

    Threading: not thread-safe, intended for single-threaded use.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getConnectionId()  
      java.lang.String getSenderId()  
      javax.jms.Session getSession()  
      javax.jms.Destination stringToDestination​(java.lang.String destinationString)
      Converts the specified Apama-specific string representation of a queue or topic into a JMS Destination object, perhaps performing a JNDI lookup if required.
    • Method Detail

      • getSession

        javax.jms.Session getSession()
      • getConnectionId

        java.lang.String getConnectionId()
      • getSenderId

        java.lang.String getSenderId()
      • stringToDestination

        javax.jms.Destination stringToDestination​(java.lang.String destinationString)
                                           throws java.lang.Exception
        Converts the specified Apama-specific string representation of a queue or topic into a JMS Destination object, perhaps performing a JNDI lookup if required.
        Parameters:
        destinationString - The Apama destination string, e.g. "queue:myqueuename", "jndi:myjndilookupname", etc.
        Returns:
        Never null.
        Throws:
        java.lang.IllegalArgumentException - If the destination string is invalid
        java.lang.Exception - If the lookup could not be performed for some reason (e.g. JNDI error). This exception message will include the destination string that caused the exception.