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

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

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

origin: apache/activemq

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

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

/**
 * A producer may register to send to multiple destinations via a composite
 * destination.
 */
public void addProducer(ConnectionContext context, ProducerInfo info) throws Exception {
  // The destination may be null.
  ActiveMQDestination destination = info.getDestination();
  if (destination != null && destination.isComposite()) {
    ActiveMQDestination[] destinations = destination.getCompositeDestinations();
    for (int i = 0; i < destinations.length; i++) {
      ProducerInfo copy = info.copy();
      copy.setDestination(destinations[i]);
      next.addProducer(context, copy);
    }
  } else {
    next.addProducer(context, info);
  }
}
origin: apache/activemq

broker.addProducer(cs.getContext(), info);
try {
  ss.addProducer(info);
origin: pierre/meteo

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

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

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

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

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

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

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

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

public void addProducer(ConnectionContext context, ProducerInfo info) throws Exception {
  getNext().addProducer(context, info);
}
origin: org.apache.activemq/activemq-broker

/**
 * A producer may register to send to multiple destinations via a composite
 * destination.
 */
public void addProducer(ConnectionContext context, ProducerInfo info) throws Exception {
  // The destination may be null.
  ActiveMQDestination destination = info.getDestination();
  if (destination != null && destination.isComposite()) {
    ActiveMQDestination[] destinations = destination.getCompositeDestinations();
    for (int i = 0; i < destinations.length; i++) {
      ProducerInfo copy = info.copy();
      copy.setDestination(destinations[i]);
      next.addProducer(context, copy);
    }
  } else {
    next.addProducer(context, info);
  }
}
origin: org.apache.activemq/activemq-all

/**
 * A producer may register to send to multiple destinations via a composite
 * destination.
 */
public void addProducer(ConnectionContext context, ProducerInfo info) throws Exception {
  // The destination may be null.
  ActiveMQDestination destination = info.getDestination();
  if (destination != null && destination.isComposite()) {
    ActiveMQDestination[] destinations = destination.getCompositeDestinations();
    for (int i = 0; i < destinations.length; i++) {
      ProducerInfo copy = info.copy();
      copy.setDestination(destinations[i]);
      next.addProducer(context, copy);
    }
  } else {
    next.addProducer(context, info);
  }
}
origin: org.apache.activemq/activemq-osgi

/**
 * A producer may register to send to multiple destinations via a composite
 * destination.
 */
public void addProducer(ConnectionContext context, ProducerInfo info) throws Exception {
  // The destination may be null.
  ActiveMQDestination destination = info.getDestination();
  if (destination != null && destination.isComposite()) {
    ActiveMQDestination[] destinations = destination.getCompositeDestinations();
    for (int i = 0; i < destinations.length; i++) {
      ProducerInfo copy = info.copy();
      copy.setDestination(destinations[i]);
      next.addProducer(context, copy);
    }
  } else {
    next.addProducer(context, info);
  }
}
origin: pierre/meteo

/**
 * A producer may register to send to multiple destinations via a composite
 * destination.
 */
public void addProducer(ConnectionContext context, ProducerInfo info) throws Exception {
  // The destination may be null.
  ActiveMQDestination destination = info.getDestination();
  if (destination != null && destination.isComposite()) {
    ActiveMQDestination[] destinations = destination.getCompositeDestinations();
    for (int i = 0; i < destinations.length; i++) {
      ProducerInfo copy = info.copy();
      copy.setDestination(destinations[i]);
      next.addProducer(context, copy);
    }
  } else {
    next.addProducer(context, info);
  }
}
origin: pierre/meteo

public Response processAddProducer(ProducerInfo info) throws Exception {
  SessionId sessionId = info.getProducerId().getParentId();
  ConnectionId connectionId = sessionId.getParentId();
  TransportConnectionState cs = lookupConnectionState(connectionId);
  SessionState ss = cs.getSessionState(sessionId);
  if (ss == null) {
    throw new IllegalStateException("Cannot add a producer to a session that had not been registered: "
        + sessionId);
  }
  // Avoid replaying dup commands
  if (!ss.getProducerIds().contains(info.getProducerId())) {
    broker.addProducer(cs.getContext(), info);
    try {
      ss.addProducer(info);
    } catch (IllegalStateException e) {
      broker.removeProducer(cs.getContext(), info);
    }
  }
  return null;
}
origin: org.apache.activemq/activemq-broker

broker.addProducer(cs.getContext(), info);
try {
  ss.addProducer(info);
origin: org.apache.activemq/activemq-all

broker.addProducer(cs.getContext(), info);
try {
  ss.addProducer(info);
org.apache.activemq.brokerBrokeraddProducer

Javadoc

Adds a producer.

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,
  • addSession,
  • beginTransaction

Popular in Java

  • Start an intent from android
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • JOptionPane (javax.swing)
  • Top 12 Jupyter Notebook extensions
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