Solved

POP Client Applet

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
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…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

770 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