org.objectweb.jonas_jms.JQueueConnection Class Reference

Inherits org.objectweb.jonas_jms.JConnection.

Inheritance diagram for org.objectweb.jonas_jms.JQueueConnection:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_jms.JQueueConnection:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JQueueConnection (JConnectionFactory jcf, XAQueueConnectionFactory xaqcf, String user, String passwd) throws JMSException
 JQueueConnection (JConnectionFactory jcf, XAQueueConnectionFactory xaqcf) throws JMSException
ConnectionConsumer createConnectionConsumer (Queue queue, String selector, ServerSessionPool pool, int maxmessages) throws JMSException
QueueSession createQueueSession (boolean transacted, int acknowledgeMode) throws JMSException

Detailed Description

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

Definition at line 48 of file JQueueConnection.java.


Constructor & Destructor Documentation

org.objectweb.jonas_jms.JQueueConnection.JQueueConnection JConnectionFactory  jcf,
XAQueueConnectionFactory  xaqcf,
String  user,
String  passwd
throws JMSException
 

Constructor of a JQueueConnection for a specified user.

Parameters:
user user's name
passwd user's password

Definition at line 60 of file JQueueConnection.java.

org.objectweb.jonas_jms.JQueueConnection.JQueueConnection JConnectionFactory  jcf,
XAQueueConnectionFactory  xaqcf
throws JMSException
 

Constructor of a JQueueConnection for an anonymous user.

Definition at line 73 of file JQueueConnection.java.


Member Function Documentation

ConnectionConsumer org.objectweb.jonas_jms.JQueueConnection.createConnectionConsumer Queue  queue,
String  selector,
ServerSessionPool  pool,
int  maxmessages
throws JMSException
 

Create a connection consumer for this connection

Parameters:
queue - the queue to access
selector - only messages with properties matching the message selector expression aredelivered
sessionPool - the server session pool to associate with this connection consumer.
maxMessages - the maximum number of messages that can be assigned to a server session at one time.
Returns:
the connection consumer.
Exceptions:
JMSException - if JMS Connection fails to create a a connection consumer due to some internal error or invalid arguments for sessionPool and message selector.
InvalidSelectorException - if the message selector is invalid.

Definition at line 98 of file JQueueConnection.java.

QueueSession org.objectweb.jonas_jms.JQueueConnection.createQueueSession boolean  transacted,
int  acknowledgeMode
throws JMSException
 

Create a Queue Session

Parameters:
transacted - if true, the session is transacted.
acknowledgeMode - indicates whether the consumer or the client will acknowledge any messages it receives. This parameter will be ignored if the session is transacted.
Returns:
a newly created queue session.
Exceptions:
JMSException - if JMS Connection fails to create a session.

Definition at line 115 of file JQueueConnection.java.


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