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
Solved

POP Client Applet

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

860 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