JTR 5.0 API Documentation

jtr.config.jms
Class JMSConnectionFactory

java.lang.Object
  extended by jtr.config.jms.JMSConnectionFactory
All Implemented Interfaces:
java.io.Serializable

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

This class is the object oriented representation of the conn-factory element of the jtr.xml configuration file.
This class logically maps itself to a javax.jms.ConnectionFactory class.
A JMSConnectionFactory holds a moltitude of JMSConnections.

Since:
1.1
Version:
5.0
Author:
Francesco Russo (frusso@dev.java.net)
See Also:
JMSConnection, Serialized Form

Constructor Summary
JMSConnectionFactory()
          Default constructor
 
Method Summary
 void addConnection(JMSConnection conn)
          Add a connection to the set of Connections that should be instantiated using the current ConnectionFactory.
 java.util.Collection<JMSConnection> getConnections()
          Return all the configured connections shaped as a Collection of JMSConnection instances.
 java.lang.String getJndi()
          Get the JNDI name for the current JMS connection factory.
 java.lang.String getProperty()
          Get the name of the property of the concrete runner that will hold the actual ConnectionFactory instance.
 void setJndi(java.lang.String jndi)
          Set the JNDI name for the current JMS connection factory.
 void setProperty(java.lang.String property)
          Set the name of the property of the concrete runner that will hold the actual ConnectionFactory instance.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JMSConnectionFactory

public JMSConnectionFactory()
Default constructor

Method Detail

setJndi

public void setJndi(java.lang.String jndi)
Set the JNDI name for the current JMS connection factory.

Parameters:
jndi - The connection factory JNDI name

getJndi

public java.lang.String getJndi()
Get the JNDI name for the current JMS connection factory.

Returns:
The JNDI name

setProperty

public void setProperty(java.lang.String property)
Set the name of the property of the concrete runner that will hold the actual ConnectionFactory instance.

Parameters:
property - The property name

getProperty

public java.lang.String getProperty()
Get the name of the property of the concrete runner that will hold the actual ConnectionFactory instance.

Returns:
The property name

addConnection

public void addConnection(JMSConnection conn)
Add a connection to the set of Connections that should be instantiated using the current ConnectionFactory.

Parameters:
conn - The JMSConnection representing a valid javax.jms.Connection instance

getConnections

public java.util.Collection<JMSConnection> getConnections()
Return all the configured connections shaped as a Collection of JMSConnection instances.

Returns:
Collection The set of configured JMSConnections.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

The JTR Project is licensed under GPL version 2