Package jakarta.jms

Annotation Type 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
    Version:
    Jakarta Messaging 2.0
    See Also:
    JMSContext.createContext(int)
    • Optional Element Summary

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

      • 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