Tabnine Logo
Broker.addSession
Code IndexAdd Tabnine to your IDE (free)

How to use
addSession
method
in
org.apache.activemq.broker.Broker

Best Java code snippets using org.apache.activemq.broker.Broker.addSession (Showing top 16 results out of 315)

origin: apache/activemq

@Override
public void addSession(ConnectionContext context, SessionInfo info) throws Exception {
  next.addSession(context, info);
  Broker brokers[] = getListeners();
  for (int i = 0; i < brokers.length; i++) {
    brokers[i].addSession(context, info);
  }
}
origin: apache/activemq

@Override
public void addSession(ConnectionContext context, SessionInfo info) throws Exception {
  getNext().addSession(context, info);
}
origin: apache/activemq

@Override
public Response processAddSession(SessionInfo info) throws Exception {
  ConnectionId connectionId = info.getSessionId().getParentId();
  TransportConnectionState cs = lookupConnectionState(connectionId);
  // Avoid replaying dup commands
  if (cs != null && !cs.getSessionIds().contains(info.getSessionId())) {
    broker.addSession(cs.getContext(), info);
    try {
      cs.addSession(info);
    } catch (IllegalStateException e) {
      LOG.warn("Failed to add session: {}", info.getSessionId(), e);
      broker.removeSession(cs.getContext(), info);
    }
  }
  return null;
}
origin: pierre/meteo

public void addSession(ConnectionContext context, SessionInfo info) throws Exception {
  next.addSession(context, info);
}
origin: org.apache.activemq/activemq-broker

@Override
public void addSession(ConnectionContext context, SessionInfo info) throws Exception {
  next.addSession(context, info);
  Broker brokers[] = getListeners();
  for (int i = 0; i < brokers.length; i++) {
    brokers[i].addSession(context, info);
  }
}
origin: pierre/meteo

@Override
public void addSession(ConnectionContext context, SessionInfo info) throws Exception {
  next.addSession(context, info);
  Broker brokers[] = getListeners();
  for (int i = 0; i < brokers.length; i++) {
    brokers[i].addSession(context, info);
  }
}
origin: org.apache.activemq/activemq-all

@Override
public void addSession(ConnectionContext context, SessionInfo info) throws Exception {
  next.addSession(context, info);
  Broker brokers[] = getListeners();
  for (int i = 0; i < brokers.length; i++) {
    brokers[i].addSession(context, info);
  }
}
origin: org.apache.activemq/activemq-osgi

@Override
public void addSession(ConnectionContext context, SessionInfo info) throws Exception {
  next.addSession(context, info);
  Broker brokers[] = getListeners();
  for (int i = 0; i < brokers.length; i++) {
    brokers[i].addSession(context, info);
  }
}
origin: org.apache.activemq/activemq-all

@Override
public void addSession(ConnectionContext context, SessionInfo info) throws Exception {
  getNext().addSession(context, info);
}
origin: org.apache.activemq/activemq-broker

@Override
public void addSession(ConnectionContext context, SessionInfo info) throws Exception {
  getNext().addSession(context, info);
}
origin: org.apache.activemq/activemq-osgi

@Override
public void addSession(ConnectionContext context, SessionInfo info) throws Exception {
  getNext().addSession(context, info);
}
origin: pierre/meteo

public void addSession(ConnectionContext context, SessionInfo info) throws Exception {
  getNext().addSession(context, info);
}
origin: pierre/meteo

public Response processAddSession(SessionInfo info) throws Exception {
  ConnectionId connectionId = info.getSessionId().getParentId();
  TransportConnectionState cs = lookupConnectionState(connectionId);
  // Avoid replaying dup commands
  if (cs != null && !cs.getSessionIds().contains(info.getSessionId())) {
    broker.addSession(cs.getContext(), info);
    try {
      cs.addSession(info);
    } catch (IllegalStateException e) {
      e.printStackTrace();
      broker.removeSession(cs.getContext(), info);
    }
  }
  return null;
}
origin: org.apache.activemq/activemq-all

@Override
public Response processAddSession(SessionInfo info) throws Exception {
  ConnectionId connectionId = info.getSessionId().getParentId();
  TransportConnectionState cs = lookupConnectionState(connectionId);
  // Avoid replaying dup commands
  if (cs != null && !cs.getSessionIds().contains(info.getSessionId())) {
    broker.addSession(cs.getContext(), info);
    try {
      cs.addSession(info);
    } catch (IllegalStateException e) {
      LOG.warn("Failed to add session: {}", info.getSessionId(), e);
      broker.removeSession(cs.getContext(), info);
    }
  }
  return null;
}
origin: org.apache.activemq/activemq-broker

@Override
public Response processAddSession(SessionInfo info) throws Exception {
  ConnectionId connectionId = info.getSessionId().getParentId();
  TransportConnectionState cs = lookupConnectionState(connectionId);
  // Avoid replaying dup commands
  if (cs != null && !cs.getSessionIds().contains(info.getSessionId())) {
    broker.addSession(cs.getContext(), info);
    try {
      cs.addSession(info);
    } catch (IllegalStateException e) {
      LOG.warn("Failed to add session: {}", info.getSessionId(), e);
      broker.removeSession(cs.getContext(), info);
    }
  }
  return null;
}
origin: org.apache.activemq/activemq-osgi

@Override
public Response processAddSession(SessionInfo info) throws Exception {
  ConnectionId connectionId = info.getSessionId().getParentId();
  TransportConnectionState cs = lookupConnectionState(connectionId);
  // Avoid replaying dup commands
  if (cs != null && !cs.getSessionIds().contains(info.getSessionId())) {
    broker.addSession(cs.getContext(), info);
    try {
      cs.addSession(info);
    } catch (IllegalStateException e) {
      LOG.warn("Failed to add session: {}", info.getSessionId(), e);
      broker.removeSession(cs.getContext(), info);
    }
  }
  return null;
}
org.apache.activemq.brokerBrokeraddSession

Javadoc

Adds a session.

Popular methods of Broker

  • getAdaptor
    Get a Broker from the Broker Stack that is a particular class
  • getDestinationMap
    return a reference destination map of a region based on the destination type
  • removeDestination
  • commitTransaction
    Commits a transaction.
  • forgetTransaction
    Forgets a transaction.
  • getBrokerService
  • getClients
  • getDestinations
  • getPreparedTransactions
    Gets a list of all the prepared xa transactions.
  • getVmConnectorURI
  • removeConsumer
  • acknowledge
  • removeConsumer,
  • acknowledge,
  • addBroker,
  • addConnection,
  • addConsumer,
  • addDestination,
  • addDestinationInfo,
  • addProducer,
  • beginTransaction

Popular in Java

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • findViewById (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JCheckBox (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now