Solved

POP Client Applet

Posted on 1997-06-02
1
170 Views
Last Modified: 2010-04-16
Hi!
Iam trying to develop a POP Client Applet. I have already developed the
Server which runs on my local machine and accepts connections from the
clients. As it receives a request for a connection, it creates a Socket to
the client and creates a Socket to the POP Host. It is able to retrieve the
data from the Host and send to the client. But the Problem is I can't let
the Socket to the Host open for all the time the Client is using it as the
Host times out. So I need to create a Socket to the Host , retreive all the
data I need (all the messages) and save them somewhere. Now the problem is
where should I save them. Shall I save it on my Local Machine? If I do so,
what happens when there are more than one connections? Can I save all the
messages on the Client Machine (as files) and use them?  What do think of
saving all the messages in ORACLE Database (Wouldn't it make the
Application Sluggish)?
Any advice will be appreciated
Thanks,
Suresh
migmaddi@showme.missouri.edu
0
Comment
Question by:maddi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
garik earned 50 total points
ID: 1221137
I'd suggest to save messages on your local machine - every time a new client requests data, check with POP host for new messages, add them to client's directory (base on his POP login name, f.ex.), and serve the client a full list of messages. It's also easy to incorporate some data manipulation this way - like delete a message. Since all operations are in client's own directory (on your local machine - you can't use applet to manipulate files on client's side), multiple connections can be served at the same time.
Using database for this kind of application, although adds more work to the project, but can make the whole thing much easier to implement and maintain. And it definitely makes sense if the number of clients is over few hundreds. Client's applet can read data directly from DB - no need for home-made server, no problems with simultaneous connections from multiple clients. DB can poll POP host at specified intervals independent from client's access.
Let me know if I've missed something in your question.

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
V.simple question about Android packages and libraries 1 46
Problem to Alipay 10 94
Bot application - advice 3 80
wild fly 8 startup error 2 79
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question