Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9003849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:45:54+00:00 2026-06-16T00:45:54+00:00

I have working with JMS listeners (for receiving messages) into standard webapps some time

  • 0

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:

  • I have created the listeners.xml into the WEB-INF (same place of the web.xml, which I can’t modify because OpenXava), with this content (content to be auto added to web.xml by OpenXava):
<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>

  • I have created the applicationContext.xml (I have tested placing it in the OpenXava application src folder and also into the WEB-INF), with the following content:

    <!-- Create the topic to connect to -->
    <bean id="TTCTopic" class="org.apache.activemq.command.ActiveMQTopic">
        <property name="physicalName" value="com.comp.app.message.tags"/>
    </bean>
    
    <!-- JMS Connection Factory -->
    <bean id="connectionFactory" class="org.apache.activemq.spring.ActiveMQConnectionFactory">
        <property name="brokerURL" value="tcp://127.0.0.1:1100"/>
    </bean>
    
    <!-- Spring Helper to listen to a JMS Destination -->
    <bean id="jmsContainer"
        class="org.springframework.jms.listener.DefaultMessageListenerContainer">
        <property name="connectionFactory" ref="connectionFactory" />
        <property name="destination" ref="TTCTopic" />
        <property name="messageListener" ref="messageReceiver" />
    </bean>
    

  • Then, I have created my listener class (com.comp.app.listeners.MessageReceiver) which implements the JMS MessageListener interface, and which has the code to process the message received.

  • Also, I did place into the WEB-INF/Lib of my OpenXava application the spring and activemq jars and also I added the references in the project’s classpath for each jar.

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,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:45:55+00:00Added an answer on June 16, 2026 at 12:45 am

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use a Java client using JMS/JNDI . The connection is working when using
I'm using a JMS queue to read from and insert data into a postgres
I have working for iPhone development for a while. First time, I so surprised
I'm currently working on jms message using the default broker from glassfish. Example I
I have working web-application with applicationContext.xml in WEB-INF/config/applicationContext.xml. Now i need to implement some
I have working on some Component in Joomla 2.5 ( it means I'm trying
I have working code that opens up a word document programmatically using vbscript, makes
I have working C++ code using swig which creates a struct, passes it to
I'm working with JMS API (with HornetQ) and i'm using spring beans for message
I have working on mvc3 application. I want to know some specific answer about

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.