Interface JMSContext

All Known Implementing Classes:
AbstractJmsContext, JndiContext, SimpleJmsContext

public interface JMSContext
Factory for create JMS objects. Class that implements this interface must have an empty constructor(to create by reflection).
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.jms.Session
    createClientSession(com.epam.fixengine.jms.client.ConnectionImpl connection, boolean transacted)
    Creates the session.
    jakarta.jms.Session
    createClientSession(com.epam.fixengine.jms.client.ConnectionImpl connection, boolean transacted, int acknowledgeMode)
    Creates the session.
    jakarta.jms.Connection
     
    jakarta.jms.Destination
    getConfiguredDestination(String destinationName, jakarta.jms.Session session, MessagingMode messagingMode)
    Getter method to achieve a specified in config of the JMS Destination.
  • Method Details

    • createConnection

      jakarta.jms.Connection createConnection() throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException
    • getConfiguredDestination

      jakarta.jms.Destination getConfiguredDestination(String destinationName, jakarta.jms.Session session, MessagingMode messagingMode) throws jakarta.jms.JMSException
      Getter method to achieve a specified in config of the JMS Destination.
      Parameters:
      destinationName -
      session -
      messagingMode -
      Returns:
      Throws:
      jakarta.jms.JMSException
    • createClientSession

      jakarta.jms.Session createClientSession(com.epam.fixengine.jms.client.ConnectionImpl connection, boolean transacted) throws jakarta.jms.JMSException
      Creates the session.
      Parameters:
      connection - the connection
      Throws:
      jakarta.jms.JMSException
    • createClientSession

      jakarta.jms.Session createClientSession(com.epam.fixengine.jms.client.ConnectionImpl connection, boolean transacted, int acknowledgeMode) throws jakarta.jms.JMSException
      Creates the session.
      Parameters:
      connection - the connection
      transacted - the flag
      acknowledgeMode - the
      Throws:
      jakarta.jms.JMSException