org.figure8.join.core.messaging
Interface JMSConsumerBean

All Superinterfaces:
javax.jms.MessageListener
All Known Implementing Classes:
AntScriptLauncherJMSAdapter, EchoJMSConsumerBean, GoogleTalkNotifierJMSAdapter, GroovyScriptLauncherJMSAdapter, JSR223ScriptLauncherJMSAdapter, MailNotifierJMSAdapter, RubyScriptLauncherJMSAdapter, ScriptLauncherJMSAdapter, SubscribersNotifierJMSAdapter, XMPPNotifierJMSAdapter

public interface JMSConsumerBean
extends javax.jms.MessageListener

This is just an interface extension that allows message listeners to be notify of container destruction via the stop() method.
Moreover, consumers should be identifier using a name (typically, this name will be from the one provided into JMSConsumerBeanInfo).

Version:
$Revision: 1.3 $
Author:
Laurent Broudoux

Method Summary
 java.lang.String getName()
          Retrieve the name of this consumer.
 void setName(java.lang.String name)
          Set the name identifying this consumer.
 void stop()
          Implement this method to stop current process and free resources.
 
Methods inherited from interface javax.jms.MessageListener
onMessage
 

Method Detail

getName

java.lang.String getName()
Retrieve the name of this consumer.

Returns:
The name identifying this consumer

setName

void setName(java.lang.String name)
Set the name identifying this consumer.

Parameters:
name - The name of this consumer

stop

void stop()
Implement this method to stop current process and free resources. This method should not throw exceptions.



Copyright © 2005-2008 Join. All Rights Reserved.