Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

javax::jms::QueueConnection Class Reference

A QueueConnection object is an active connection to a point-to-point JMS provider. More...

#include <javax_jms_QueueConnection.h>

Inheritance diagram for javax::jms::QueueConnection:

Inheritance graph
[legend]
Collaboration diagram for javax::jms::QueueConnection:

Collaboration graph
[legend]
List of all members.

Public Types

enum  {
  xmogDefaultFlags = xmog_base::GLOBAL, xmogMajorVersion = 3, xmogMinorVersion = 2, xmogPatchVersion = 9,
  xmogBuildNumber = 2047
}
typedef ::xmog_java_array_template<
::javax::jms::QueueConnection
array1D
typedef ::xmog_java_array_template<
::xmog_java_array_template<
::javax::jms::QueueConnection > > 
array2D

Public Member Functions

virtual ::javax::jms::ConnectionConsumer createConnectionConsumer (const ::javax::jms::Queue &queue, const ::java::lang::String &messageSelector, const ::javax::jms::ServerSessionPool &sessionPool, jint maxMessages,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags)
 Creates a connection consumer for this connection (optional operation).
virtual ::javax::jms::QueueSession createQueueSession (bool transacted, jint acknowledgeMode,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags)
 Creates a QueueSession object.

Detailed Description

A QueueConnection object is an active connection to a point-to-point JMS provider.

A client uses a QueueConnection object to create one or more QueueSession objects for producing and consuming messages.

A QueueConnection can be used to create a QueueSession, from which specialized queue-related objects can be created. A more general, and recommended, approach is to use the Connection object.

The QueueConnection object should be used to support existing code that has already used it.

A QueueConnection cannot be used to create objects specific to the publish/subscribe domain. The createDurableConnectionConsumer method inherits from Connection, but must throw an IllegalStateException if used from QueueConnection.

Author:
Mark Hapner

Rich Burridge

Kate Stout


Member Function Documentation

virtual ::javax::jms::ConnectionConsumer javax::jms::QueueConnection::createConnectionConsumer const ::javax::jms::Queue queue,
const ::java::lang::String messageSelector,
const ::javax::jms::ServerSessionPool sessionPool,
jint  maxMessages,
::xmog_localenv p_xenv = NULL,
xmog_flags  f_xflags = xmogDefaultFlags
 

Creates a connection consumer for this connection (optional operation).

This is an expert facility not used by regular JMS clients.

Parameters:
queue the queue to access
messageSelector only messages with properties matching the message selector expression are delivered. A value of null or an empty string indicates that there is no message selector for the message consumer.
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
p_xenv the local call environment. The default value is NULL.
f_xflags the flags that allow control over the reference type and other internal matters. The default value is xmog_base::GLOBAL.
Returns:
the connection consumer

virtual ::javax::jms::QueueSession javax::jms::QueueConnection::createQueueSession bool  transacted,
jint  acknowledgeMode,
::xmog_localenv p_xenv = NULL,
xmog_flags  f_xflags = xmogDefaultFlags
 

Creates a QueueSession object.

Parameters:
transacted indicates whether the session is transacted
acknowledgeMode indicates whether the consumer or the client will acknowledge any messages it receives; ignored if the session is transacted. Legal values are Session.AUTO_ACKNOWLEDGE, Session.CLIENT_ACKNOWLEDGE, and Session.DUPS_OK_ACKNOWLEDGE.
p_xenv the local call environment. The default value is NULL.
f_xflags the flags that allow control over the reference type and other internal matters. The default value is xmog_base::GLOBAL.
Returns:
a newly created queue session

Reimplemented in javax::jms::XAQueueConnection.


The documentation for this class was generated from the following file:
Generated on Fri Jun 16 10:19:56 2006 for JMS Courier for C++ by  doxygen 1.4.1