org.objectweb.jonas_jms.JConnectionFactory Class Reference

Inherited by org.objectweb.jonas_jms.JQueueConnectionFactory, and org.objectweb.jonas_jms.JTopicConnectionFactory.

Inheritance diagram for org.objectweb.jonas_jms.JConnectionFactory:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 JConnectionFactory (String name)
Connection createConnection () throws JMSException
Connection createConnection (String userName, String password) throws JMSException
void freeJConnection (JConnection con)
JConnection getJConnection ()
JConnection getJConnection (String user)

Protected Member Functions

 JConnectionFactory ()

Detailed Description

Author:
Laurent Chauvirey, Frederic Maistre, Nicolas Tachker Contributor(s): Philippe Durieux Jeff Mesnil connection anonymous Philippe Coq

Definition at line 52 of file JConnectionFactory.java.


Constructor & Destructor Documentation

org.objectweb.jonas_jms.JConnectionFactory.JConnectionFactory String  name  ) 
 

Constructor.

Parameters:
name - ConnectionFactory name

Definition at line 64 of file JConnectionFactory.java.

References org.objectweb.jonas_jms.api.JmsManager.getXAConnectionFactory().

Here is the call graph for this function:

org.objectweb.jonas_jms.JConnectionFactory.JConnectionFactory  )  [protected]
 

Empty Constructor called by subclasses.

Definition at line 73 of file JConnectionFactory.java.


Member Function Documentation

Connection org.objectweb.jonas_jms.JConnectionFactory.createConnection String  userName,
String  password
throws JMSException
 

Create a connection with specified user identity. The connection is created in stopped mode. No messages will be delivered until Connection.start method is explicitly called.

Parameters:
userName - the caller's user name
password - the caller's password
Exceptions:
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.

Definition at line 112 of file JConnectionFactory.java.

References org.objectweb.jonas_jms.JConnectionFactory.getJConnection().

Here is the call graph for this function:

Connection org.objectweb.jonas_jms.JConnectionFactory.createConnection  )  throws JMSException
 

Create a connection for an anonymous user.

Returns:
a newly created connection.
Exceptions:
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.

Definition at line 90 of file JConnectionFactory.java.

References org.objectweb.jonas_jms.JConnectionFactory.getJConnection().

Here is the call graph for this function:

void org.objectweb.jonas_jms.JConnectionFactory.freeJConnection JConnection  con  ) 
 

Free a Connection and return it to the pool

Parameters:
con - Connection to be freed

Definition at line 129 of file JConnectionFactory.java.

Referenced by org.objectweb.jonas_jms.JConnection.close().

JConnection org.objectweb.jonas_jms.JConnectionFactory.getJConnection String  user  ) 
 

Get a Connection from the pool for the specified user

Parameters:
user User wanting a connection
Returns:
Connection from the pool for the specified user

Definition at line 166 of file JConnectionFactory.java.

References org.objectweb.jonas_jms.JConnection.getUser().

Here is the call graph for this function:

JConnection org.objectweb.jonas_jms.JConnectionFactory.getJConnection  ) 
 

Get a Connection from the pool for an anonymous user

Returns:
a Connection for an anonymous user

Definition at line 156 of file JConnectionFactory.java.

Referenced by org.objectweb.jonas_jms.JConnectionFactory.createConnection(), org.objectweb.jonas_jms.JQueueConnectionFactory.createQueueConnection(), and org.objectweb.jonas_jms.JTopicConnectionFactory.createTopicConnection().


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:12:05 2005 for JOnAS by  doxygen 1.3.9.1