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

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

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

origin: apache/activemq

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

@Override
public void beginTransaction(ConnectionContext context, TransactionId xid) throws Exception {
  getNext().beginTransaction(context, xid);
}
origin: apache/activemq

@Override
public Response processBeginTransaction(TransactionInfo info) throws Exception {
  TransportConnectionState cs = lookupConnectionState(info.getConnectionId());
  context = null;
  if (cs != null) {
    context = cs.getContext();
  }
  if (cs == null) {
    throw new NullPointerException("Context is null");
  }
  // Avoid replaying dup commands
  if (cs.getTransactionState(info.getTransactionId()) == null) {
    cs.addTransactionState(info.getTransactionId());
    broker.beginTransaction(context, info.getTransactionId());
  }
  return null;
}
origin: apache/activemq

private LocalTransactionId beginLocalTransaction(int numDestinations, ConnectionContext connectionContext, Message message) throws Exception {
  LocalTransactionId result = null;
  if (transactedSend && numDestinations > 1 && message.isPersistent() && message.getTransactionId() == null) {
    result = new LocalTransactionId(new ConnectionId(message.getMessageId().getProducerId().toString()), message.getMessageId().getProducerSequenceId());
    connectionContext.getBroker().beginTransaction(connectionContext, result);
    connectionContext.setTransaction(connectionContext.getTransactions().get(result));
    message.setTransactionId(result);
  }
  return result;
}
origin: pierre/meteo

public void beginTransaction(ConnectionContext context, TransactionId xid) throws Exception {
  next.beginTransaction(context, xid);
}
origin: org.apache.activemq/activemq-broker

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

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

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

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

@Override
public void beginTransaction(ConnectionContext context, TransactionId xid) throws Exception {
  getNext().beginTransaction(context, xid);
}
origin: org.apache.activemq/activemq-all

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

@Override
public void beginTransaction(ConnectionContext context, TransactionId xid) throws Exception {
  getNext().beginTransaction(context, xid);
}
origin: pierre/meteo

public void beginTransaction(ConnectionContext context, TransactionId xid) throws Exception {
  getNext().beginTransaction(context, xid);
}
origin: org.apache.activemq/activemq-all

@Override
public Response processBeginTransaction(TransactionInfo info) throws Exception {
  TransportConnectionState cs = lookupConnectionState(info.getConnectionId());
  context = null;
  if (cs != null) {
    context = cs.getContext();
  }
  if (cs == null) {
    throw new NullPointerException("Context is null");
  }
  // Avoid replaying dup commands
  if (cs.getTransactionState(info.getTransactionId()) == null) {
    cs.addTransactionState(info.getTransactionId());
    broker.beginTransaction(context, info.getTransactionId());
  }
  return null;
}
origin: org.apache.activemq/activemq-broker

@Override
public Response processBeginTransaction(TransactionInfo info) throws Exception {
  TransportConnectionState cs = lookupConnectionState(info.getConnectionId());
  context = null;
  if (cs != null) {
    context = cs.getContext();
  }
  if (cs == null) {
    throw new NullPointerException("Context is null");
  }
  // Avoid replaying dup commands
  if (cs.getTransactionState(info.getTransactionId()) == null) {
    cs.addTransactionState(info.getTransactionId());
    broker.beginTransaction(context, info.getTransactionId());
  }
  return null;
}
origin: pierre/meteo

public Response processBeginTransaction(TransactionInfo info) throws Exception {
  TransportConnectionState cs = lookupConnectionState(info.getConnectionId());
  context = null;
  if (cs != null) {
    context = cs.getContext();
  }
  if (cs == null) {
    throw new NullPointerException("Context is null");
  }
  // Avoid replaying dup commands
  if (cs.getTransactionState(info.getTransactionId()) == null) {
    cs.addTransactionState(info.getTransactionId());
    broker.beginTransaction(context, info.getTransactionId());
  }
  return null;
}
origin: org.apache.activemq/activemq-osgi

@Override
public Response processBeginTransaction(TransactionInfo info) throws Exception {
  TransportConnectionState cs = lookupConnectionState(info.getConnectionId());
  context = null;
  if (cs != null) {
    context = cs.getContext();
  }
  if (cs == null) {
    throw new NullPointerException("Context is null");
  }
  // Avoid replaying dup commands
  if (cs.getTransactionState(info.getTransactionId()) == null) {
    cs.addTransactionState(info.getTransactionId());
    broker.beginTransaction(context, info.getTransactionId());
  }
  return null;
}
origin: org.apache.activemq/activemq-broker

private LocalTransactionId beginLocalTransaction(int numDestinations, ConnectionContext connectionContext, Message message) throws Exception {
  LocalTransactionId result = null;
  if (transactedSend && numDestinations > 1 && message.isPersistent() && message.getTransactionId() == null) {
    result = new LocalTransactionId(new ConnectionId(message.getMessageId().getProducerId().toString()), message.getMessageId().getProducerSequenceId());
    connectionContext.getBroker().beginTransaction(connectionContext, result);
    connectionContext.setTransaction(connectionContext.getTransactions().get(result));
    message.setTransactionId(result);
  }
  return result;
}
origin: org.apache.activemq/activemq-all

private LocalTransactionId beginLocalTransaction(int numDestinations, ConnectionContext connectionContext, Message message) throws Exception {
  LocalTransactionId result = null;
  if (transactedSend && numDestinations > 1 && message.isPersistent() && message.getTransactionId() == null) {
    result = new LocalTransactionId(new ConnectionId(message.getMessageId().getProducerId().toString()), message.getMessageId().getProducerSequenceId());
    connectionContext.getBroker().beginTransaction(connectionContext, result);
    connectionContext.setTransaction(connectionContext.getTransactions().get(result));
    message.setTransactionId(result);
  }
  return result;
}
origin: org.apache.activemq/activemq-osgi

private LocalTransactionId beginLocalTransaction(int numDestinations, ConnectionContext connectionContext, Message message) throws Exception {
  LocalTransactionId result = null;
  if (transactedSend && numDestinations > 1 && message.isPersistent() && message.getTransactionId() == null) {
    result = new LocalTransactionId(new ConnectionId(message.getMessageId().getProducerId().toString()), message.getMessageId().getProducerSequenceId());
    connectionContext.getBroker().beginTransaction(connectionContext, result);
    connectionContext.setTransaction(connectionContext.getTransactions().get(result));
    message.setTransactionId(result);
  }
  return result;
}
org.apache.activemq.brokerBrokerbeginTransaction

Javadoc

Starts a transaction.

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • getExternalFilesDir (Context)
  • startActivity (Activity)
  • requestLocationUpdates (LocationManager)
  • Menu (java.awt)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for WebStorm
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