| java.lang.Object org.objectweb.jonas_jms.JConnectionFactory
All known Subclasses: org.objectweb.jonas_jms.JTopicConnectionFactory, org.objectweb.jonas_jms.JQueueConnectionFactory,
JConnectionFactory | public class JConnectionFactory implements ConnectionFactory,Referenceable,Serializable(Code) | | author: Laurent Chauvirey, Frederic Maistre, Nicolas Tachker author: Contributor(s): author: Philippe Durieux author: Jeff Mesnil connection anonymous author: Philippe Coq |
xacf | protected XAConnectionFactory xacf(Code) | | |
JConnectionFactory | public JConnectionFactory(String name)(Code) | | Constructor.
Parameters: name - - ConnectionFactory name |
JConnectionFactory | protected JConnectionFactory()(Code) | | Empty Constructor called by subclasses.
|
cleanPool | void cleanPool()(Code) | | |
createConnection | public Connection createConnection() throws JMSException(Code) | | Create a connection for an anonymous user.
a newly created connection. throws: JMSException - - if JMS Provider fails to create Connection due to some internal error. required resources for a Connection. throws: JMSSecurityException - - if client authentication fails due to invalid user name or password. |
createConnection | public Connection createConnection(String userName, String password) throws JMSException(Code) | | 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 Parameters: password - - the caller's password throws: JMSException - - if JMS Provider fails to create Connection due to some internal error. required resources for a Connection. throws: JMSSecurityException - - if client authentication fails due to invalid user name or password. |
freeJConnection | public void freeJConnection(JConnection con)(Code) | | Free a Connection and return it to the pool
Parameters: con - - Connection to be freed |
getJConnection | public JConnection getJConnection()(Code) | | Get a Connection from the pool for an anonymous user
a Connection for an anonymous user |
getJConnection | public JConnection getJConnection(String user)(Code) | | Get a Connection from the pool for the specified user
Parameters: user - User wanting a connection Connection from the pool for the specified user |
|
|