org.objectweb.joram.client.jms

Class XAConnectionFactory

Implemented Interfaces:
javax.naming.Referenceable, java.io.Serializable, javax.jms.XAConnectionFactory, SoapObjectItf
Known Direct 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(String host, int port)
Constructs an XAConnectionFactory dedicated to a given server.

Method Summary

Hashtable
code()
Codes an XAConnectionFactory as a Hashtable for travelling through the SOAP protocol.
javax.jms.XAConnection
createXAConnection()
API method.
javax.jms.XAConnection
createXAConnection(String name, String password)
API method, implemented according to the communication protocol.
Object
decode(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.
Reference
getReference()
Sets the naming reference of an XA connection factory.
String
toString()
Returns a string view of the connection factory.

Methods inherited from class org.objectweb.joram.client.jms.admin.AdministeredObject

code, getInstance, getReference

Field Details

params

protected FactoryParameters params
Factory's parameters object.

Constructor Details

XAConnectionFactory

public XAConnectionFactory(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 Details

code

public Hashtable code()
Codes an XAConnectionFactory as a Hashtable for travelling through the SOAP protocol.
Specified by:
code in interface SoapObjectItf
Overrides:
code in interface AdministeredObject


createXAConnection

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


createXAConnection

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


decode

public Object decode(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


getParameters

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


getReference

public Reference getReference()
            throws NamingException
Sets the naming reference of an XA connection factory.
Overrides:
getReference in interface AdministeredObject


toString

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


Copyright B) 2004 Scalagent - All rights reserved