Joram 5.2.5

org.objectweb.joram.client.jms
Class XAConnection

java.lang.Object
  extended by org.objectweb.joram.client.jms.Connection
      extended by org.objectweb.joram.client.jms.XAConnection
All Implemented Interfaces:
javax.jms.Connection, javax.jms.XAConnection

public class XAConnection
extends Connection
implements javax.jms.XAConnection

Connection used within global transactions; an instance of this class acts as a resource manager.


Field Summary
 
Fields inherited from class org.objectweb.joram.client.jms.Connection
logger
 
Constructor Summary
XAConnection(FactoryParameters factoryParameters, RequestChannel requestChannel)
          Creates a XAConnection instance.
 
Method Summary
 javax.jms.Session createSession(boolean transacted, int acknowledgeMode)
          Creates a non-XA session.
 javax.jms.XASession createXASession()
          Creates a XA session.
 XAResourceMngr getXAResourceMngr()
          return XAResourceMngr of this connection.
 
Methods inherited from class org.objectweb.joram.client.jms.Connection
addSession, checkClosed, cleanup, close, createConnectionConsumer, createDurableConnectionConsumer, equals, getAsyncSend, getClientID, getExceptionListener, getImplicitAck, getMetaData, getOutLocalAddress, getOutLocalPort, getQueueMessageReadMax, getRequestMultiplexer, getTopicAckBufferMax, getTopicActivationThreshold, getTopicPassivationThreshold, getTxPendingTimer, hashCode, setClientID, setExceptionListener, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.jms.Connection
close, createConnectionConsumer, createDurableConnectionConsumer, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
 

Constructor Detail

XAConnection

public XAConnection(FactoryParameters factoryParameters,
                    RequestChannel requestChannel)
             throws javax.jms.JMSException
Creates a XAConnection instance.

Parameters:
factoryParameters - The factory parameters.
requestChannel - The actual connection to wrap.
Throws:
javax.jms.JMSSecurityException - If the user identification is incorrect.
javax.jms.IllegalStateException - If the server is not listening.
javax.jms.JMSException
Method Detail

createSession

public javax.jms.Session createSession(boolean transacted,
                                       int acknowledgeMode)
                                throws javax.jms.JMSException
Creates a non-XA session.

Specified by:
createSession in interface javax.jms.Connection
Specified by:
createSession in interface javax.jms.XAConnection
Overrides:
createSession in class Connection
Throws:
javax.jms.IllegalStateException - If the connection is closed.
javax.jms.JMSException - In case of an invalid acknowledge mode.

createXASession

public javax.jms.XASession createXASession()
                                    throws javax.jms.JMSException
Creates a XA session.

Specified by:
createXASession in interface javax.jms.XAConnection
Throws:
javax.jms.IllegalStateException - If the connection is closed.
javax.jms.JMSException

getXAResourceMngr

public XAResourceMngr getXAResourceMngr()
return XAResourceMngr of this connection. see connector


Joram 5.2.5

Copyright © 2000 - 2009 Scalagent D.T. - All rights reserved