|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jotm.jms.JConnectionFactory
public class JConnectionFactory
| Field Summary | |
|---|---|
protected JmsManager |
jms
|
protected org.objectweb.util.monolog.api.Logger |
logger
|
protected String |
name
|
protected XAConnectionFactory |
xacf
|
| Constructor Summary | |
|---|---|
JConnectionFactory(String name,
XAConnectionFactory xacf,
org.objectweb.util.monolog.api.Logger logger)
Constructor. |
|
| Method Summary | |
|---|---|
void |
cleanPool()
Close all Connections of the pool. |
Connection |
createConnection()
Create a connection for an anonymous user. |
Connection |
createConnection(String userName,
String password)
Create a connection with specified user identity. |
void |
freeJConnection(JConnection con)
Free a Connection and return it to the pool |
JConnection |
getJConnection(String user)
Get a Connection from the pool for the specified user |
Reference |
getReference()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JmsManager jms
protected String name
protected XAConnectionFactory xacf
protected org.objectweb.util.monolog.api.Logger logger
| Constructor Detail |
|---|
public JConnectionFactory(String name,
XAConnectionFactory xacf,
org.objectweb.util.monolog.api.Logger logger)
name - - ConnectionFactory namexacf - - underlaying XAConnectionFactory| Method Detail |
|---|
public Connection createConnection()
throws JMSException
createConnection in interface ConnectionFactoryJMSException - - if JMS Provider fails to create Connection
due to some internal error. required resources for a Connection.
public Connection createConnection(String userName,
String password)
throws JMSException
createConnection in interface ConnectionFactoryuserName - - the caller's user namepassword - - the caller's password
JMSException - - if JMS Provider fails to create Connection
due to some internal error. required resources for a Connection.public void freeJConnection(JConnection con)
con - - Connection to be freedpublic void cleanPool()
public JConnection getJConnection(String user)
user - User wanting a connection
public Reference getReference()
throws NamingException
getReference in interface ReferenceableNamingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||