Multiple database records fetch from browser 2004-02-06 - By Milen Dyankov
Back Hi,
I can't tell what is the best way to go in your case, but we have already used applet for synchronization and it works just fine. In our application (CRM system) we need to inform user for certain events which may (or may not) occur at any given time. What we have is two (or more) frames and one of them never changes (it's the main menu frame). Inside that frame we have small applet, asking the server (over RMI) if there is new message, every 30 seconds . If there is, it reloads (opens new) page. It is that simple but we know for sure (it is required) that: 1) all our clients have JVM installed 2) java applets are enabled 3) java scripts are enabled
If any of these fails, out notification mechanism is worth nothing.
Milen Dyankov
VERMA, SANJEEV (SBCSI) wrote:
>Hi All ! >I am facing a situation here where we have to decide which way we should go, >either entirely a J2EE approach or J2EE with a small applet on client side. >I know the client side small applet won't be a good approach. >The problem is our system will talk to multiple databases. On the main page >we will show data from 4-5 databases. The databases will ALWAYS get updated >from different systems , so when a user is looking at his page that has data >from multiple databases at that time if that data is updated in database >through other applications/systems then the page should automatically >refresh itself to grab the new records , the time interval may be 0-3 >minutes maximum. We can put some frames/iframes so that it won't refresh >entire page. >But the problem is how we will notify back to browser to update itself . > >I don't want to put some time interval in Javascript to fetch the records >because that call will be very expensive. > >Right now in our architecture we are planning to use Struts,Steteless EJBs >and TopLink. We can go for Entity beans or can tweak the architecture if we >really have too. > >I think there should be some better solution than putting a small applet in >browser and RMI Server. > >Your suggestions will be appreciated. >Thanks >Sanjeev > >=========================================================================== >To unsubscribe, send email to listserv@(protected) and include in the body >of the message "signoff J2EE-INTEREST". For general help, send email to >listserv@(protected) and include in the body of the message "help". > > >
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
|
|