Package jakarta.jms

Annotation Interface JMSSessionMode


@Retention(RUNTIME) @Target({METHOD,FIELD,PARAMETER,TYPE}) public @interface JMSSessionMode
This annotation may be used to specify the session mode to be used when injecting a jakarta.jms.JMSContext object. The meaning and possible values of session mode are the same as for the ConnectionFactory method createContext(int sessionMode).
Since:
JMS 2.0
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Specifies the session mode used when injecting a jakarta.jms.JMSContext object.
  • Element Details

    • value

      int value
      Specifies the session mode used when injecting a jakarta.jms.JMSContext object.
      Returns:
      The session mode used when injecting a jakarta.jms.JMSContext object.
      Default:
      1