Solved

POP Client Applet

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
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 will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now