On Tue, Dec 2, 2008 at 3:56 AM, Todd Nine <[EMAIL PROTECTED]> wrote:
> Hi all,
> I'm writing a quick app for testing MDP's with Spring 2.5, Active MQ
> 5.2.0, and Jencks 2.1. I've used the spring context and the MessageListener
> below. I'd like to utilize the SessionAwareMessageListener interface in
> Spring so I can have access to the session object. Is there a way to
> configure this with spring and Jencks? I can't seem to find any
> documentation on what I need, so any help would be appreciated.
I think that is really a Spring question...
Your listener is obtained from a bean factory, in
org.jencks.DefaultEndpointFactory:
MessageListener messageListener = (MessageListener)
beanFactory.getBean(ref, MessageListener.class);
You have to find out how/when Spring applies its bean factory post processors.
Maybe you have to make your listener instantiate eagerly (not lazy).
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email