org.objectweb.joram.client.jms

Class FactoryParameters

Implemented Interfaces:
java.io.Serializable

public class FactoryParameters
extends java.lang.Object
implements java.io.Serializable

A FactoryParameters instance holds a <XA>ConnectionFactory configuration parameters.

See Also:
Serialized Form

Field Summary

int
cnxPendingTimer
Period in milliseconds between two ping requests sent by the client connection to the server; if the server does not receive any ping request during more than 2 * cnxPendingTimer, the connection is considered as dead and processed as required.
int
connectingTimer
Duration in seconds during which connecting is attempted (connecting might take time if the server is temporarily not reachable); the 0 value is set for connecting only once and aborting if connecting failed.
int
txPendingTimer
Duration in seconds during which a JMS transacted (non XA) session might be pending; above that duration the session is rolled back and closed; the 0 value means "no timer".

Constructor Summary

FactoryParameters(String host, int port)
Constructs a FactoryParameters instance.

Method Summary

String
getHost()
Returns the name of host hosting the server to create connections with.
int
getPort()
Returns the port to be used for accessing the server.

Field Details

cnxPendingTimer

public int cnxPendingTimer
Period in milliseconds between two ping requests sent by the client connection to the server; if the server does not receive any ping request during more than 2 * cnxPendingTimer, the connection is considered as dead and processed as required.


connectingTimer

public int connectingTimer
Duration in seconds during which connecting is attempted (connecting might take time if the server is temporarily not reachable); the 0 value is set for connecting only once and aborting if connecting failed.


txPendingTimer

public int txPendingTimer
Duration in seconds during which a JMS transacted (non XA) session might be pending; above that duration the session is rolled back and closed; the 0 value means "no timer".

Constructor Details

FactoryParameters

public FactoryParameters(String host,
                         int port)
Constructs a FactoryParameters instance.

Parameters:
host - Name of host hosting the server to create connections with.
port - Port to be used for accessing the server.

Method Details

getHost

public String getHost()
Returns the name of host hosting the server to create connections with.


getPort

public int getPort()
Returns the port to be used for accessing the server.


Copyright B) 2004 Scalagent - All rights reserved