Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

Client/Server/Servlets Design Problem

Thread view: 
xfan - 25 Aug 2006 19:03 GMT
Hello,

since 1 month i work on a server, which check all 5 seconds for change
on some sensors. the server could register multiple modules (in form of
objects) for multiple sensors, so if one state of a sensor change, the
registered's moduls for this specific sensor will be invoke and compute
something. this system i call my backend.
now i want control this backend with a web-frontend, to monitor the
states of sensors, watch the modul results.... my problem, which
communication between servets/jsp of frontend and my backend should i
use??
Tom Cole - 25 Aug 2006 19:56 GMT
> Hello,
>
[quoted text clipped - 7 lines]
> communication between servets/jsp of frontend and my backend should i
> use??

Well, what language is the server written in? How do you communicate
with it in a non-JSP environment?
xfan - 25 Aug 2006 20:31 GMT
oh, i forgotten. my server is written in java and at this time i run
the hole server main object as a part in a test servlet, which i start
first. but now i want seperate the server from the web-tier. my system
shoud be more a stand-alone-server with web front end controlling and
NOT a web application. so i decide to use tomcat/jsp/servlets for the
frontend. buf how should i implement the communication between server
and frontend servlets???
xfan - 25 Aug 2006 20:31 GMT
oh, i forgotten. my server is written in java and at this time i run
the hole server main object as a part in a test servlet, which i start
first. but now i want seperate the server from the web-tier. my system
shoud be more a stand-alone-server with web front end controlling and
NOT a web application. so i decide to use tomcat/jsp/servlets for the
frontend. buf how should i implement the communication between server
and frontend servlets???
frankgerlach@gmail.com - 26 Aug 2006 00:41 GMT
If the visualization component should be reacting on sensor events, you
might consider using a java applet for that. You can easily update the
display based on events you read from a TCP (socket) connection to the
server. JSP/Servlets do not update that efficently/elegantly.
xfan - 26 Aug 2006 10:59 GMT
the visual frontend should used only for checking the current state, if
i want. the backend-server logs the states from the sensors,too. so the
web frontend should be a small   thin-client, where i can start/stop
sensoring, download log data and .. only for administration  of the
backend system.

> If the visualization component should be reacting on sensor events, you
> might consider using a java applet for that. You can easily update the
> display based on events you read from a TCP (socket) connection to the
> server. JSP/Servlets do not update that efficently/elegantly.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.