|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.jms Interface ExceptionListener
public interface ExceptionListener
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.
- 版本:
- 1.0 - 9 March 1998
- 作者:
- Mark Hapner, Rich Burridge
- 另请参见:
Connection.setExceptionListener(ExceptionListener)
方法摘要 | |
---|---|
void |
onException(JMSException exception)
Notifies user of a JMS exception. |
方法详细信息 |
---|
onException
void onException(JMSException exception)
- Notifies user of a JMS exception.
- 参数:
exception
- the JMS exception
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.