|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.blacktie.jatmibroker.jab.factory.JABConnectionFactory
public class JABConnectionFactory
The connection factory is the entry point into the JAB API for client applications. It is a singleton class which is accessed via the JABConnectionFactory.getInstance() method. Connections obtained via the getConnection(String) method, should be closed via the closeConnection(String) method.
| Method Summary | |
|---|---|
void |
closeConnection(String connectionName)
Close the JAB connection to the server |
JABConnection |
getConnection(String connectionName)
Obtain a reference to the connection identified by the parameter |
static JABConnectionFactory |
getInstance()
Obtain a reference to the single instance of JABConnectionFactory per classloader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static JABConnectionFactory getInstance()
throws JABException
JABException - In case the connection factory cannot be loaded
public JABConnection getConnection(String connectionName)
throws JABException
connectionName - The name of the connection to retrieve
JABException - If the connection cannot be created
public void closeConnection(String connectionName)
throws JABException
connectionName - The name of the connection to close
JABException - In case the connection cannot be closed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||