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

  • Home
  • SEARCH
  • 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 8013211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:34:38+00:00 2026-06-04T19:34:38+00:00

Is it possible to implement JMS messaging in tomcat? I have a spring mvc

  • 0

Is it possible to implement JMS messaging in tomcat? I have a spring mvc application and I need to implement JMS messaging.

I can not use glassfish. I know its very easy to do JMS messaging with message driven bean but on application server.

So if there is a possibility, can someone provide some examples how to create a JMS connection factory and queue for spring application?

I have a JMS queue sender class:

public class JmsQueueSender {

    private JmsTemplate jmsTemplate;
    private Queue queue;

    public void setConnectionFactory(ConnectionFactory cf) { //?????????????????????
        this.jmsTemplate = new JmsTemplate(cf);
    }

    public void setQueue(Queue queue) { //?????????????????????
        this.queue = queue;
    }

    public void sendMessage(final Serializable object) {
        jmsTemplate.send(this.queue, new MessageCreator() {
            public Message createMessage(Session session) throws JMSException {
                return session.createObjectMessage(object);
            }
        });
    }

}

The main question is how to create a connection factory and queue, what objects to use. In glassfish I have been creating a JMS resource through application server admin console. How can I do this in spring application which runs in tomcat?

  • 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-04T19:34:40+00:00Added an answer on June 4, 2026 at 7:34 pm

    Yes, it’s possible. Have you looked at the JMS chapter of the Spring manual?

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

Sidebar

Related Questions

is it possible to implement SignalR without the use of Jquery. I want to
Is it possible to implement Delegate methods for FileSystemWatcher? I have a delegate method
Is it possible to implement associative arrays as Selectors and Values. I have an
Is it possible implement an Android application as a web service ? On the
Is it possible to implement the 'not-found=ignore' behaviour of NHibernate on a key mapping
Is that possible to implement the update of my own p2 enabled RCP application
Is it possible to implement Comet if we don't use PrototypeJs?
Is it possible to implement a non-blocking client socket? I have tried using sockfd
Is it possible to implement a ! (not) using expression trees. I'm interested in
Possible Duplicate: Implement linked list in php We can make link list in Java,

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.