Class AufJmsContext

java.lang.Object
me.ehp246.aufjms.api.jms.AufJmsContext

public final class AufJmsContext
extends java.lang.Object
Since:
1.0
Author:
Lei Yang
  • Method Summary

    Modifier and Type Method Description
    static javax.jms.Session clearSession()
    Remove the session from the thread if one is present.
    static javax.jms.Session getSession()  
    static void set​(javax.jms.Session session)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • set

      public static void set​(javax.jms.Session session)
    • getSession

      public static javax.jms.Session getSession()
    • clearSession

      public static javax.jms.Session clearSession()
      Remove the session from the thread if one is present.
      Returns:
      session that is removed. Could be null.