org.jboss.narayana.blacktie.jatmibroker.xatmi
Class ConnectionFactory

java.lang.Object
  extended by org.jboss.narayana.blacktie.jatmibroker.xatmi.ConnectionFactory

public class ConnectionFactory
extends Object

This is a factory that will create connections to remote Blacktie services.

See Also:
Connection, ConnectionException

Method Summary
 Connection getConnection()
          Get the connection for this thread.
static ConnectionFactory getConnectionFactory()
          Get the default connection factory
 Properties getProperties()
           
 void removeConnection(ConnectionImpl connection)
          Remove the connection from the factory after closure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getConnectionFactory

public static ConnectionFactory getConnectionFactory()
                                              throws org.jboss.narayana.blacktie.jatmibroker.core.conf.ConfigurationException
Get the default connection factory

Returns:
The connection factory
Throws:
org.jboss.narayana.blacktie.jatmibroker.core.conf.ConfigurationException - If the configuration cannot be parsed.

getConnection

public Connection getConnection()
                         throws org.jboss.narayana.blacktie.jatmibroker.core.conf.ConfigurationException
Get the connection for this thread.

Returns:
The connection for this thread.
Throws:
org.jboss.narayana.blacktie.jatmibroker.core.conf.ConfigurationException

removeConnection

public void removeConnection(ConnectionImpl connection)
Remove the connection from the factory after closure.

Parameters:
connection - The connection to remove.

getProperties

public Properties getProperties()


Copyright © 2013. All Rights Reserved.