MessageListener (Java EE 5)

Java EE API


javax.jms Interface MessageListener


public interface MessageListener


MessageListener 对象用于接收异步传送的消息。

每个会话都必须确保向侦听器连续传递消息。这意味着分配给同一会话中一个或多个使用方的侦听器可以假定,在会话完成最后调用之前,不会对下一个消息调用 onMessage 方法。

英文文档:

A MessageListener object is used to receive asynchronously delivered messages.

Each session must insure that it passes messages serially to the listener. This means that a listener assigned to one or more consumers of the same session can assume that the onMessage method is not called with the next message until the session has completed the last call.

Version:
1.0 - 13 March 1998
Author:
Mark Hapner, Rich Burridge

Method Summary
 void
 

Method Detail

public void onMessage(Message message)
向侦听器传递消息。
message 向侦听器传递的消息
英文文档:

onMessage

void onMessage(Message message)
Passes a message to the listener.

Parameters:
message - the message passed to the listener


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!