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

javax::jms::ExceptionListener Class Reference

If a JMS provider detects a serious problem with a Connection object, it informs the Connection object's ExceptionListener, if one has been registered. More...

#include <javax_jms_ExceptionListener.h>

Inheritance diagram for javax::jms::ExceptionListener:

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

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::ExceptionListener
array1D
typedef ::xmog_java_array_template<
::xmog_java_array_template<
::javax::jms::ExceptionListener > > 
array2D

Public Member Functions

virtual void onException (const ::javax::jms::JMSException &exception,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags)
 Notifies user of a JMS exception.

Detailed Description

If a JMS provider detects a serious problem with a Connection object, it informs the Connection object's ExceptionListener, if one has been registered.

It does this by calling the listener's onException method, passing it a JMSException argument describing the problem.

An exception listener allows a client to be notified of a problem asynchronously. Some connections only consume messages, so they would have no other way to learn that their connection has failed.

A JMS provider should attempt to resolve connection problems itself before it notifies the client of them.

Author:
Mark Hapner

Rich Burridge


Member Function Documentation

virtual void javax::jms::ExceptionListener::onException const ::javax::jms::JMSException exception,
::xmog_localenv p_xenv = NULL,
xmog_flags  f_xflags = xmogDefaultFlags
[virtual]
 

Notifies user of a JMS exception.

Parameters:
exception the JMS exception
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 documentation for this class was generated from the following file:
Generated on Fri Jun 16 10:19:48 2006 for JMS Courier for C++ by  doxygen 1.4.1