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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T12:54:44+00:00 2026-06-06T12:54:44+00:00

I am building a software system, which is using Javascript to display an editable

  • 0

I am building a software system, which is using Javascript to display an editable queue of server task (say program xyz is doing stuff on the server one task at a time).

  1. Browser UI (O-O JavaScript and JQuery)
  2. AJAX
  3. [missing technology in question]
  4. Linux PHP (Scripts that trigger the app to run)

Now the UI QUeue works great, but if someone closes their Browser, the state of the JavaScript Queue UI Application gets lost (all the tasks that the program on my linux box should peform)

So how to realise this? Would I need a Web application that is running as a service on my RedHat server communicating with the Object Oriented JavaScript App I wrote. The server tasks are already commandeered through PHP.

Is this possible with PHP? I want to avoid having a database at this time. A Java/Tomcat solution also springs to mind. What do you think? Thanks for reading this far.

  • 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-06T12:54:45+00:00Added an answer on June 6, 2026 at 12:54 pm

    You need to persist the queue state on the server at least to memory and preferably to disk too. To represent in memory create two classes Queue and QueueEntry the former being composed of the latter. If you only persist to memory you will lose queue state if the server process restarts – so write out to disk if you want to maintain state through a restart. Assuming Java, do the necessary to make those classes Serializable and write out to disk using a ReadWriteLock to avoid contention.

    Update to Reflect Using a DB

    Instead of serialization, have a table of queue entries. Add a column to indicate order – most likely insert date.

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

Sidebar

Related Questions

I am doing a Software Engineering course in which different teams are building different
I have a system for building my software already set up, using a makefile
I am building some software using Clojure as a backend, and I'd like to
I am building programming contest software. A user's program is received by our judging
I'm creating custom forum software for a site I'm building, which includes 2 tables
Our company produces cross-platform software and we have Bamboo instance which is building projects
I am writing and building my software for Mono using Delphi Prism. So, I
I have very little experience building software for Windows, and zero experience using the
Hey, I'm building a four tier software system (Presentation - JSP, Problem Domain, Application
I'm building a software product, in which the customer will be able to configure

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.