|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas_jms.JConnectionFactory
public class JConnectionFactory
Field Summary | |
---|---|
protected JmsManager |
jms
|
protected java.lang.String |
name
|
protected javax.jms.XAConnectionFactory |
xacf
|
Constructor Summary | |
---|---|
protected |
JConnectionFactory()
Empty Constructor called by subclasses. |
|
JConnectionFactory(java.lang.String name)
Constructor. |
Method Summary | |
---|---|
javax.jms.Connection |
createConnection()
Create a connection for an anonymous user. |
javax.jms.Connection |
createConnection(java.lang.String userName,
java.lang.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(java.lang.String user)
Get a Connection from the pool for the specified user |
javax.naming.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 java.lang.String name
protected javax.jms.XAConnectionFactory xacf
Constructor Detail |
---|
public JConnectionFactory(java.lang.String name)
name
- - ConnectionFactory nameprotected JConnectionFactory()
Method Detail |
---|
public javax.jms.Connection createConnection() throws javax.jms.JMSException
createConnection
in interface javax.jms.ConnectionFactory
javax.jms.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 javax.jms.Connection createConnection(java.lang.String userName, java.lang.String password) throws javax.jms.JMSException
createConnection
in interface javax.jms.ConnectionFactory
userName
- - the caller's user namepassword
- - the caller's password
javax.jms.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(java.lang.String user)
user
- User wanting a connection
public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface javax.naming.Referenceable
javax.naming.NamingException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |