Solved

POP Client Applet

Posted on 1997-06-02
1
169 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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This video teaches viewers about errors in exception handling.

735 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