MessageListener (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.jms Interface MessageListener


public interface MessageListener

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.

版本:
1.0 - 13 March 1998
作者:
Mark Hapner, Rich Burridge

方法摘要
 void onMessage(Message message)
          Passes a message to the listener.
 

方法详细信息

onMessage

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

参数:
message - the message passed to the listener

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.