コード例 #1
0
  public StompSession getSession(String txID) throws ActiveMQStompException {
    StompSession session = null;
    try {
      if (txID == null) {
        session = manager.getSession(this);
      } else {
        session = manager.getTransactedSession(this, txID);
      }
    } catch (Exception e) {
      throw BUNDLE.errorGetSession(e).setHandler(frameHandler);
    }

    return session;
  }