|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas_jms.JConnectionFactory
public class JConnectionFactory
Field Summary | |
---|---|
protected JmsManager |
jms
|
protected String |
name
|
protected XAConnectionFactory |
xacf
|
Constructor Summary | |
---|---|
protected |
JConnectionFactory()
Empty Constructor called by subclasses. |
|
JConnectionFactory(String name)
Constructor. |
Method Summary | |
---|---|
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()
Get a Connection from the pool for an anonymous user |
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
Constructor Detail |
---|
public JConnectionFactory(String name)
name
- - ConnectionFactory nameprotected JConnectionFactory()
Method Detail |
---|
public Connection createConnection() throws JMSException
createConnection
in interface ConnectionFactory
JMSException
- - if JMS Provider fails to create Connection
due to some internal error. required resources for a Connection.
JMSSecurityException
- - if client authentication fails due to
invalid user name or password.public Connection createConnection(String userName, String password) throws JMSException
createConnection
in interface ConnectionFactory
userName
- - 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.
JMSSecurityException
- - if client authentication fails due to
invalid user name or password.public void freeJConnection(JConnection con)
con
- - Connection to be freedpublic JConnection getJConnection()
public JConnection getJConnection(String user)
user
- User wanting a connection
public Reference getReference() throws NamingException
getReference
in interface Referenceable
NamingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |