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 7574437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:26:10+00:00 2026-05-30T16:26:10+00:00

i need to implement this scenario Brief about that is have two java based

  • 0

i need to implement this scenario Brief about that is
have two java based web application hosted on two different tomcat instances say T1 and T2. when ever there is content change on T2
i want to put content name and date modified in queue on which T1 is listening. As soon as T2 put it queue , T1 should log these
fields in databse table which three columns i.e prim key, ContentName and Modified date.? I am not getting how to start implementing
JMS here as i am laymen to JMS? I just know JMS makes use of queue on which probably one application will be publisher and other will consumer.
Any help how to start on this would be immense favour? I am using tomcat for both application. On different sites on net there is two much material that it gets confused (Actually i have short time to implement this :()

  • 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-05-30T16:26:12+00:00Added an answer on May 30, 2026 at 4:26 pm

    Calm down and start reading. There are a few short tutorials that don’t go to extreme lengths to explain the theory before getting to runnable code. This is not a bad one: http://java.sun.com/developer/technicalArticles/Ecommerce/jms/

    Basically you obtain a connection factory from somewhere. (It could be by a JNDI lookup or you could create it directly.) You ask the factory to create a connection, the connection to create a session, and the rest comes from the session.

    To send a message you might use something like:

       ConnectionFactory factory = getJMSConnectionFactory();
       Connection connection = factory.createConnection();
       Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
       Queue queue = session.createQueue("MyQueue");
       MessageProducer producer = session.createProducer(queue);
       connection.start();
       Message message = session.createTextMessage("hello world!");
       producer.sendMessage(message);
    

    To receive a message you might use something like:

       ConnectionFactory factory = getJMSConnectionFactory();
       Connection connection = factory.createConnection();
       Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
       Queue queue = session.createQueue("MyQueue");
       MessageConsumer consumer = session.createConsumer(queue);
       connection.start();
       Message message = consumer.receive();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web service that is based on Java classes. Is it possible
Ok this is my scenario. I have a tour that has many stops. I
Looking for some guidance on the best way to implement this scenario: I have
In my Django app, I need to implement this timer-based functionality: User creates some
I have tried to implement this scenario . I have created Code First model,
I am looking for a solution for this scenario - I need to implement
So, I need some way to implement an undirected network ( I think this
I have this scenario... 1.- I'm providing a Dynamic Table for wich users can
I have one scenario in which the user can define the column and that
I'm about to implement an RESTful API to our website (based on WCF data

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.