FileDocCategorySizeDatePackage
JmsMessageListener.javaAPI DocJBoss 4.2.11868Fri Jul 13 21:01:16 BST 2007org.jboss.resource.adapter.jms

JmsMessageListener

public class JmsMessageListener extends Object implements javax.jms.MessageListener
A wrapper for a message listener
author
Adrian Brock
version
$Revision: 57189 $

Fields Summary
javax.jms.MessageListener
listener
The message listener
JmsMessageConsumer
consumer
The consumer
Constructors Summary
public JmsMessageListener(javax.jms.MessageListener listener, JmsMessageConsumer consumer)
Create a new wrapper

param
listener the listener
param
consumer the consumer

      this.listener = listener;
      this.consumer = consumer;
   
Methods Summary
public voidonMessage(javax.jms.Message message)

      message = consumer.wrapMessage(message);
      listener.onMessage(message);