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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:53:37+00:00 2026-06-17T10:53:37+00:00

I read on the ActiveMQ official page how it works, but could not understand

  • 0

I read on the ActiveMQ official page how it works, but could not understand the whole scenario how request and response is going on.
As per my understanding now, if I have a servelet on server and JavaScript as client using amq.js, then

  1. JavaScript sends a poll request to server.
  2. Server starts a thread and checks for data to be sent as response.
  3. If data is not available at that time, server waits till there is any data.
  4. Server sends the data when available and then the connection breaks.
  5. Client receives the data and again send the poll request.

In this way the client request is parked at the server till the data is received.

Is this understanding correct and possible?
If yes, how the request is parked at the server?

Thanks.

  • 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-17T10:53:39+00:00Added an answer on June 17, 2026 at 10:53 am

    Yes, you understand it correctly. But with the restriction that the request will be on hold for 30 seconds, then it times out (default).

    The request is parked at the server using Jetty Continuations, as Jetty is the servlet container in ActiveMQ.

    Since ActiveMQ, java side, can be setup with asynchronous listeners, there does not need to be on thread blocked for the entire poll.

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

Sidebar

Related Questions

Read some other things on here re: this similar problem but am not sure
I am trying to use JMS Message Selector with ActiveMQ. I read the documentation
Read on before you say this is a duplicate, it's not. (as far as
I read an article about a regular expression to detect base64 but when I
Read about the z-index issue and tried anything, but just can't seem to fix
I am trying to read through ActiveMQ messages and according some filters to process
Read this question carefully because I am not asking how to get rid of
Read the entire file of 500-600 MB I can not, since the data are
Read a few things online and here but am now confused. What I want
Read this question about how to compare custom objects in C++. I did not

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.