org.codehaus.activemq.jca
Class TargetSourceMessageListener

java.lang.Object
  extended byorg.codehaus.activemq.jca.TargetSourceMessageListener
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, MessageListener

public class TargetSourceMessageListener
extends Object
implements MessageListener, org.springframework.beans.factory.InitializingBean

Represents a pool of MessageListener instances using Spring's TargetSource for the underlying pool.

Version:
$Revision: 1.1 $

Constructor Summary
TargetSourceMessageListener()
           
 
Method Summary
 void afterPropertiesSet()
           
 org.springframework.aop.TargetSource getTargetSource()
           
protected  void handleException(Exception e)
           
 void onMessage(Message message)
           
 void setTargetSource(org.springframework.aop.TargetSource targetSource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TargetSourceMessageListener

public TargetSourceMessageListener()
Method Detail

onMessage

public void onMessage(Message message)
Specified by:
onMessage in interface MessageListener

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

getTargetSource

public org.springframework.aop.TargetSource getTargetSource()

setTargetSource

public void setTargetSource(org.springframework.aop.TargetSource targetSource)

handleException

protected void handleException(Exception e)


Copyright © 2004-2005 Protique, Ltd.. All Rights Reserved.