Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pushing data down to the user?

 
Lat Triv
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm relatively new to Java (my background has been in mainly C/C++ apps) so forgive me if there is a simple answer to this question or if it is impossible to do this.

I have been tasked with writing a small server that connects to some a couple of other small legacy servers using Java RMI. That seems simple enough.

Our manager insists that the front-end to this server should be web-based. That by itself seems simple enough, implement it as a Servlet or JSP. The issue is that this server will be continually running with information being updated with certain tasks starting, stopping, erroring, etc.

From my understanding JSPs/Servlets dynamically create pages per a user (or other servlet's) request. In my case I would need to be able to PUSH the updated information to the user�s browser (yea, I know�that�s the best way I have of describing what my boss wants). Having the page automatically update every X seconds is an option, but doesn�t seem very elegant.

Does it make more sense for me to insert an Applet into the web page that the server could communicated to directly, or is there some sort of PUSH technology for JSPs/Servlets?

I guess the gist of it is they want it to act like a desktop application even though it is a web app.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Those are pretty much your options.
A polling page that checks and PULLs the data if it's updated or
An applet capable of maintaing a socket connection.
 
Lat Triv
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks! That is what I was thinking. My management doesn't quite seem to understand the technology
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic