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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:01:11+00:00 2026-06-07T08:01:11+00:00

Currently we have an Applet that interacts with our hardware and server via FTP,

  • 0

Currently we have an Applet that interacts with our hardware and server via FTP, Sockets and HTTP messages. I have been asked if we can drop the applet and just go with a browser displaying dynamic web pages and JavaScript. I don’t believe this is possible as it is my understanding that a browser can only display the response to a request that it has initiated while our application needs to display data it gets from hardware that is only sent when its sensors are tripped.

I thought of using AJAX to periodically poll the hardware but I believe the same origin security restriction will prevent me from polling different hardware devices with different addresses. I could fix this by having the various hardware devices send all updates to the server but this would force a major change to the way we are currently configured. There is also a question of performance – it is a national application with hundreds of devices generating millions of events per day. I have to be able to respond in 3 seconds so I would have to poll the hardware very frequently (1 second or less) to maintain that level of performance.

So is my understanding of web applications correct?

Is there a way for a browser to display information coming from multiple addresses?

  • 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-07T08:01:13+00:00Added an answer on June 7, 2026 at 8:01 am

    It is possible. First of all you are right that a browser cannot directly connect to other servers using AJAX. If these other servers are actually some hardware devices, I would call this an advantage. You need a server to receive all the traffic.

    However in modern browsers and servers you can use comet, web-sockets and other techniques to push data from server to client. Basically you keep an open HTTP connection on the client and whenever server has some data, it sends it immediately without any delay. This is a major improvement compared to polling every few seconds – you avoid latency and extra load on the system.

    In Java land you have servlet-3.0 and atmosphere to the rescue.

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

Sidebar

Related Questions

I have an applet that communicates with a servlet using Http (Not sockets). Currently,
I have a java applet that needs to do http requests to the server.
We currently have a Java applet that generates a lot of data and uploads
I currently have a finance calculator applet that at the users request generates a
I currently have a java applet sitting on my Apache server (in the htdocs
I have a POS web application which currently executes a java applet on page
Currently have a drop down menu that is activated on a hover (from display:none
I currently have a XSLT 2.0 Stylesheet that I am trying to remove empty
I currently have one project that currently contains multiple packages. These packages make up
I have a java applet that parses a string of xml. However, running the

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.