org.jencks
Class TargetSourceMessageListener

java.lang.Object
  extended by org.jencks.TargetSourceMessageListener
All Implemented Interfaces:
javax.jms.MessageListener, org.springframework.beans.factory.InitializingBean

public class TargetSourceMessageListener
extends java.lang.Object
implements javax.jms.MessageListener, org.springframework.beans.factory.InitializingBean

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

Version:
$Revision: 72 $

Constructor Summary
TargetSourceMessageListener()
           
 
Method Summary
 void afterPropertiesSet()
           
 org.springframework.aop.TargetSource getTargetSource()
           
protected  void handleException(java.lang.Exception e)
           
 void onMessage(javax.jms.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(javax.jms.Message message)
Specified by:
onMessage in interface javax.jms.MessageListener

afterPropertiesSet

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

getTargetSource

public org.springframework.aop.TargetSource getTargetSource()

setTargetSource

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

handleException

protected void handleException(java.lang.Exception e)


Copyright © 2009 LogicBlaze, Inc.. All Rights Reserved.