org.objectweb.joram.client.jms
Class XAConnectionFactory

java.lang.Object
  extended byorg.objectweb.joram.client.jms.admin.AdministeredObject
      extended byorg.objectweb.joram.client.jms.XAConnectionFactory
All Implemented Interfaces:
javax.naming.Referenceable, java.io.Serializable, SoapObjectItf, javax.jms.XAConnectionFactory
Direct Known Subclasses:
XALocalConnectionFactory, XAQueueConnectionFactory, XATcpConnectionFactory, XATopicConnectionFactory

public abstract class XAConnectionFactory
extends AdministeredObject
implements javax.jms.XAConnectionFactory

Implements the javax.jms.XAConnectionFactory interface.

See Also:
Serialized Form

Field Summary
protected  FactoryParameters params
          Factory's parameters object.
 
Fields inherited from class org.objectweb.joram.client.jms.admin.AdministeredObject
id, instancesTable
 
Constructor Summary
XAConnectionFactory(java.lang.String host, int port)
          Constructs an XAConnectionFactory dedicated to a given server.
 
Method Summary
 java.util.Hashtable code()
          Codes an XAConnectionFactory as a Hashtable for travelling through the SOAP protocol.
 javax.jms.XAConnection createXAConnection()
          API method.
abstract  javax.jms.XAConnection createXAConnection(java.lang.String name, java.lang.String password)
          API method, implemented according to the communication protocol.
 java.lang.Object decode(java.util.Hashtable h)
          Implements the decode abstract method defined in the fr.dyade.aaa.jndi2.soap.SoapObjectItf interface.
 FactoryParameters getParameters()
          Returns the factory's configuration parameters.
 javax.naming.Reference getReference()
          Sets the naming reference of an XA connection factory.
 java.lang.String toString()
          Returns a string view of the connection factory.
 
Methods inherited from class org.objectweb.joram.client.jms.admin.AdministeredObject
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

params

protected FactoryParameters params
Factory's parameters object.

Constructor Detail

XAConnectionFactory

public XAConnectionFactory(java.lang.String host,
                           int port)
Constructs an XAConnectionFactory dedicated to a given server.

Parameters:
host - Name or IP address of the server's host.
port - Server's listening port.
Method Detail

toString

public java.lang.String toString()
Returns a string view of the connection factory.


createXAConnection

public abstract javax.jms.XAConnection createXAConnection(java.lang.String name,
                                                          java.lang.String password)
                                                   throws javax.jms.JMSException
API method, implemented according to the communication protocol.

Specified by:
createXAConnection in interface javax.jms.XAConnectionFactory
Throws:
JMSSecurityException - If the user identification is incorrect.
java.lang.IllegalStateException - If the server is not listening.
javax.jms.JMSException

createXAConnection

public javax.jms.XAConnection createXAConnection()
                                          throws javax.jms.JMSException
API method.

Specified by:
createXAConnection in interface javax.jms.XAConnectionFactory
Throws:
JMSSecurityException - If the default identification is incorrect.
java.lang.IllegalStateException - If the server is not listening.
javax.jms.JMSException

getParameters

public FactoryParameters getParameters()
Returns the factory's configuration parameters.


getReference

public javax.naming.Reference getReference()
                                    throws javax.naming.NamingException
Sets the naming reference of an XA connection factory.

Specified by:
getReference in interface javax.naming.Referenceable
Overrides:
getReference in class AdministeredObject
Throws:
javax.naming.NamingException

code

public java.util.Hashtable code()
Codes an XAConnectionFactory as a Hashtable for travelling through the SOAP protocol.

Specified by:
code in interface SoapObjectItf
Overrides:
code in class AdministeredObject

decode

public java.lang.Object decode(java.util.Hashtable h)
Implements the decode abstract method defined in the fr.dyade.aaa.jndi2.soap.SoapObjectItf interface.

Actual implementation of the method is located in the tcp and soap sub classes.

Specified by:
decode in interface SoapObjectItf


Copyright ? 2004 Scalagent - All rights reserved