springjmsactivemq-classicopenxava

How to implment JMS listener with activemq and spring into my OpenXava application


I have working with JMS listeners (for receiving messages) into standard webapps some time ago, normally using JSF (ICEfaces) for the webapp and spring, activemq, etc., for the JMS integration.

Now, I'm trying to do the same into an OpenXava application. So, this is what I have done at the moment:

<listener>
    <listener-class>
        org.springframework.web.context.ContextLoaderListener
    </listener-class>
</listener>

<context-param>  
    <param-name>contextConfigLocation</param-name>  
    <param-value>  
        classpath:applicationContext.xml
    </param-value>  
</context-param>

Finally, I'm not getting any kind of error.

So, after all the problem is: The spring context is not being added to the OpenXava web.xml as is supposed to do... because the spring context is not created, therefore the JMS listener is never created.

So, what I'm missing here? ... is there a better way to do this?

Thanks in advance,


Solution

  • My advice is to create a very simple OpenXava project and follow the Spring integration instruction step by step, when it works you can try it against your real project.

    However, your option of not using Spring is better.