public class ActiveMQXAConnection extends ActiveMQConnection implements javax.jms.XATopicConnection, javax.jms.XAQueueConnection, javax.jms.XAConnection
Connection,
ConnectionFactory,
QueueConnection,
TopicConnection,
TopicConnectionFactory,
QueueConnection,
QueueConnectionFactoryactiveTempDestinations, alwaysSessionAsync, DEFAULT_BROKER_URL, DEFAULT_PASSWORD, DEFAULT_THREAD_POOL_SIZE, DEFAULT_USER, dispatchAsync, transportInterruptionProcessingComplete| Modifier | Constructor and Description |
|---|---|
protected |
ActiveMQXAConnection(Transport transport,
IdGenerator clientIdGenerator,
IdGenerator connectionIdGenerator,
JMSStatsImpl factoryStats) |
| Modifier and Type | Method and Description |
|---|---|
javax.jms.Session |
createSession(boolean transacted,
int acknowledgeMode)
Creates a
Session object. |
javax.jms.XAQueueSession |
createXAQueueSession() |
javax.jms.XASession |
createXASession() |
javax.jms.XATopicSession |
createXATopicSession() |
addConnectionConsumer, addDispatcher, addInputStream, addOutputStream, addProducer, addSession, addTransportListener, asyncSendPacket, changeUserInfo, checkClientIDWasManuallySpecified, checkClosed, checkClosedOrFailed, cleanup, cleanUpTempDestinations, close, createBlobTransferPolicy, createConnectionConsumer, createConnectionConsumer, createConnectionConsumer, createConnectionConsumer, createDurableConnectionConsumer, createDurableConnectionConsumer, createDurableInputStream, createDurableInputStream, createDurableInputStream, createDurableInputStream, createInputStream, createInputStream, createInputStream, createInputStream, createNonPersistentOutputStream, createOutputStream, createOutputStream, createQueueSession, createTempDestination, createTopicSession, deleteTempDestination, destroyDestination, ensureConnectionInfoSent, finalize, getBlobTransferPolicy, getBrokerInfo, getBrokerName, getClientID, getClientInternalExceptionListener, getCloseTimeout, getConnectionInfo, getConnectionStats, getConsumerFailoverRedeliveryWaitPeriod, getDestinationSource, getExceptionListener, getExecutor, getFirstFailureError, getInitializedClientID, getLocalTransactionIdGenerator, getMaxThreadPoolSize, getMetaData, getNextSessionId, getOptimizeAcknowledgeTimeOut, getOptimizedAckScheduledAckInterval, getPrefetchPolicy, getProducerWindowSize, getProtocolVersion, getRedeliveryPolicy, getRedeliveryPolicyMap, getRejectedTaskHandler, getResourceManagerId, getScheduler, getSendTimeout, getSessionTaskRunner, getStats, getTimeCreated, getTransformer, getTransport, getTransportChannel, getWarnAboutUnstartedConnectionTimeout, isAlwaysSessionAsync, isAlwaysSyncSend, isCheckForDuplicates, isClosed, isClosing, isCopyMessageOnSend, isDeleted, isDisableTimeStampsByDefault, isDispatchAsync, isDuplicate, isExclusiveConsumer, isMessagePrioritySupported, isNestedMapAndListEnabled, isNonBlockingRedelivery, isObjectMessageSerializationDefered, isOptimizeAcknowledge, isOptimizedMessageDispatch, isSendAcksAsync, isStarted, isStatsEnabled, isTransactedIndividualAck, isTransportFailed, isUseAsyncSend, isUseCompression, isUseDedicatedTaskRunner, isUseRetroactiveConsumer, isWatchTopicAdvisories, makeConnection, makeConnection, makeConnection, onAsyncException, onClientInternalException, onCommand, onConnectionControl, onConsumerControl, onControlCommand, onException, onWireFormatInfo, removeConnectionConsumer, removeDispatcher, removeDispatcher, removeInputStream, removeOutputStream, removeProducer, removeSession, removeTransportListener, rollbackDuplicate, setAlwaysSessionAsync, setAlwaysSyncSend, setAuditDepth, setAuditMaximumProducerNumber, setBlobTransferPolicy, setCheckForDuplicates, setClientID, setClientInternalExceptionListener, setCloseTimeout, setConsumerFailoverRedeliveryWaitPeriod, setCopyMessageOnSend, setDefaultClientID, setDisableTimeStampsByDefault, setDispatchAsync, setExceptionListener, setExclusiveConsumer, setMaxThreadPoolSize, setMessagePrioritySupported, setNestedMapAndListEnabled, setNonBlockingRedelivery, setObjectMessageSerializationDefered, setOptimizeAcknowledge, setOptimizeAcknowledgeTimeOut, setOptimizedAckScheduledAckInterval, setOptimizedMessageDispatch, setPassword, setPrefetchPolicy, setProducerWindowSize, setRedeliveryPolicy, setRedeliveryPolicyMap, setRejectedTaskHandler, setSendAcksAsync, setSendTimeout, setSessionTaskRunner, setStatsEnabled, setTransactedIndividualAck, setTransformer, setUseAsyncSend, setUseCompression, setUseDedicatedTaskRunner, setUseRetroactiveConsumer, setUserName, setWarnAboutUnstartedConnectionTimeout, setWatchTopicAdvisories, start, stop, syncSendPacket, syncSendPacket, syncSendPacket, toString, transportFailed, transportInterruptionProcessingComplete, transportInterupted, transportResumed, unsubscribe, waitForTransportInterruptionProcessingToCompleteclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitprotected ActiveMQXAConnection(Transport transport, IdGenerator clientIdGenerator, IdGenerator connectionIdGenerator, JMSStatsImpl factoryStats) throws java.lang.Exception
java.lang.Exceptionpublic javax.jms.XASession createXASession()
throws javax.jms.JMSException
createXASession in interface javax.jms.XAConnectionjavax.jms.JMSExceptionpublic javax.jms.XATopicSession createXATopicSession()
throws javax.jms.JMSException
createXATopicSession in interface javax.jms.XATopicConnectionjavax.jms.JMSExceptionpublic javax.jms.XAQueueSession createXAQueueSession()
throws javax.jms.JMSException
createXAQueueSession in interface javax.jms.XAQueueConnectionjavax.jms.JMSExceptionpublic javax.jms.Session createSession(boolean transacted,
int acknowledgeMode)
throws javax.jms.JMSException
ActiveMQConnectionSession object.createSession in interface javax.jms.ConnectioncreateSession in interface javax.jms.XAConnectioncreateSession in class ActiveMQConnectiontransacted - indicates whether the session is transactedacknowledgeMode - indicates whether the consumer or the client will
acknowledge any messages it receives; ignored if the
session is transacted. Legal values are
Session.AUTO_ACKNOWLEDGE,
Session.CLIENT_ACKNOWLEDGE, and
Session.DUPS_OK_ACKNOWLEDGE.javax.jms.JMSException - if the Connection object fails to
create a session due to some internal error or lack of
support for the specific transaction and acknowledgement
mode.Session.AUTO_ACKNOWLEDGE,
Session.CLIENT_ACKNOWLEDGE,
Session.DUPS_OK_ACKNOWLEDGECopyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.